/* Blog Section Styles */
.blog-section {
  padding: 60px 0;
  background-color: #fff;
}

.blog-section .section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-section .section-subtitle {
  color: #666;
  margin-bottom: 30px;
}

/* Blog Card Styles - Matching Homepage Design */
.blog-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.blog-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color, #dc3545);
  color: #fff;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: 500;
  border-top-right-radius: 10px;
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-author {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.blog-title a:hover {
  color: var(--primary-color, #dc3545);
}

.blog-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.read-more {
  display: flex;
  align-items: center;
  color: var(--primary-color, #dc3545);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.read-more svg {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--primary-color-dark, #c82333);
}

.read-more:hover svg {
  transform: translateX(3px);
}

/* Button Styles */
.blog-section .btn-default {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color, #dc3545);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color, #dc3545);
}

.blog-section .btn-default:hover {
  background-color: transparent;
  color: var(--primary-color, #dc3545);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .blog-image-container {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 40px 0;
  }

  .blog-section .section-title {
    font-size: 24px;
  }

  .blog-image-container {
    height: 160px;
  }
}

/* Blog Detail Page Styles */
.blog-detail-section {
  background-color: white;
}

.blog-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
}

.blog-meta span {
  margin-right: 20px;
}

.blog-featured-image img {
  border-radius: 8px;
}

.blog-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
  color: #333;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-tags .badge {
  font-size: 12px;
  padding: 5px 10px;
}

.share-buttons .btn {
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.share-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Social Share Component Styles */
.social-share {
  margin-top: 20px;
}

.social-share .share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-share .btn {
  border-radius: 25px;
  font-size: 14px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-width: 2px;
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share .btn i {
  font-size: 16px;
}

/* Responsive adjustments for social buttons */
@media (max-width: 576px) {
  .social-share .share-buttons {
    justify-content: center;
  }

  .social-share .btn {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Sidebar Styles */
.blog-sidebar {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.sidebar-widget {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.related-post-item,
.recent-post-item {
  border-bottom: 1px solid #eee;
}

.related-post-item:last-child,
.recent-post-item:last-child {
  border-bottom: none;
}

.related-post-title,
.recent-post-title {
  font-size: 14px;
  line-height: 1.4;
}

.related-post-title a,
.recent-post-title a {
  color: #333;
  text-decoration: none;
}

.related-post-title a:hover,
.recent-post-title a:hover {
  color: #007bff;
}

.newsletter-widget {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.newsletter-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Blog Listing Page Styles */
.blog-header-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.search-form .input-group {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  overflow: hidden;
}

.search-form .form-control {
  border: none;
  padding: 12px 20px;
}

.search-form .btn {
  border: none;
  padding: 12px 20px;
}

.results-info {
  font-size: 14px;
}

.no-results {
  background: #f8f9fa;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-title {
    font-size: 2rem;
  }
  
  .blog-content {
    font-size: 15px;
  }
  
  .blog-sidebar {
    margin-top: 30px;
  }
  
  .share-buttons .btn {
    font-size: 12px;
    padding: 5px 10px;
    width: fit-content !important;
  }
.social-share .btn i{
   margin-right: 0 !important;
  }
   .share-buttons .socialShareText {
    display: none;
  }
}

@media (max-width: 576px) {
  .blog-title {
    font-size: 1.75rem;
  }
  
  .blog-meta span {
    display: block;
    margin-bottom: 5px;
    margin-right: 0;
  }
  
  .share-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
