body {
    margin: 0;
    padding: 0;
   }
   
#main-subjectNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

#subjectList .active-item {
  background-color: #198754; /* সুন্দর গাঢ় সবুজ ব্যাকগ্রাউন্ড */
  border-radius: 0px; /* একটু গোল করলাম */
}

#topicList .active-item {
  background-color: #198754; /* সুন্দর গাঢ় সবুজ ব্যাকগ্রাউন্ড */
  border-radius: 0px; /* একটু গোল করলাম */
}

#sidebarToggle {
    display: inline-block;  /* Ensures it stays in line */
    margin-right: 15px; /* Optional: Add some space between it and the other items */
}


   /* Navbar styling */
#subjectNav {
  display: inline-block;
  position: relative;
  background-color: #343a40;
  padding: 0.5rem 2rem;
  overflow: hidden;
}

/* List styling */
#subjectList {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
}

/* Hide scrollbar but allow scroll */
#subjectList::-webkit-scrollbar {
  display: none;
}
#subjectList {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Individual subject link */
#subjectList .nav-item {
  white-space: nowrap;
  margin: 0 7px;
  color: white;
  font-size: 15px;
  font-weight: bold;
  list-style: none;
}
#topicList .nav-item {
  white-space: nowrap;
  margin: 0 10px;
  list-style: none;
}
.nav-item:hover {
  transform: scale(1.03);
  background-color: #aaf3358e;
}
.no-hover:hover {
  transform: none;
  background-color: rgb(231, 144, 30);
  color:black;
}

.toppic {
  border-top: 2px solid #070707;    /* উপরের বর্ডার */
  white-space: normal; 
  padding: 5px 5px;                 /* ভিতরের জায়গা */
}


/* Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: rgba(27, 27, 27, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

#leftArrow {
  left: 5px;
}

#rightArrow {
  right: 5px;
}

   #subjectList{
    overflow: auto;
}

#main{
  height: calc((100vh - 96px));
}
.contain{
  margin: 0;
  padding: 0;
  display: flex;
  
}
 #deault{
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  margin-left: 20px;
  margin-top: 10px;
  margin-bottom: 0;
 }
 .topic-card {
  transition: transform 0.2s ease;
}
.topic-card:hover {
  transform: scale(1.05);
}

 #sidebar {
  width: 300px;
  height: calc(100vh - 96px);
  position: sticky;
  top: 96px;
  overflow-y: auto; /* শুধু উল্লম্ব স্ক্রলবার */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  background-color: #ddeef0; /* bg-danger এর কালার */
}


#addList{
  width: 150px;
}


#content{
  overflow-y: auto;
  margin: 0 px;
  padding: 0 px;
  width: 100%;
  height: calc(100vh -96px);
  overflow-y: auto;
  margin-right: 0;
  z-index: 990;
}
.ad-banner{
  background-color: aqua;
}
.responsive-img-wrap {
  width: 100%;
  max-width: 50%;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 767px) {
  .responsive-img-wrap {
      max-width: 100%;
  }
}
#sidebar::-webkit-scrollbar,
#content::-webkit-scrollbar {
  width: 8px;
}

#sidebar::-webkit-scrollbar-track,
#content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb,
#content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb:hover,
#content::-webkit-scrollbar-thumb:hover {
  background: #555;
}
  /* সার্চ রেজাল্ট স্টাইল */
#searchResults {
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#searchResults .list-group-item {
  border-left: none;
  border-right: none;
}

#searchResults .list-group-item a {
  color: #333;
  text-decoration: none;
}

#searchResults .list-group-item:hover {
  background-color: #f8f9fa;
}



 /* মোবাইল ডিভাইসের জন্য সাইডবার ও ওভারলে স্টাইল */
@media (max-width: 767.98px) {
#main-subjectNav {
    flex-wrap: nowrap;  /* Prevents wrapping and keeps items on the same line */
}
.navbar-nav {
    flex-grow: 1;
}
.scroll-arrow{
  display: none;
}
#sidebarToggle{  
  position: relative;
 }
/* Sidebar styling */
#sidebar {
  display: none; /* Initially hidden */
  position: absolute; /* Dynamic positioning */
  top: 10px; /* Position 10px down from top */
  left: 100; Align to left edge */
  background-color: white;
  width: 250px;
  padding: 20px;
  z-index: 1000; /* Ensure it stays on top */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%); /* Hide sidebar initially */
  transition: transform 0.3s ease-in-out;
}
.nav-item{
  list-style: none;
  margin: 0 5px;
}

/* When sidebar is active/visible */
#sidebar.active {
  display: block;
  transform: translateX(0); /* Slide in to normal position */
}
/* Overlay styling */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;;
  background-color: rgba(82, 206, 33, 0.1);
  z-index: 999; /* Below sidebar */
}

/* Active state for overlay and sidebar */
.overlay.active {
  display: block;

}

 #content{
      width: 100%;
      height: 100vh;;
    }
}

/* মোবাইল ডিভাইসের জন্য স্টাইল */
@media (max-width: 767.98px) {
  .content-block-container {
      flex-direction: column !important;
  }
  
  .advertise-block {
      width: 100% !important;
      margin-left: 0 !important;
  }
}

/* ডেস্কটপ ডিভাইসের জন্য স্টাইল */
@media (min-width: 768px) {
  .advertise-block {
      min-width: 250px;
      max-width: 300px;
  }
}

.advertise-block {
  background-color: #f8f9fa;
  align-self: flex-start; /* advertise block কে উপরের দিকে align করে */
}
