* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --sb-width: 5rem;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

body.sb-expanded {
  --sb-width: clamp(5rem, 20vw, 15rem);
}

.header {
  position: sticky;
  top: 0;
  height: 70px;
  background: black;
  margin:auto;
}

.header_element{
float: right;
margin:20px;
/*margin:auto;*/
display: inline-block;
color:white;
/*text-align:center;*/
}

.collapsible {
  background-color: #51087E;
  height: 55px;
  width: 100%;
  border: none;
}

/*.active, .collapsible:hover {
  background-color: #555;
}*/

aside {
  position: fixed;
  inset: 0 auto 0 0;
  padding: 1rem;
  width: var(--sb-width);
  background-color:#51087E;
  transition: width 0.5s ease-in-out;
  
  height: 100vh;            /* Ensure full height of viewport */
  overflow-y: auto;         /* Enable vertical scrolling when needed */
  overflow-x: hidden;       /* Prevent horizontal scroll */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Internet Explorer 10+ */
}

aside::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Opera */
}

nav {
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  flex-flow: column;
  gap: 0.25rem;
}

nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

nav a.active,
nav a:hover,
nav a:focus-visible {
  outline: none;
  color: #b366fc;
  background-color: #fff;
}

nav a span {
gap: 0.25rem;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.sb-expanded nav a span {
  opacity: 1;
  visibility: visible;
}

nav span p {
  display: flex;
  align-items: center;
  margin-bottom: 0rem;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

nav span p{
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.sb-expanded nav span p {
  opacity: 1;
  visibility: visible;
}

.sb-expanded aside .bx-chevrons-right {
  rotate: 180deg;
}

main {
  padding: 1rem 4rem 1rem 4rem;
  margin: 1rem 0rem 1rem 1rem;
  transition: margin 0.5s ease-in-out, width 0.5s ease-in-out;
  display: flex;              /* add this */
  justify-content: center;   /* center content horizontally */
  overflow-x: hidden;           /* add this */
}

@media (min-width: 768px) {
  main {
    margin-left: var(--sb-width);
  }
  
  /*.footer_message {
    margin-left: var(--sb-width);
  }*/
}

  .blog-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    margin: auto;
  }

  .blog-item {
    display: flex;
    width: 100%;
  }

  .blog-image {
    width: 20%;
  }

  .blog-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .blog-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
  }

  .blog-title {
    font-weight: bold;
    margin-bottom: 8px;
  }

  /* Responsive for mobile */
  @media (max-width: 768px) {
    .blog-item {
      flex-direction: column;
    }

    .blog-image,
    .blog-content {
      width: 100%;
      padding-left: 0;
    }
  }
   
  .blog_txt pre{
      overflow-x: auto;
      white-space: pre-wrap;
      word-wrap: break-word;
      text-align: justify;
  }
  