.blog-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(220, 53, 69, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(220, 53, 69, 0.05) 0%, transparent 40%);
  filter: blur(60px);
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.blog-hero > * {
  position: relative;
  z-index: 1;
}

/* Blog Section */
.blog-section {
  min-height: 60vh;
}

/* Blog Grid - Using Bootstrap Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Blog Card - Modern Material Design */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.2);
}

/* Featured Blog Image Placeholder */
.blog-card-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20%, 20%); }
}

.blog-card-image i {
  font-size: 4rem;
  opacity: 0.9;
}

/* Card Content */
.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.blog-card-meta i {
  color: #dc3545;
  font-size: 0.9rem;
}

.blog-card-title {
  color: #000103;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-family: 'Saira', sans-serif;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #dc3545;
}

.blog-card-excerpt {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.blog-card-author {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.blog-card-link {
  color: #dc3545;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.blog-card-link:hover {
  gap: 0.75rem;
  color: #c82333;
}

.blog-card-link::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.blog-card-link:hover::after {
  transform: translateX(4px);
}

/* Blog Post Page Styles */
.blog-post-main {
  padding: 3rem 0;
  background: #ffffff;
  min-height: 70vh;
}

.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.blog-post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #000103;
  font-weight: 800;
  font-family: 'Saira', sans-serif;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: #6c757d;
  font-size: 1rem;
  margin-top: 1.5rem;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-post-meta i {
  color: #dc3545;
  font-size: 1.1rem;
}

/* Blog Content Styling */
.blog-post-content {
  line-height: 1.8;
  color: #2d3748;
  font-size: 1.125rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  margin: 2.5rem 0 1.25rem;
  color: #000103;
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Saira', sans-serif;
}

.blog-post-content h2 {
  font-size: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #dc3545;
  margin-top: 3rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  color: #dc3545;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content a {
  color: #dc3545;
  text-decoration: underline;
  text-decoration-color: rgba(220, 53, 69, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.blog-post-content a:hover {
  color: #c82333;
  text-decoration-color: #c82333;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.blog-post-content img:hover {
  transform: scale(1.02);
}

.blog-post-content code {
  background: #f8f9fa;
  color: #dc3545;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-size: 0.9em;
  font-weight: 500;
}

.blog-post-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid #dc3545;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blog-post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
}

.blog-post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.blog-post-content li::marker {
  color: #dc3545;
  font-weight: 600;
}

.blog-post-content blockquote {
  border-left: 5px solid #dc3545;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #2d3748;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-post-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.blog-post-content th,
.blog-post-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.blog-post-content th {
  background: #dc3545;
  color: white;
  font-weight: 600;
}

.blog-post-content tr:hover {
  background: #f8f9fa;
}

/* Video Embeds */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2.5rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.blog-tag {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
  color: #dc3545;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(220, 53, 69, 0.2);
  transition: all 0.3s ease;
}

.blog-tag:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Loading & Error States */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #dc3545;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 4rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-blogs {
  text-align: center;
  color: #6c757d;
  font-size: 1.25rem;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-blogs i {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 1rem;
  display: block;
}

/* Back to Blog Button */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  color: #c82333;
  gap: 0.75rem;
}

.back-to-blog i {
  transition: transform 0.3s ease;
}

.back-to-blog:hover i {
  transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .blog-post-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-card-content {
    padding: 1.5rem;
  }
  
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-content {
    font-size: 1rem;
  }
  
  .blog-post-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-post-meta {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .blog-hero::before {
    filter: blur(40px);
  }
}

@media (max-width: 480px) {
  .blog-card-image {
    height: 200px;
  }
  
  .blog-card-title {
    font-size: 1.25rem;
  }
  
  .blog-post-container {
    padding: 0 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .back-to-top,
  .blog-tags {
    display: none;
  }
  
  .blog-post-content {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .blog-post-content a {
    text-decoration: underline;
    color: #000;
  }
}
