
body{
  background-color: #f3f4f6;

}
/* Container for the search bar */
.search-container2 {
  max-width: 600px;
  margin: 5px auto;
  text-align: center; /* Centers the form */
  border-radius: 8px;
  
}

/* Styling for the form */
#searchForm {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling for the search input */
#searchInput2 {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  
}

/* Focused state for the input */
#searchInput2:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* Placeholder styling */
#searchInput2::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Add a small margin below the input field */


/* Media Query for Mobile */
@media screen and (max-width: 600px) {
  .search-container2 {
      width: 90%;
      padding: 8px;
  }

  #searchInput2 {
      font-size: 14px;
  }
}

.blog-user-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.profile-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-name {
  font-weight: bold;
  margin-right: 10px;
}

.submission-time {
  font-size: 0.9em;
  color: gray;
}

/* Pagination Styling */
.pagination-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem; /* Adjust spacing between buttons */
  justify-content: center; /* Center the pagination */
  margin-top: 20px;
}

.pagination-button {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pagination-button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination-button:hover {
  background-color: #e2e6ea;
  transform: scale(1.05); /* Slightly enlarge on hover for a better effect */
}

.pagination-ellipsis {
  padding: 0.4rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Blog List Styling */
.container {
 max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

#blogList {
  display: grid;
  grid-template-columns: 1fr; /* Single column per row */
  gap: 20px;
  padding: 0;
  list-style-type: none;
  margin: 20px 0;
}

.blog-list-item {
  display: -webkit-box;
  -webkit-box-orient: vertical;
 line-clamp: 5; /* number of lines to show */
  overflow: hidden;
  list-style-type: none; /* Remove the default list bullet */
}

.blog-content {
  padding: 20px;
  background-color: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
}

.blog-link {
  display: block;
  text-decoration: none; /* Remove underline from link */
  color: #333; /* Text color for the link */
}


.blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.blog-snippet {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* Hover Effect for Title */
.blog-link:hover .blog-title {
  color: #0c69c3;
  text-decoration: underline;
}

/* Responsive Design for Mobile and Tablets */
@media (max-width: 768px) {
  #blogList {
    grid-template-columns: 1fr; /* Ensure single column on small screens */
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 18px; /* Slightly smaller title for mobile */
  }
  .blog-snippet {
    font-size: 14px;
  }
}


/* Button container styling */
.createblog {
  display: flex;
  justify-content: center; /* Center the buttons horizontally */
  gap: 45px; /* Space between buttons */
  margin: 10px;
}

/* Button styling */
.blogbutton {
  padding: 10px 18px; /* Increase padding for better click area */
  font-size: 14px; /* Increase font size */
  font-weight: 600;
  border-radius: 10px; /* Rounded corners for modern look */
  border: none;
  cursor: pointer;
  text-transform: uppercase; /* Make text uppercase */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  background: linear-gradient(135deg, #29cb29, #218838);
  color: white; /* White text color */
}

.blogbutton:hover {
  background: linear-gradient(135deg, #218838, #29cb29);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

.blogbutton:focus {
  outline: none; /* Remove default focus outline */
  border: 2px solid #0056b3; /* Add focus border */
}

/* Style for the second button (My Blogs) */
.blogbutton.secondary {
  background-color: #28a745; /* Green background for secondary button */
}

.blogbutton.secondary:hover {
  background-color: #218838; /* Darker green for hover effect */
}

.blogbutton.secondary:focus {
  border: 2px solid #218838; /* Green border on focus */
}

    