:root {
  --header-height: 3rem;
  --nav-width: 70px;
  --first-color: var(--bs-primary);
  --first-color-dark: #153357;
  --first-color-light: #e7f1f6;
  --white-color: #fff;
  --normal-font-size: 1rem;
  --z-fixed: 100;
}
*,
::before,
::after {
  box-sizing: border-box;
}
body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  padding: 0 1rem;
  font-size: var(--normal-font-size);
  transition: 0.5s;
}
a {
  text-decoration: none;
}
table th,
table td {
  vertical-align: middle !important;
}
input:focus {
  outline: none;
  box-shadow: none !important;
  border-color: var(--first-color) !important;
}
pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f1f1f1;
  border-radius: 3px;
  width: 100%;
}
.back-to-top {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 20px;
  z-index: var(--z-fixed);
}
.back-to-top:hover {
  color: var(--white-color);
}
.nav-tabs {
  /* border-bottom: none; */
}
.nav {
  justify-content: unset !important;
}
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background-color: var(--white-color);
  z-index: 50;
  transition: 0.5s;
}
.header_toggle {
  color: var(--first-color);
  font-size: 1.5rem;
  cursor: pointer;
}
.header_img {
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 65px;
  height: 45px;
}
.header_img img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.l-navbar {
  position: fixed;
  top: 0;
  right: -30%;
  width: var(--nav-width);
  height: 100vh;
  background-color: #fff;
  padding: 0.5rem 1rem 0 0;
  transition: 0.5s;
  z-index: var(--z-fixed);
  padding: 1rem 0 0 0.5rem;
}
/* .nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
} */
.l-navbar .nav_logo {
  /* ! TOBE FIXED */
  /* display: none; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.l-navbar .nav_name {
  display: none;
  width: 100%;
}
.l-navbar.show .nav_name {
  display: flex;
}
.l-navbar.show .nav_logo {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}
.l-navbar .nav_logo .sidebar-logo {
  height: 50px;
}

.l-navbar.show .nav_logo .sidebar-logo {
  width: 150px;
  height: 110px;
}

.l-navbar.show .nav_link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 1rem 0.5rem 0.3rem;
  background-color: transparent;
  border-radius: 8px;
  margin-left: 0.5rem;
}
.l-navbar .nav_link:hover,
.l-navbar.show .nav_link.active,
.l-navbar .nav_link.active {
  background-color: var(--first-color-light);
}
.nav_logo {
  margin-bottom: 1.3rem;
}
.nav_logo-icon {
  color: var(--first-color-dark);
}
.nav_logo-name {
  font-size: 15px !important;
  color: var(--first-color-dark);
  font-weight: 700;
}
.l-navbar.show .nav_link {
  position: relative;
  color: var(--first-color-dark);
  margin-bottom: 1rem;
  transition: 0.3s;
}
.l-navbar .nav_link {
  position: relative;
  color: var(--first-color-dark);
  margin-bottom: 1rem;
  transition: 0.3s;
  border-radius: 8px;
  text-align: center;
  padding: 10px 0;
  margin: 2px 10px;
}
.signout-btn {
  background-color: var(--first-color-light) !important;
  color: var(--bs-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.nav_link:hover {
  color: var(--first-color-dark);
}
.nav_icon {
  font-size: 1.25rem;
}
.l-navbar.show {
  right: 0;
}
.body-pd {
  padding-right: calc(var(--nav-width) + 1rem);
}
.l-navbar .active {
  color: var(--bs-primary);
}
.l-navbar .active::before {
  content: '';
  position: absolute;
  right: 0;
  width: 2px;
  height: 32px;
  background-color: var(--bs-primary);
}
.height-100 {
  height: 100vh;
}
@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-right: calc(var(--nav-width) + 2rem);
  }
  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 calc(var(--nav-width) + 2rem) 0 2rem;
  }
  .header_img {
    width: 85px;
    height: 40px;
  }
  .header_img img {
    width: 100%;
  }
  .l-navbar {
    right: 0;
    padding: 1rem 0 0 0rem;
  }
  .l-navbar.show {
    right: 0;
    padding: 1rem 0 0 0.3rem;
  }
  .l-navbar.show {
    width: calc(var(--nav-width) + 156px);
  }
  .body-pd {
    padding-right: calc(var(--nav-width) + 175px);
  }
}

.nav_list {
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 20px;
}

.main-content-container {
/*  margin-top: 5rem;*/ 
background-color: #fafbfc;
}
.l-navbar nav .accordion-body .nav_name {
  display: none;
}
/* .l-navbar nav .accordion-body .nav_link{
  padding: 0.5rem 0;
} */

.l-navbar.show nav .accordion-body .nav_name {
  display: flex;
}
.l-navbar.show nav .accordion-body .nav_link {
  padding: 0.5rem 1rem 0.5rem 0.3rem;
}

.l-navbar .accordion-button {
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
}
.l-navbar .accordion-button img{
  margin-left: 4px !important;
}
.l-navbar.show .accordion-button img{
  margin-left: 1rem !important;
}

.l-navbar .accordion-button::after{
  width:20px;
  height: 15px;
}
.l-navbar.show .accordion-button {
  flex-direction: row;
  justify-content: start;
  align-items: center;
}
.l-navbar .accordion-button:hover ,
.l-navbar.show .accordion-button:hover {
  background-color: var(--first-color-light);
}
.l-navbar .accordion-button:not(.collapsed)::after,
.l-navbar .accordion-button.collapsed::after {
  /* padding: 0.5rem 1rem 0.5rem 0.3rem; */
  /* background-image: none; */
  /* background-image: var(--bs-accordion-btn-icon); */
}

.l-navbar.show .accordion-button:not(.collapsed)::after,
.l-navbar.show .accordion-button.collapsed::after {
  background-image: var(--bs-accordion-btn-icon);
}
.l-navbar nav .accordion-body .nav_link {
  display: block;
  padding: 10px 0;
  margin: 5px 0px;
}
.l-navbar.show nav .accordion-body .nav_link {
  display: flex;
  justify-content: start;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  /* .l-navbar.show .nav_name {
      display: none;
    } */

  .l-navbar.show .nav_link {
    /* width: 100%; */
    margin-bottom: 0.5rem;
    /* padding: 1rem 0; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.3rem;
  }
}

@media screen and (max-width: 767px) {
  /* Adjust body padding and header styles for small screens */
  body {
    padding-right: 0; /* Remove padding on small screens */
    margin-top: var(--header-height); /* Add margin to the top */
  }

  .header {
    padding-right: 1rem; /* Adjust padding for small screens */
    padding-left: 1rem; /* Adjust padding for small screens */
    height: var(--header-height); /* Set header height */
  }

  .header_img {
    width: 65px; /* Adjust header image width */
    height: 45px; /* Adjust header image height */
  }

  .main-content-container {
    margin-top: calc(
      var(--header-height) + 1rem
    ); /* Adjust margin top for small screens */
  }

  .l-navbar {
    padding-right: 0; /* Remove padding on small screens */
    right: -80%; /* Move off-canvas menu out of the viewport */
  }

  /* Show the off-canvas menu when .show class is applied */
  .l-navbar.show {
    right: 0; /* Bring the off-canvas menu into the viewport */
    padding-right: 1rem; /* Adjust padding for small screens */
  }

  /* Adjust width and padding of off-canvas menu when shown */
  .l-navbar.show {
    width:70%; /* Expand the menu to full width */
  }

  .body-pd {
    padding: 0 10px; /* Remove padding on small screens */
  }
}

.profile-dropdown img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.header-search-container input {
  background-color: #f9fafb;
  outline: 1px solid transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  /* min-width: 350px !important; */
}
.header-search-container input:focus,
.header-search-container input:hover {
  border-color: transparent !important;
  outline: 1px solid transparent;
  background-color: #f9fafb;
}
.header-search-container button {
  outline: 1px solid transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: #f9fafb;
  color: var(--bs-primary);
}
.header-search-container button .bi::before {
  font-weight: 700 !important;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 98; /* Ensure backdrop appears below the navbar */
  display: none; /* Initially hidden */
}

.show {
  display: block; /* Show the backdrop when the 'show' class is present */
}

nav .accordion {
  --bs-accordion-border-width: 0px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
nav .accordion-button {
  background-color: transparent;
  border-radius: 8px;
  transition: 0.3s;
  color: var(--first-color-dark);
  box-shadow: none;
  border-width: 0px;
  /* margin-bottom: 0.5rem; */
}
nav .accordion-button.collapsed {
  background-color: transparent;
  color: var(--first-color-dark);
}
nav .accordion-button:not(.collapsed) {
  background-color: var(--first-color-light);
  box-shadow: none;
  color: var(--first-color-dark);
}
nav .accordion-button:focus {
  box-shadow: none;
}
nav .accordion-body {
  padding: 0;
  border-radius: 8px;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}


.card-title,
.digital-library-card-author{
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.advocacy-content-cards-container .card-body{
  overflow:hidden;
}