/* ============================================================================
   Blog Post Styles
   ============================================================================ */

/* Blog Article Container */
article {
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
}

/* Blog Header Styles */
.blog-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px 60px;
  margin-bottom: 40px;
}

.blog-header nav {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.blog-header nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-header nav a:hover {
  color: #ffffff;
}

.blog-header nav span {
  color: rgba(255, 255, 255, 0.7);
}

.blog-meta {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .blog-title {
    font-size: 1.8rem;
  }

  .blog-header {
    padding: 60px 20px 40px;
  }
}

/* Blog Content */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.blog-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a202c;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
}

.blog-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 2rem 0 1rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 1.5rem 0 0.75rem;
}

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

.blog-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.blog-content strong {
  color: #1a202c;
  font-weight: 600;
}

.blog-content em {
  color: #4a5568;
}

/* Info Boxes */
.info-box {
  border-left: 4px solid;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: #f7fafc;
}

.info-box.blue {
  border-color: #4299e1;
  background: #ebf8ff;
}

.info-box.green {
  border-color: #48bb78;
  background: #f0fff4;
}

.info-box.purple {
  border-color: #9f7aea;
  background: #faf5ff;
}

.info-box.yellow {
  border-color: #ed8936;
  background: #fffaf0;
}

.info-box.indigo {
  border-color: #667eea;
  background: #ebf4ff;
}

.info-box h3 {
  color: inherit;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  font-size: 1.25rem;
}

.info-box p {
  margin-bottom: 0.75rem;
}

.info-box ul {
  margin: 1rem 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Gradient CTA Box */
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.cta-box h2 {
  color: white !important;
  margin: 0 0 1rem 0 !important;
  border: none !important;
  padding: 0 !important;
  font-size: 1.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta-box .btn {
  display: inline-block;
  background: white;
  color: #667eea;
  padding: 15px 40px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #f7fafc;
}

/* Testimonial */
.testimonial {
  font-style: italic;
  color: #4a5568;
  border-left: 4px solid #667eea;
  padding-left: 2rem;
  margin: 2rem 0;
}

.testimonial-author {
  text-align: right;
  color: #718096;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
}

/* Statistics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white !important;
}

.stat-label {
  font-size: 0.95rem;
  color: white !important;
  opacity: 0.95;
}

/* Breadcrumb in blog header */
.blog-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.blog-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #ffffff;
}

.blog-breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.5rem;
}

/* Ensure proper spacing and readability */
.blog-content > *:first-child {
  margin-top: 0;
}

.blog-content > *:last-child {
  margin-bottom: 0;
}

/* Print styles */
@media print {
  .blog-header {
    background: none;
    color: black;
  }

  .blog-title {
    color: black;
  }

  .cta-box {
    background: none;
    border: 2px solid #e2e8f0;
    color: black;
  }
}
