@media only screen and (min-width: 1024px) {


.blog-box{
    width: 80%;
    display: block;
    margin: auto;
    margin-top: 50px;

}  
  .container {
    display: block;
  }
  
  .sidebar {
    width: 25%;
    padding: 20px;
    background-color: #f4f4f4;
    height: auto;
    max-height: 800px;
    float: left;
    border-radius: 8px;
  }
  
  .main-content {
    display: grid;
    flex-wrap: wrap;
    float: right;
    gap: 20px;
    width: 70%;
    margin-left: 40px;
  }
  
  .blog-post {
    width: calc(45%); /* Calculate width for two columns with gap */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
    margin-right: 25px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    display: inline-flex;
    flex-direction: column;
  }
  .blog-post img {
    width: 100%;
    height: auto;
  }
  
  h2 {
    margin-top: 0;
    font-family: alk;
    margin-bottom: 10px;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
 #category-list li {
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 18px;
  }
  
  .active {
    font-weight: bold;
  }
  
  /* ... (previous CSS remains unchanged) */
/* ... (previous CSS remains unchanged) */


  
  /* Search bar styles */
  #search-bar {
    width: 100%;
    padding: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  /* ... (other CSS styles remain unchanged) */
  

  
  .blog-post:hover {
    transform: translateY(-5px);
  }
  
.blog-post img {
  flex-shrink: 0;
  width: 100%;
  object-fit: cover;
  max-height: 200px; /* Set a maximum height for images */
}

.blog-post-content {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}
  
  .blog-post h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    line-height: 23px;
    font-family: alk;
  }
  
  .blog-post p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-family: alk;
    font-weight: bolder;
  }
  
}

@media only screen and (max-width: 1023px) {



.blog-box{
    width: 90%;
    display: block;
    margin: auto;
    margin-top: 40px;

}  
  .container {
    display: block;
  }
  
  .sidebar {
    width: 87%;
    padding: 20px;
    background-color: #f4f4f4;
    height: auto;
    max-height: 800px;
    margin-bottom: 30px;
    float: left;
    border-radius: 8px;
  }
  
  .main-content {
    display: grid;
    flex-wrap: wrap;
    float: right;
    margin-top: 40px;
    width: 100%;
    margin-left: 40px;
  }
  
  .blog-post {
    width: calc(100%); /* Calculate width for two columns with gap */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
    margin-right: 25px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    display: inline-flex;
    flex-direction: column;
  }
  .blog-post img {
    width: 100%;
    height: auto;
  }
  
  h2 {
    margin-top: 0;
    font-family: alk;
    margin-bottom: 10px;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
 #category-list li {
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 18px;
  }
  
  .active {
    font-weight: bold;
  }
  
  /* ... (previous CSS remains unchanged) */
/* ... (previous CSS remains unchanged) */


  
  /* Search bar styles */
  #search-bar {
    width: 100%;
    padding: 8px;
    margin-bottom: 30px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  /* ... (other CSS styles remain unchanged) */
  

  
  .blog-post:hover {
    transform: translateY(-5px);
  }
  
.blog-post img {
  flex-shrink: 0;
  width: 100%;
  object-fit: cover;
  max-height: 200px; /* Set a maximum height for images */
}

.blog-post-content {
  flex-grow: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}
  
  .blog-post h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    line-height: 23px;
    font-family: alk;
  }
  
  .blog-post p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    font-family: alk;
    font-weight: bolder;
  }
  
}
