

  
  .post-filter {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
  }
  
  .filter-item {
      margin: 0 10px;
      padding: 10px 20px;
      border: 1px solid #ddd;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s, color 0.3s;
  }
  
  .filter-item:hover {
      background-color: #f1f1f1;
  }
  
  .active-filter {
      background-color: #007bff;
      color: #fff;
      border-color: #007bff;
  }
  
  .blog-section {
    max-width: 1400px;
    margin: 0 auto;
}

.post.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin:10px 20px;
    margin-bottom: 30px;
    max-width: 1470px;
}

.post-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}


.post-box:hover {
    transform: translateY(-5px);
}

.post-img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.category {
    color: #007bff;
    font-weight: bold;
    margin: 10px 0;
}

.post-title {
    font-size: 18px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.post-date {
    color: #000;
    font-size: 14px;
}

.post-description {
    font-size: 18px;
    color: #000;
    margin-top: 10px;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.profile-name {
    font-weight: bold;
}






/* blog */

@media (max-width:320px){
    /* blog content */


.post.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 320px;
    overflow-x: hidden;
    padding:20px 0;
  }
  
  .post-box {
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    transition: transform 0.3s;
    width:300px;
  }
  
    .post-img {
        width: 290px; /* Scale image to full width of the box */
        height: 180px;
    }
  
    .category,
    .post-title,
    .post-date,
    .post-description,
    .profile {
        text-align: left; /* Optional: Align text to left */
        padding:4px;
    }
  
    .profile {
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
  
    .profile-img {
        width: 30px;
        height: 30px;
        border-radius: 50%; /* Circular profile image */
        margin-right: 10px;
    }
  
    .profile-name {
        font-size: 14px;
    }
  
}