:root {
  --custom-primary: rgba(42, 112, 211, 0.768);
  --custom-dark: rgba(0, 0, 0, 0.8);
  --flag-saffron: #FF9933;
  --flag-green: #138808;
}

/* Desktop Nav Link Styling */
.desktop-nav .nav-link {
  color: #111;
  font-weight: 600;
  margin: 0 5px;
  transition: color 0.2s;
}

.desktop-nav .nav-link:hover,
.desktop-nav .show>.nav-link,
.desktop-nav .active {
  color: var(--custom-primary) !important;
}

/* Sidebar Styling (Mobile App View) */
.offcanvas-end {
  width: 320px;
  background-color: var(--custom-dark);
  color: white;
}

.nav-link-custom {
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #222;
  font-size: 1.1rem;
  transition: 0.3s;
}

/* Active Menu Highlighting */
.active-menu {
  color: var(--custom-primary) !important;
  /*background-color: rgba(255, 107, 53, 0.1);*/
  border-left: 4px solid var(--custom-primary);
  padding-left: 15px !important;
}

/* Sub-menu styling in Sidebar */
.mobile-submenu .nav-link-custom {
  font-size: 1rem;
  padding-left: 25px;
  border-bottom: none;
  opacity: 0.8;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 1;
}

/* Rotation for the + icon when open */
.nav-link-custom:not(.collapsed) span {
  transform: rotate(45deg);
  color: var(--custom-primary);
}

.nav-link-custom span {
  transition: 0.3s;
  display: inline-block;
}

/* 1. Remove blue background when an item is active */
.desktop-nav .dropdown-item.active,
.desktop-nav .dropdown-item:active {
  background-color: transparent !important;
  /* Removes blue */
  color: var(--custom-primary) !important;
  /* Changes text to Saffron */
  font-weight: 600;
}

/* 2. Remove blue background on hover */
.desktop-nav .dropdown-item:hover {
  background-color: #f8f9fa !important;
  /* Light grey instead of blue */
  color: var(--custom-primary) !important;
  /* Text turns Saffron on hover */
}

/* 3. Optional: Fix the blue focus ring if you click it */
.desktop-nav .dropdown-item:focus {
  background-color: transparent;
  color: var(--custom-primary);
  outline: none;
}

.language-select {
  width: 110px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  color: #333;
}

.language-select:focus {
  box-shadow: none;
}


/* HERO */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.hero-section-mini {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}

.parallax-bg {
  position: absolute;
  inset: -100px 0 -100px 0;
  z-index: 1;
  transform: translateY(0px);
  will-change: transform;
}

.parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .60);
}

/* CONTENT */

.hero-content {
  position: relative;
  z-index: 5;
  padding: 100px 0;
}

.hero-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text {
  color: #f2f2f2;
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 650px;
}

/* CARD */

.book-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
}

.book-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 25px;
}

.book-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 25px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
}


/* Section Title */
.section-title {
  font-size: 2.9rem;
  color: #000;
  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(--custom-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: #000;
}

.writer-card small {
  color: var(--custom-primary);
  font-weight: 500;
}


.character-panel {
  /* background:rgba(255,255,255,.08); */
  /* border:1px solid rgba(255,255,255,.12); */
  /* backdrop-filter:blur(15px); */
  /* border-radius:30px; */
  padding: 25px;
}

/* CHARACTER LIST */

.character-list {
  max-height: 520px;
}

/* CARD */

.char-card {
  /* background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08); */
  padding: 18px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all .4s ease;
}

.char-card:hover {
  /* transform:translateX(10px); */
  background: rgba(255, 255, 255, .12);
}

.char-card.active {

  background:
    linear-gradient(135deg,
      rgba(37, 99, 235, .95),
      rgba(96, 165, 250, .75));

  /* box-shadow:
  0 15px 50px rgba(59,130,246,.4); */
}

/* SHOWCASE */

.showcase-wrapper {
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, .08),
      rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(15px);
  border-radius: 35px;
  overflow: hidden;
  padding: 40px;
}

/* CONTENT */
.showcase-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* IMAGE */
.showcase-image {
  flex: 0 0 320px;
}

.showcase-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, .45);
}

/* DETAILS */
.showcase-details {
  color: #fff;
}

.showcase-details h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.showcase-details p {
  font-size: 1.2rem;
  line-height: 2;
  opacity: .9;
}

/* BADGE */
.premium-badge {
  display: inline-block;
  background: rgba(255, 193, 7, .15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, .35);
  padding: 10px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 700;
}

.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: all;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 10;
}


.famous-books-carousel .owl-prev {
  position: absolute;
  left: 15px;
  width: 55px;
  height: 55px;
  background: var(--custom-primary) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  line-height: 1 !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: var(--custom-primary) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 26px !important;
  line-height: 1 !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 span,
.famous-books-carousel .owl-next span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  transform: none;
}

.famous-books-carousel .owl-prev:hover,
.famous-books-carousel .owl-next:hover {
  background: var(--custom-primary) !important;
  transform: scale(1.2);
  box-shadow: 0 15px 40px var(--custom-primary);
}

.poster-book-card {
  border: 1px solid #212529;
  border-radius: 15px;
}

.text-white .poster-book-card {
  border: 1px solid #FFFFFF;
  border-radius: 15px;
}

.poster-book-card img {
  border-radius: 15px;
}

/* SIDEBAR STICKY */
.left-sidebar {
  position: sticky;
  top: 100px;
  /* adjust for navbar */
  height: fit-content;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

/* BOX DESIGN */
.content-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.author-img {
  width: 100%;
  border-radius: 10px;
}



.site-title {
  font-family: 'Atma', cursive;
  color: #8e44ad;
  font-weight: 700;
}

.shayari-card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shayari-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #8e44ad, #3498db);
}

.shayari-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(142, 68, 173, 0.15);
}

.shayari-number {
  font-family: 'Atma', cursive;
  font-size: 1.5rem;
  color: var(--custom-primary);
  background: #f3e5f5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
}

.shayari-text {
  font-size: 1.15rem;
  line-height: 2;
  font-weight: 400;
  color: #34495e;
  white-space: pre-line;
  /* Keeps line breaks intact */
}




/* Footer */
.footer-link {
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-link:hover {
  color: #fff !important;
  padding-left: 8px;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.social-btn {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.social-btn:hover {
  background: #0d6efd;
  color: white;
  transform: translateY(-3px);
}


/* RESPONSIVE */
@media (max-width: 1200) {}


@media(max-width:992px) {

  .hero-section,
  .hero-section-mini {
    min-height: auto;
  }

  .hero-title,
  .hero-text {
    text-align: center;
  }

  .hero-text {
    margin: auto;
  }

  .book-card img {
    height: 300px;
  }

  .showcase-content {
    flex-direction: column;
  }

  .showcase-image {
    flex: unset;
    width: 100%;
  }

  .showcase-image img {
    height: 350px;
  }

  .showcase-details {
    text-align: center;
  }

  .showcase-details h1 {
    font-size: 2.5rem;
  }

}


@media (max-width: 768) {
  .left-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}


@media (max-width: 576px) {}


/* মোডাল কনটেন্টের পজিশন ফিক্স */
.custom-modal .modal-content {
  background: transparent !important;
  border: none !important;
  position: relative !important;
  box-shadow: none !important;
}

/* ক্রস বাটন পজিশনিং - সংশোধিত */
.btn-close-custom {
  position: absolute !important;
  top: -15px !important;
  right: -35px !important;
  width: 30px !important;
  height: 30px !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  /* সাইজ কিছুটা বাড়ানো হয়েছে দেখতে ভালো লাগার জন্য */
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 1060 !important;

  /* আইকনকে একদম সেন্টারে আনার জন্য ম্যাজিক (Flexbox) */
  display: flex !important;
  align-items: center !important;
  /* ভার্টিক্যালি সেন্টার */
  justify-content: center !important;
  /* হরাইজন্টালি সেন্টার */

  /* আগের সমস্যা সৃষ্টিকারী প্রপার্টিগুলো রিমুভ বা ফিক্স করা */
  line-height: 0 !important;
  /* লাইন হাইট ০ করে দেওয়া হলো */
  padding: 0 !important;
  margin: 0 !important;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

.btn-close-custom:hover {
  background-color: #ff4d4d !important;
  color: #ffffff !important;
}

/* ছোট স্ক্রিনের জন্য (মোবাইলে) */
@media (max-width: 576px) {
  .btn-close-custom {
    right: 0px !important;
    top: -35px !important;
  }
}