:root {
  --primary: #8B1A1A;
  --dark: #212529;
  --light: #f8f9fa;
}

body {
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fff;
  padding: 0px;
  margin: 0px;
  overflow-x: hidden;
}


/* Navbar */
.navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.99) !important;
  padding: 0.4rem 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar-brand {
  font-size: 2rem;
  color: var(--primary) !important;
  font-weight: 900;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: rgba(139, 26, 26, 0.08);
}

/* Hero Section */
.hero-section {
  position: relative;
  /* min-height: 90vh; */
  color: #fff;
  border: none;
}

.hero-content {
  background-color: rgba(0,0,0,0.4);
  padding-top: 150px;
  padding-bottom: 170px;
}

.hero-content h1 {
  font-size: 4.8rem;
  font-weight: 900;
  text-shadow: 3px 3px 15px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.35rem;
  color:  var(--light) !important;
  max-width: 720px;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
}

/* Wave Divider */


.hero-slider img {
  border-radius: 15px;
}

.carousel-caption {
  background-color: rgba(0,0,0,0.55);
}

/* Section Title */
.section-title {
  font-size: 2.9rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  margin: 90px auto 60px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background: var(--primary);
  border-radius: 3px;
}


.writer-section {
  margin-top: -10px;
}
/* Writer Cards */
.writer-card img {
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.writer-card:hover img {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.writer-card h5 {
  margin-top: 1rem;
  color: var(--dark);
}

.writer-card small {
  color: var(--primary);
  font-weight: 500;
}

.character-list {
  max-height: 75vh;
  padding-left: 15px;
  padding-right: 25px;
}

.character-list .char-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 8px 12px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.character-list .char-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.8s;
}
.character-list .char-card:hover::before { left: 100%; }
.character-list .char-card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(139,26,26,0.4);
  border-color: #ffc107;
  box-shadow: 0 20px 40px rgba(139,26,26,0.4);
}
.character-list .char-card.active {
  background: linear-gradient(135deg, #8B1A1A, #A52A2A);
  color: #fff !important;
  box-shadow: 0 20px 50px rgba(139,26,26,0.6);
  transform: scale(1.05);
  border: 2px solid #ffc107;
}
.image-frame::after {
  content: '';
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border: 3px solid #ffc107;
  border-radius: 30px;
  opacity: 0.3;
  animation: pulse 4s infinite;
}


/* ==== বইয়ের কার্ডের উচ্চতা সমান করা ==== */

.famous-books-carousel {
  padding: 0 70px;
  position: relative;
}

.famous-books-carousel .owl-nav {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex !important;
  justify-content: space-between;
  pointer-events: none;     
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.famous-books-carousel:hover .owl-nav {
  opacity: 1;
  pointer-events: all;
}

.famous-books-carousel .owl-prev {
  position: absolute;
  left: 15px;
  width: 55px;
  height: 55px;
  background: rgba(139, 26, 26, 0.95) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.famous-books-carousel .owl-next {
  position: absolute;
  right: 15px;
  width: 55px;
  height: 55px;
  background: rgba(139, 26, 26, 0.95) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.famous-books-carousel .owl-prev:hover,
.famous-books-carousel .owl-next:hover {
  background: #8B1A1A !important;
  transform: scale(1.2);
  box-shadow: 0 15px 40px rgba(139,26,26,0.7);
}

.book-card{
  border: 1px solid #212529;
  border-radius: 15px;
}

.text-white .book-card{
  border: 1px solid #FFFFFF;
  border-radius: 15px;
}

.book-card img {
  border-radius: 15px;
}



/* SIDEBAR */

.left-sidebar {
  position: sticky;
  top: 50px;
  max-height: 88.5vh;
  overflow-y: auto;
  align-self: flex-start;
}
/* CONTENT BOX */
.content-box {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.author-img {
  width: 100%;
  border-radius: 6px;
}


.poster-row {
  margin-left:auto;
  margin-right:auto;
  content: "";
  display: flex;
  flex-wrap: wrap;
  clear: both;
}
.poster-column {
  float: left;
  width: 12.5%;
  padding: 5px;
}


div.poster-gallery {
  margin-top : 10px;
  margin-bottom : 10px;
  position: relative;
}

div.poster-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}
div.poster-gallery img:hover {
  -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
  filter: grayscale(0%);
}

.poster-overlay {
  position: absolute; 
  bottom: 0; 
  height: auto;
  border-radius: 10px;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1; 
  width: 100%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

.poster-text{
  font-weight: 500;
  background-image: linear-gradient(to right, #4381ecf6, #57FAF3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.poster-gallery:hover .poster-overlay {
  opacity: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

@media (max-width:1200px){
 
  .poster-column {
    width: 16.66%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3.8rem; }

  .character-list {
    max-height: 35vh;
    padding-left: 25px;
    padding-right: 25px;
  }

  .poster-column {
    width: 25%;
  }

}


@media (max-width: 768px) {
  .hero-content {
  padding-top: 110px;
  padding-bottom: 70px;
}
  .hero-section {text-align: center; }
  .hero-content h1 { font-size: 3.2rem; }
  .hero-content p { font-size: 1.2rem; }
  .hero-slider { margin-top: 40px; }
  .section-title { font-size: 2.4rem; }
  .famous-books-carousel .owl-nav { opacity: 1; pointer-events: all; }
  .famous-books-carousel { padding: 0 50px; }


  .character-list {
    max-height: 35vh;
  }

  .left-sidebar {
        position: static;
        max-height: 69vh;
        overflow-y: auto;
      }

      .poster-column {
    width: 33.33%;
  }
}


@media (max-width: 576px) {
  .hero-content h1 { font-size: 2.6rem; }
  .hero-content p { font-size: 1.1rem; }
  .navbar-brand { font-size: 1.7rem; }
  
  .character-list {
    max-height: 35vh;
  }

  .poster-column {
    width: 50%;
  }
}