/* Blog Table Style Overrides: Ensure blog tables are neutral and not affected by global site CSS */
.blog-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 1em;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  position: static;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.blog-content table::after {
  display: none !important;
  content: none !important;
}
.blog-content thead,
.blog-content th {
  background: #f8fafc !important;
  color: #222 !important;
  font-weight: 600;
}
.blog-content th,
.blog-content td {
  border: 1px solid #e2e8f0;
  padding: 0.6em 1em;
  text-align: left;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 1em;
  box-shadow: none;
}
.blog-content tr:last-child td {
  background: #fff !important;
  color: #222 !important;
}
/* Blog-specific styles that extend index.css */

/* Blog Layout */
.blog-container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* Blog Post Styling */
.blog-post {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.blog-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

/* Blog Post Header */
.blog-post h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blog Meta Information */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
  font-weight: 500;
}

.blog-meta i {
  color: #6366f1;
  margin-right: 0.5rem;
}

/* Blog Tags */
.blog-tag {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  color: white;
  text-decoration: none;
}

/* Blog Content Styling */
.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: #1e293b;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-content h2 {
  font-size: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.blog-content h3 {
  font-size: 1.5rem;
  color: #9a03ff;
}

.blog-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content img {
  max-width: 100%;
  width: fit-content;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-content code {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #6366f1;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.blog-content pre {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: #374151;
}

.blog-content blockquote {
  border-left: 4px solid #6366f1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(139, 92, 246, 0.05)
  );
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #4b5563;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  text-align: left;
}

/* Blog List Items */
.blog-list-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.blog-list-item:hover::before {
  transform: scaleX(1);
}

.blog-list-item h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-list-item h2 a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-list-item h2 a:hover {
  color: #6366f1;
}

.blog-list-item p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Blog CTA Section */
.blog-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 20px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::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: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.blog-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.blog-cta .cta-button {
  background: white;
  color: #6366f1;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-cta .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #6366f1;
  text-decoration: none;
}

.blog-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-cta .cta-button-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 2px solid transparent;
}

.blog-cta .cta-button-primary:hover {
  background: linear-gradient(135deg, #5855eb 0%, #7c3aed 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    padding: 1rem;
  }

  .blog-post {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .blog-list-item {
    padding: 1.5rem;
  }

  .blog-list-item h2 {
    font-size: 1.5rem;
  }

  .blog-cta {
    padding: 2rem;
  }

  .blog-cta h3 {
    font-size: 1.5rem;
  }

  .blog-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .blog-cta .cta-button {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Integration with main site animations */
.blog-post,
.blog-list-item {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure proper spacing after navbar */
body {
  padding-top: 0;
}

.blog-container {
  margin-top: 2rem;
}
