* {
  margin: 0;
  padding: 0;
}

.container {
  font-family: Arial, sans-serif;
  /* background: linear-gradient(to bottom right, #f7f7f7, #dcefff); */
  color: #333;

  height: 100vh;
}



.index_main_top {
  padding: 40px;
  text-align: center;
}

.button {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 20px;
}

.button:hover {
  background-color: #005fa3;
}



/* main div*/

.container>.main-wrapper {
  display: flex;
  gap: 2rem;
  padding-top: 1vh;
  flex-wrap: wrap;
  max-height: 87vh;
}

.container> .main-wrapper> .left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 87vh;
  flex: 3;

  
  overflow-x: hidden;

  

  /* scrollbar-width: none; */
}

.container>.main-wrapper>.left-content::-webkit-scrollbar {
  width: 3px;
}

.container>.main-wrapper>.left-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.container>.main-wrapper>.left-content>.breadcrumb {
  height: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}


.container>.main-wrapper>.left-content>.post-card {
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;

  box-shadow: rgba(1, 1, 1, 0.12) 0px 2px 3px, rgba(1, 1, 1, 0.25) -1px 1px 11px;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
  /* height: 100px; */
  border-radius: 10px;
  margin-right: 10px;
  margin-bottom: 10px;

  padding: 20px 16px;
  margin-left: 10px;

  position: relative;
}

.container>.main-wrapper>.left-content>.post-card:hover {
  transform: translateY(-2px);

  box-shadow: rgba(0, 0, 0, 0.16) 0px 4px 6px, rgba(0, 0, 0, 0.23) 0px 4px 6px;

  /* box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; */

  border-radius: 10px;
}

.container>.main-wrapper>.left-content>.post-card:nth-child(1) {
  margin-top: 30px;
}

.container>.main-wrapper>.left-content>.post-card>.card_btn {
  /* margin-bottom: 25px; */
  border: none;
  font-size: 20px;
  background-color: white;
}

.container>.main-wrapper>.left-content>.post-card>.card_btn:hover {
  color: #007bff;
  cursor: pointer;
}

.container>.main-wrapper>.left-content>.post-card>.tags-container {
  margin-top: 25px;
}

.container>.main-wrapper>.left-content>.post-card>.tags-container>a {
  padding: 5px 10px;
  border: 1px solid gray;
  border-radius: 50px;
  margin-right: 10px;
  transition: 0.3s ease;
  text-decoration: none;
}

.container>.main-wrapper>.left-content>.post-card>.tags-container>a:hover {
  background-color: rgb(81, 194, 247);
  border: 1px solid rgb(81, 194, 247);
  outline: none;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.container>.main-wrapper>.left-content>.pagination-panel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 20px;
  height: 50px;
  align-items: center;
}

.container>.main-wrapper>.left-content>.pagination-panel>button {
  padding: 10px 15px;
  background-color: white;
  border: 1px solid gray;
  border-radius: 5px;
}

.container>.main-wrapper>.left-content>.pagination-panel>button:hover {
  background-color: #0077cc;
  color: white;
  border: 1px solid #0077cc;
  outline: none;
}

.container>.main-wrapper>.left-content>.pagination-panel>.page-btn.active {
  background-color: #0077cc;
  color: white;
  border: none;
}

.container>.main-wrapper>.right-sidebar {
  flex: 1;
  min-width: 220px;

  border-radius: 8px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  
  height: 87vh;
  overflow: auto;
  scrollbar-width: none;

  display: none;
}

.container>.main-wrapper>.right-sidebar h3 {
  margin-bottom: 0.5rem;
}

.container>.main-wrapper>.right-sidebar>.tags>h3 {
  width: 100%;
  text-align: start;
}


.container>.main-wrapper> .collapsible-panel > .panel-content > .indices {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 10px 0 20px 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  font-family: 'Segoe UI', sans-serif;
}

.container>.main-wrapper> .collapsible-panel > .panel-content > .indices > h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.container>.main-wrapper> .collapsible-panel > .panel-content > .indices ul {
  list-style: none; /* removes default dots */
  padding-left: 0;
  margin-top: 10px;
}

.container>.main-wrapper> .collapsible-panel > .panel-content > .indices ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 5px;
  font-size: 16px;
  color: #444;
}
.container>.main-wrapper> .collapsible-panel > .panel-content > .indices ul li:hover{
  cursor: pointer;
}

.container>.main-wrapper> .collapsible-panel > .panel-content > .indices ul li::before {
  content: "★"; /* Unicode star */
  position: absolute;
  left: 0;
  color: gold;
  font-size: 16px;
}



.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links {
  background-color: #f4f4f4;
  border-radius: 10px;
  padding: 10px 0 20px 10px;
  max-width: 300px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 7px;
}

.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links h3 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links ul {
  list-style: none; /* removes dots */
  padding-left: 0;
  margin: 10px 0 0 0;
}

.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links li {
  height: 4vh;

  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links a {
  text-decoration: none; /* removes underline */
  color: #007bff;
  transition: color 0.2s ease;
}

.container>.main-wrapper> .collapsible-panel > .panel-content >.Important_Links a:hover {
  color: #0056b3;
  text-decoration: underline;
}





.container>.main-wrapper>.right-sidebar>.search_bar {
  padding-bottom: 20px;

  max-width: 500px;
  margin: 40px auto;
  padding: 10px;
  background: linear-gradient(145deg, #f9f9f9, #ffffff);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}
.container>.main-wrapper>.right-sidebar>.search_bar > .search_title{
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 500;
}

.container>.main-wrapper>.right-sidebar>.search_bar>.search_point {
  height: 40px;

  position: relative;
}

.container>.main-wrapper>.right-sidebar>.search_bar>.search_point>.search_box {
  
  padding-left: 5px;

  width: 100%;
  height: 100%;
  border-radius: 50px;
  border: 1px solid #c3aeae;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* On focus effects */
.container>.main-wrapper>.right-sidebar>.search_bar>.search_point> .search_box:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}
/* Placeholder animation (optional) */
.container>.main-wrapper>.right-sidebar>.search_bar>.search_point> .search_box::placeholder {
  color: #aaa;
  transition: opacity 0.3s ease;
}

.container>.main-wrapper>.right-sidebar>.search_bar>.search_point> .search_box:focus::placeholder { 
  opacity: 0.5;
}
.container>.main-wrapper>.right-sidebar>.search_bar>.search_point>.search_btn {
  height: 100%;
  border: none;
  outline: none;
  background-color: #4784cf;
  color: white;
  padding: 0 8px;
  margin: 0;
}



/* Tooltip hidden by default */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  transition: opacity 0.5s ease;
  
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  white-space: normal;
  width: max-content;
  width: fit-content;
  z-index: 1000;
  transition: opacity 0.2s ease;
}


.right-sidebar>.tags {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.right-sidebar>.tags>.tag-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  gap: 5px;
}

.right-sidebar>.tags>.tag-list>li {
  /* flex: 1 0 calc(33.333% - 10px); 3 per row with spacing */
  flex: 0 1 auto;
  box-sizing: border-box;
  border: 1px solid #007bff;
  background-color: #f0f0f0;
  text-align: center;
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: transform 0.8s ease;
  color: #007bff;
}

.right-sidebar>.tags>.tag-list>li:hover {
  background-color: #007bff;
  border: 1px solid #007bff;
  outline: none;
  color: white;
  cursor: pointer;
}



/*main div*/



/* Floating Toggle Button */
.container>.main-wrapper>.toggle-button {
    
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    padding: 10px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    cursor: pointer;
    z-index: 9999;

    opacity: 0;

    display: none;
    align-items: center;
    justify-content: center;
    
}

/* Collapsible Panel */
.container>.main-wrapper>.collapsible-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: #f9f9f9;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: all 0.6s ease;
    z-index: 9998;

}

.container>.main-wrapper>.collapsible-panel.open {
    right: 0;
}

.container>.main-wrapper>.collapsible-panel >.panel-content {
    position: fixed;
    overflow: auto;
    height: 96vh;
    padding: 1vh;
    background-color: seashell;
    /* background-color: cornflowerblue; */
}



.container>.main-wrapper>.collapsible-panel >.panel-content >.tags > .tag-list > li {
    flex: 0 1 auto;
    box-sizing: border-box;
    border: 1px solid #007bff;
    background-color: #f0f0f0;
    text-align: center;
   
   
    white-space: nowrap;
    text-overflow: ellipsis;
  
   
}


/* Container */
.container>.main-wrapper>.collapsible-panel >.panel-content >.tags {
  background: #fff;
  padding: 10px 0 20px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
  max-width: 100%;
  margin-top: 7px;
}

/* Header */
.container>.main-wrapper>.collapsible-panel >.panel-content > .tags h3 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  width: 100%;
}

/* Tag list container */
.container>.main-wrapper>.collapsible-panel >.panel-content > .tags >.tag-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Individual tags */
.container>.main-wrapper>.collapsible-panel >.panel-content >.tags > .tag-list > li {
  
  color: #333;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
 
}

/* Hover effect */
.container>.main-wrapper>.collapsible-panel >.panel-content > .tags > .tag-list li:hover {
  background-color: #007bff;
  color: white;
}

/* Close button */
.close-btn {
    font-size: 32px;
    float: right;
    cursor: pointer;
}



/*media query*/

@media (max-width: 768px) { 
  .container > .main-wrapper > .left-content {
    margin-left: 10px;
    margin-right: 10px;
  }

  .container > .main-wrapper > .left-content > .post-card > .tags-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;

    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
  }
  .container > .main-wrapper > .left-content > .post-card > .tags-container::-webkit-scrollbar {
    display: none;
  }
  .container > .main-wrapper > .left-content > .post-card > .tags-container > a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .container > .main-wrapper > .left-content > .post-card > .card_btn{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    text-align: left;
  }

  .container > .main-wrapper > .left-content > .breadcrumb{
    padding-bottom: 10px;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar {
    display: flex;
    flex-direction: column;
    height: 80%;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point{
    flex: 1;
    height: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point > input{
    height: 80%;
    width: 200px;
    padding-left: 5px;
    border-radius: 50px;
    border: 1px solid #c3aeae;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point > .search_btn{
    height: 90%;
    padding:0 10px;
    background-color: #4784cf;
    color: white;
    border: none;
    display: none;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > p {
    display: none;
  }
  /* Show tooltip on hover */
  .post-card:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    gap: 8px;

    border-radius: 0 0 15px 15px;
    background: white;
    padding: .5vh 1vh 1vh;
    margin-bottom: 8px;
  }

  /* Main menu link style */
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-link,
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children> .menu-link {
    display: block;
    padding: 5px 20px;
    background-color: #007effe0;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: left;
   
  }
  

  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-link:hover,
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children > .menu-link:hover{
    background-color: #0056b3;
  }

  /* Dropdown container */
   .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children {
    position: relative;
  }

   .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children > .menu-link::after {
    content: '▾';
    float: right;
    font-size: 15px;
    
    margin-left: 7px;
  }

  /* Dropdown hidden by default */
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children > .menu-dropdown {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    margin-top: 5px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Dropdown items */
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children > .menu-dropdown > a {
    background-color: #e9ecef;
    color: #333;
    padding: 8px 12px;
    margin: 2px 0;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 14px;
    
  }
  
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children > .menu-dropdown > a:hover {
    background-color: #d4d4d4;
  }

  /* Show dropdown when parent has .active */
  .container>.main-wrapper> .collapsible-panel > .panel-content > .mobile_menu > .menu-item-has-children.active > .menu-dropdown {
    display: flex;
    max-height: 1000px;
  }

  

  .mobile_menu_label{
    display: block;
  }
 
}

@media (min-width:768px) {

  .container > .main-wrapper > .left-content {
    margin-left: 10px;
    margin-right: 10px;
  }

  .container > .main-wrapper > .right-sidebar { 
    display: none;
  }

  .container > .main-wrapper > .left-content > .breadcrumb{
  padding-bottom: 10px;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar {
  display: flex;
  flex-direction: column;
  height: 80%;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point{
  flex: 1;
  height: 40px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point > input{
  height: 80%;
  width: 300px;
  padding-left: 5px;
  border-radius: 50px;
  border: 1px solid #c3aeae;
  }

  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point > .search_box:hover{
    
    border-radius: 50px;
    border: 1px solid #5e859e;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > .search_point > .search_btn{
  height: 90%;
  padding:0 10px;
  background-color: #4784cf;
  color: white;
  border: none;
  display: none;
  }
  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar > p {
  display: none;
  }


  .container > .main-wrapper> .collapsible-panel > .panel-content > .mobile_menu{
  display: none;
  }

  .mobile_menu_label{
    display: none;
  }
  
}

@media (min-width: 992px) {

  .container>.main-wrapper>.right-sidebar{
      display: block;
      margin-right: 70px;
  }
    
  .container > .main-wrapper > .left-content{
      margin-right: 5px;
      margin-left: 70px;
  }

  .container > .main-wrapper > .left-content > .breadcrumb > .search_bar {
      /* display: none; */
  }
   
  
}


/*media query*/





/* HTML: <div class="loader"></div> */
.loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat repeating-linear-gradient(90deg,
      #000 0 calc(100% / 7),
      #0000 0 calc(200% / 7));
  background: var(--c), var(--c), var(--c), var(--c);
  background-size: 140% 26%;
  animation: l27 0.75s infinite linear;
}

@keyframes l27 {

  0%,
  20% {
    background-position: 0 calc(0 * 100% / 3), 100% calc(1 * 100% / 3),
      0 calc(2 * 100% / 3), 100% calc(3 * 100% / 3);
  }

  80%,
  100% {
    background-position: 100% calc(0 * 100% / 3), 0 calc(1 * 100% / 3),
      100% calc(2 * 100% / 3), 0 calc(3 * 100% / 3);
  }
}



/* HTML: <div class="loader"></div> */
.loader {
  width: 40px;
  height: 20px;
  background: orange;
  position: relative;
  animation: l19-0 1.5s infinite linear;
}

.loader:before,
.loader:after {
  content: "";
  position: absolute;
  background: inherit;
  bottom: 100%;
  width: 50%;
  height: 100%;
  animation: inherit;
  animation-name: l19-1;
}

.loader:before {
  left: 0;
  --s: -1, 1;
}

.loader:after {
  right: 0;
}

@keyframes l19-0 {

  0%,
  30% {
    transform: translateY(0) scaleY(1);
  }

  49.99% {
    transform: translateY(-50%) scaleY(1);
  }

  50% {
    transform: translateY(-50%) scaleY(-1);
  }

  70%,
  100% {
    transform: translateY(-100%) scaleY(-1);
  }
}

@keyframes l19-1 {

  0%,
  10%,
  90%,
  100% {
    transform: scale(var(--s, 1)) translate(0);
  }

  30%,
  70% {
    transform: scale(var(--s, 1)) translate(20px);
  }

  50% {
    transform: scale(var(--s, 1)) translate(20px, 20px);
  }
}



/* HTML: <div class="loader"></div> */
.tagLoader {
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, #0000, orange) left -50px top 0/50px 20px no-repeat lightblue;
  animation: l2 1s infinite linear;
}

@keyframes l2 {
  100% {
    background-position: right -50px top 0;
  }
}



mark {
  background-color: #ffd54f;
  color: black;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 2px;
}



@keyframes slideInFromLeft {
  from {
    transform: translate(100%, -50%); /* off-screen to the right */
    opacity: 0;
  }
  to {
    transform: translate(0, -50%); /* back to normal position */
    opacity: 1;
  }
}
