/* General Styles */
.main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 65px;
  margin-bottom: 65px;
}

.container {
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  flex-direction: row;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 20px;
  }
  
  /* Main Feed */
  .feed {
    width: 50%;
  }
  
  .post {
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  
  .username {
    font-weight: bold;
  }
  
  .post-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
/* Post Actions Styling */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
  }
  
  .action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  .like-btn, .share-btn {
    background: none;
    border: none;
    cursor: pointer;
  }
  
  .like-btn img, .share-btn img {
    width: 24px;
    height: 24px;
  }
  
  .likes-count {
    font-size: 14px;
    font-weight: bold;
    margin-left: -2px;
    color: #333;
  }
  
  .post-time {
    font-size: 12px;
    color: #777;
  }
    
  /* Right Sidebar */
  .right-sidebar {
    margin-top: 35px;
    width: 15%;
    max-width: 300px;
    min-width: 240px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
  }
  
  .alt-right-sidebar {
    margin-top: 35px;
    width: 25%;
    max-width: 300px;
    min-width: 240px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
    visibility: hidden;
  }


  .suggestion {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
  }
  

  /* Suggestion User */
  .suggestion {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  
  /* Suggestion Header (User Info) */
  .suggestion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
  }
  
  .suggestion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  .suggestion-username {
    font-weight: bold;
    font-size: 14px;
  }
  
  .suggestion-time {
    font-size: 12px;
    color: #777;
  }
  
  /* Caption */
  .suggestion-caption {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  /* Suggestion Actions (Like & Comment Counts) */
  .suggestion-actions {
    gap: 8px;
    margin-left: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
  }
  
  .suggestion-likes, .suggestion-comments {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  
  .suggestion-likes img, .suggestion-comments img {
    width: 18px;
    height: 18px;
  }
  
  .suggestion-replies {
    margin-top: 5px;
  }
  
  .toggle-replies {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
    font-size: 12px;
  }
  
  .all-replies {
    display: none;
    padding: 8px;
    border-radius: 6px;
    margin-top: 5px;
  }
  
  .all-replies .reply {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  /* Show replies when toggled */
  .all-replies.show {
    display: block;
  }
  
  
  .suggestion:last-child {
    border-bottom: none;
  }
  
/* Post Footer Styling */
.post-footer {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
  }
  
  /* Caption Styling */
  .caption {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  /* Comment Section */
  .comment-section {
    font-size: 14px;
  }
  
  /* Comment Preview */
  .comment-preview {
    margin-bottom: 5px;
  }
  
  /* View More/Less Button */
  .toggle-comments {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 0;
  }
  
  /* All Comments (Initially Hidden) */
  .all-comments {
    display: none;
    margin-top: 5px;
  }
  
  /* Show Comments when Active */
  .all-comments.active {
    display: block;
  }
  
  /* Individual Comment */
  .comment {
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 5px;
  }
  


  /* Responsive Design */
  @media (max-width: 1024px) {  
    .feed {
      width: 90%;
    }
  
  }

  @media (max-width: 750px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
  
    .feed {
      width: 90%;
    }

    .post-header {
        padding-top: 10px;
    }

    .post {
        padding: 0px;
    }
  
    .right-sidebar {
      width: 90%;
      margin: 0 auto;
      max-width: none;
    }

    .alt-right-sidebar {
        display: none;
    }
  }

  @media (max-width: 450px) {
    .container {
      flex-direction: column;
      align-items: center;
      padding: 0;
      padding-top: 65px;
    }
  
    .feed {
      width: 100%;
      padding: 0px;
    }

    .post-header {
        padding-left: 10px;
        padding-top: 10px;
    }

    .post-image {
        padding: 0px;
    }
  
    .right-sidebar {
      width: 90%;
      max-width: none;
    }

    .post-actions {
       padding-left: 15px;
      }
  }
  