/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero{
  margin-top: 80px;
}
.blog-post-hero {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.8), rgba(26, 26, 26, 0.9)), url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}
li{
  list-style: none;
  padding: 10px;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
}

/* Enhanced container for better responsiveness */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Enhanced blog content layout with better responsiveness */
.blog-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.blog-main {
  flex: 2;
  min-width: 0; /* Fix for flexbox overflow issues */
}

.blog-sidebar {
  flex: 1;
  min-width: 280px; /* Minimum width for sidebar content */
}

/* Enhanced search and filter controls */
.blog-controls {
  margin-bottom: 40px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border: none;
  border-radius: 30px;
  background: #222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  border: 1px solid #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #6a0dad;
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filter {
  display: inline-block;
  padding: 8px 20px;
  background: #222;
  color: #ccc;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.category-filter:hover,
.category-filter.active {
  background: #6a0dad;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

/* Featured Post */
.featured-post {
  margin-bottom: 60px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(106, 13, 173, 0.4);
}

.featured-post .post-image {
  position: relative;
  height: 400px;
}

.featured-post .post-image img,
.featured-post .post-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover .post-image img,
.featured-post:hover .post-image video {
  transform: scale(1.05);
}

.featured-post .post-content {
  padding: 30px;
}

.featured-post .post-title {
  font-size: 2rem;
  margin: 15px 0;
  transition: color 0.3s ease;
}

.featured-post .post-title a {
  color: #fff;
  text-decoration: none;
}

.featured-post .post-title a:hover {
  color: #6a0dad;
}

.featured-post .post-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #ccc;
}

.featured-post .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #6a0dad, #5628ee);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.featured-post .read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.5);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-post {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.3);
}

.post-image {
  position: relative;
  height: 200px;
}

.post-image img,
.post-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post:hover .post-image img,
.blog-post:hover .post-image video {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #6a0dad;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-content {
  padding: 20px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-title {
  font-size: 1.4rem;
  margin: 10px 0;
  line-height: 1.4;
}

.post-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #6a0dad;
}

.post-excerpt {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Post Actions */
.post-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.like-button, .comment-button {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.like-button:hover, .comment-button:hover {
  color: #6a0dad;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.sidebar-widget:hover {
  transform: translateY(-3px);
}

.widget-title {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6a0dad;
  color: #fff;
}

.widget-description {
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 30px;
  background: #222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.search-button {
  background: #6a0dad;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-button:hover {
  background: #5628ee;
}

/* Categories List */
.categories-list {
  padding: 0;
  margin: 0;
  
}

.categories-list li {
  margin-bottom: 12px;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  color: #ccc;
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  transition: color 0.3s ease;
}

.categories-list a:hover {
  color: #6a0dad;
}

.categories-list span {
  background: #222;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post {
  display: flex;
  gap: 15px;
  transition: transform 0.3s ease;
}

.recent-post:hover {
  transform: translateX(5px);
}

.recent-post-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0; /* Prevent image from shrinking */
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recent-post-image img,
.recent-post-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-image:hover img,
.recent-post-image:hover video {
  transform: scale(1.05);
}

.recent-post-content h4 {
  font-size: 0.95rem;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.recent-post-content h4 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
  color: #6a0dad;
}

.recent-post-content .post-date {
  font-size: 0.8rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.recent-post-content .post-stats {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
  display: flex;
  gap: 10px;
}

.post-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #222;
  color: #ccc;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.tag:hover {
  background: #6a0dad;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: none;
  border-radius: 30px;
  background: #222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #6a0dad;
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
}

.subscribe-button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #6a0dad, #5628ee);
  color: white;
  border: none;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

.subscribe-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.5);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

.notification.info {
  background-color: #17a2b8;
}

/* No Posts Message */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #ccc;
  font-size: 1.2rem;
}

/* File Upload Previews */
.image-preview,
.video-preview {
  margin-top: 10px;
}

.image-preview img,
.video-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #333;
}

.pagination-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.prev-page,
.next-page {
  color: #6a0dad;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  background: #1a1a1a;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.prev-page:hover,
.next-page:hover {
  background: #6a0dad;
  color: white;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #ccc;
  background: #1a1a1a;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.page-number:hover,
.page-number.active {
  background: #6a0dad;
  color: white;
}

.page-number.dots {
  background: transparent;
  color: #ccc;
  cursor: default;
}

/* Blog Post Page Styles */
.blog-post-section {
  padding: 50px 0;
}

.blog-post-content {
  display: flex;
  gap: 40px;
}

.post-main {
  flex: 2;
}

.post-sidebar {
  flex: 1;
}

.featured-image {
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
}

.featured-image img,
.featured-image video {
  width: 100%;
  height: auto;
  display: block;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
  color: #fff;
}

.post-content h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: #fff;
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ddd;
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

blockquote {
  border-left: 4px solid #6a0dad;
  padding: 20px;
  margin: 30px 0;
  background: rgba(106, 13, 173, 0.1);
  border-radius: 0 10px 10px 0;
}

blockquote p {
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
}

blockquote cite {
  display: block;
  text-align: right;
  font-weight: 600;
  color: #6a0dad;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.result-item {
  text-align: center;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-number {
  font-size: 2rem;
  font-weight: 700;
  color: #6a0dad;
  margin-bottom: 5px;
}

.result-label {
  color: #ccc;
  font-size: 0.9rem;
}

/* Social Sharing */
.post-sharing {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.post-sharing h3 {
  margin-top: 0;
  color: #fff;
}

.social-sharing-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.share-button.facebook {
  background: #3b5998;
  color: white;
}

.share-button.twitter {
  background: #1da1f2;
  color: white;
}

.share-button.linkedin {
  background: #0077b5;
  color: white;
}

.share-button.pinterest {
  background: #bd081c;
  color: white;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  background: #1a1a1a;
  border-radius: 15px;
  padding: 25px;
  margin: 40px 0;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-top: 0;
  color: #fff;
}

.author-info p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.author-social a {
  color: #6a0dad;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.author-social a:hover {
  color: #fff;
}

/* Comments Section */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #333;
}

.comments-section h3 {
  color: #fff;
  margin-top: 0;
}

.comment {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.comment.reply {
  margin-left: 50px;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content h4 {
  color: #fff;
  margin: 0 0 5px 0;
}

.comment-date {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.comment-content p {
  color: #ccc;
  margin-bottom: 10px;
  line-height: 1.6;
}

.reply-link {
  color: #6a0dad;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.reply-link:hover {
  color: #fff;
}

/* Comment Form - Fixed overlapping labels */
.comment-form h4 {
  color: #fff;
  margin-top: 0;
}

.comment-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #6a0dad;
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Related Posts */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-post {
  display: flex;
  gap: 15px;
}

.related-post-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.related-post-content h4 {
  font-size: 0.95rem;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.related-post-content h4 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
  color: #6a0dad;
}

.related-post-content .post-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: none;
  border-radius: 30px;
  background: #222;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #28a745;
}

.notification.error {
  background-color: #dc3545;
}

.notification.info {
  background-color: #17a2b8;
}

/* No Posts Message */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #ccc;
  font-size: 1.2rem;
}

/* File Upload Previews */
.image-preview,
.video-preview {
  margin-top: 10px;
}

.image-preview img,
.video-preview video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
    padding: 0 15px;
  }
  
  .blog-content,
  .blog-post-content {
    gap: 30px;
  }
  
  .featured-post .post-image {
    height: 350px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  /* Enhanced blog-main styling for medium screens */
  .blog-main {
    min-width: 0;
  }
  
  /* Decrease font sizes */
  .post-title {
    font-size: 1.3rem;
  }
  
  .featured-post .post-title {
    font-size: 1.8rem;
  }
  
  .post-content h2 {
    font-size: 1.6rem;
  }
  
  .post-content h3 {
    font-size: 1.4rem;
  }
  
  .post-content p {
    font-size: 1rem;
  }
  
  .widget-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .blog-section {
    padding: 60px 0;
  }
  
  .blog-hero {
    margin-top: 70px;
  }
  
  .blog-content,
  .blog-post-content {
    flex-direction: column;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
  
  .featured-post .post-image {
    height: 300px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .comment {
    flex-direction: column;
  }
  
  .related-post {
    flex-direction: column;
  }
  
  .related-post-image {
    width: 100%;
    height: 150px;
  }
  
  .social-sharing-buttons {
    justify-content: center;
  }
  
  .post-meta {
    justify-content: center;
  }
  
  /* Enhanced blog-main styling for tablets */
  .blog-main {
    width: 100%;
    min-width: 0;
  }
  
  .blog-sidebar {
    width: 100%;
  }
  
  .category-filters {
    justify-content: center;
  }
  
  /* Decrease font sizes */
  .post-title {
    font-size: 1.2rem;
  }
  
  .featured-post .post-title {
    font-size: 1.6rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.3rem;
  }
  
  .post-content p {
    font-size: 0.95rem;
  }
  
  .widget-title {
    font-size: 1.2rem;
  }
  
  .recent-post-content h4 {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 50px 0;
  }
  
  .blog-hero {
    margin-top: 60px;
    padding: 40px 0;
  }
  
  .post-header h1 {
    font-size: 1.8rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .featured-post .post-image {
    height: 250px;
  }
  
  .post-title {
    font-size: 1.1rem;
  }
  
  .post-content h2 {
    font-size: 1.4rem;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
  
  .author-box {
    padding: 20px;
  }
  
  .author-avatar img {
    width: 60px;
    height: 60px;
  }
  
  /* Enhanced blog-main styling for mobile devices */
  .blog-main {
    width: 100%;
    min-width: 0;
  }
  
  .blog-sidebar {
    width: 100%;
  }
  
  .featured-post .post-content {
    padding: 20px;
  }
  
  .post-content {
    padding: 15px;
  }
  
  .blog-controls {
    padding: 15px;
  }
  
  .search-box input {
    padding: 10px 15px 10px 40px;
    font-size: 0.9rem;
  }
  
  .search-box i {
    left: 15px;
  }
  
  .category-filter {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
  
  /* Hide categories section on mobile */
  .blog-sidebar .sidebar-widget:first-child {
    display: none;
  }
  
  /* Decrease font sizes */
  .post-title {
    font-size: 1.1rem;
  }
  
  .featured-post .post-title {
    font-size: 1.4rem;
  }
  
  .post-content h2 {
    font-size: 1.3rem;
  }
  
  .post-content h3 {
    font-size: 1.1rem;
  }
  
  .post-content p {
    font-size: 0.9rem;
  }
  
  .widget-title {
    font-size: 1.1rem;
  }
  
  .recent-post-content h4 {
    font-size: 0.85rem;
  }
  
  .tag {
    font-size: 0.8rem;
  }
  
  .subscribe-button,
  .search-button {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .blog-section {
    padding: 40px 0;
  }
  
  .blog-hero {
    margin-top: 50px;
    padding: 30px 0;
  }
  
  .post-header h1 {
    font-size: 1.5rem;
  }
  
  .featured-post .post-image {
    height: 200px;
  }
  
  .featured-post .post-content {
    padding: 20px;
  }
  
  .post-content {
    padding: 15px;
  }
  
  .post-title {
    font-size: 1rem;
  }
  
  .post-content h2 {
    font-size: 1.2rem;
  }
  
  .post-content h3 {
    font-size: 1rem;
  }
  
  .post-content p {
    font-size: 0.85rem;
  }
  
  .comment.reply {
    margin-left: 15px;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    padding: 12px 15px;
    font-size: 0.8rem;
  }
  
  /* Enhanced blog-main styling for small mobile devices */
  .blog-main {
    width: 100%;
    min-width: 0;
  }
  
  .blog-sidebar {
    width: 100%;
  }
  
  .recent-post {
    flex-direction: column;
  }
  
  .recent-post-image {
    width: 100%;
    height: 120px;
  }
  
  .widget-title {
    font-size: 1rem;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .subscribe-button,
  .search-button {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  /* Pagination adjustments for small screens */
  .pagination {
    flex-direction: column;
    gap: 15px;
  }
  
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .prev-page,
  .next-page {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
  
  .page-number {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .post-header h1 {
    font-size: 1.3rem;
  }
  
  .featured-post .post-image {
    height: 180px;
  }
  
  .post-content h2 {
    font-size: 1.1rem;
  }
  
  .social-sharing-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .share-button {
    width: 100%;
    justify-content: center;
  }
  
  /* Enhanced blog-main styling for extra small devices */
  .blog-main {
    width: 100%;
    min-width: 0;
  }
  
  .blog-sidebar {
    width: 100%;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .blog-section {
    padding: 30px 0;
  }
  
  /* Further decrease font sizes */
  .post-title {
    font-size: 0.95rem;
  }
  
  .featured-post .post-title {
    font-size: 1.2rem;
  }
  
  .post-content h2 {
    font-size: 1rem;
  }
  
  .post-content h3 {
    font-size: 0.95rem;
  }
  
  .post-content p {
    font-size: 0.8rem;
  }
  
  .widget-title {
    font-size: 0.95rem;
  }
  
  .recent-post-content h4 {
    font-size: 0.8rem;
  }
}