/* Blog Page Styles */
body {
  background-color: var(--white);
}
.main-wrapper {
  padding: 0;
  display: block;
}
.blog-container {
  margin: 0 auto;
  padding: 1rem 3rem 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-header {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.blog-header h1 {
  font-size: 2.5rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

.blog-meta {
  color: var(--gray-600);
  font-size: 1rem;
  font-style: italic;
}

.blog-content {
  line-height: 1.8;
  color: var(--gray-700);
}

.blog-content h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 1rem 0;
  font-weight: 600;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: var(--gray-800);
  margin: 2rem 0 0.8rem 0;
  font-weight: 600;
}

.blog-content h4 {
  font-size: 1.2rem;
  color: var(--gray-800);
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.blog-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

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

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content strong {
  color: var(--gray-800);
  font-weight: 600;
}

/* Platform Specifications */
.platform-specs {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  margin: 1rem 0;
}

.platform-specs p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.platform-specs ul {
  margin-top: 0.5rem;
}

/* Platform Tips */
.platform-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tip-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tip-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Resolution Grid */
.resolution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.resolution-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resolution-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.resolution-item p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Size Comparison */
.size-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.size-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  min-width: 120px;
}

.resolution {
  font-weight: 600;
  color: var(--primary-color);
}

.size {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Aspect Ratios */
.aspect-ratios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.aspect-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.aspect-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.codec-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  text-align: center;
}

.codec-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.codec-item p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Hardware Tips */
.hardware-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Troubleshooting */
.troubleshooting {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.issue-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--secondary-color);
}

.issue-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Compression Levels */
.compression-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.level-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.level-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.bitrate-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.bitrate-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Content Types */
.content-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.content-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.content-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.platform-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  text-align: center;
}

.platform-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Artifacts Guide */
.artifacts-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.artifact-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.artifact-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

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

.comparison-table th {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table tr:hover {
  background: var(--gray-50);
}

/* Blog CTA */
.blog-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-hover) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 3rem 0;
}

.blog-cta h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.blog-cta p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
  margin-top: 1rem;
  /* padding-top: 2rem; */
  border-top: 2px solid var(--gray-200);
}

.related-articles h3 {
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.related-item {
  display: block;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.related-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.related-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
  }
  
  .platform-tips,
  .resolution-grid,
  .aspect-ratios,
  .codec-comparison,
  .hardware-tips,
  .troubleshooting,
  .compression-levels,
  .bitrate-guide,
  .content-types,
  .platform-balance,
  .artifacts-guide {
    grid-template-columns: 1fr;
  }
  
  .size-comparison {
    flex-direction: column;
  }
  
  .related-list {
    grid-template-columns: 1fr;
  }
  
  .blog-cta {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-container {
    padding: 0.8rem;
    margin: 0.3rem;
  }
  
  .blog-header h1 {
    font-size: 1.8rem;
  }
  
  .blog-content h2 {
    font-size: 1.3rem;
  }
  
  .blog-content p,
  .blog-content li {
    font-size: 0.9rem;
  }
  
  .comparison-table {
    font-size: 0.8rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}