/* Blog styles for 918.software */

/* Blog listing grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Blog card */
.blog-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 126, 34, 0.2);
  border-color: rgba(230, 126, 34, 0.3);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
  line-height: 1.3;
}

.blog-card-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.blog-card-date i {
  margin-right: 0.5rem;
}

.blog-card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.blog-card-link {
  display: inline-block;
  color: #E67E22;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-link {
  color: #F39C12;
}

/* Blog post header */
.blog-post-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.back-to-blog {
  display: inline-block;
  color: #E67E22;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-to-blog:hover {
  color: #F39C12;
}

.blog-post-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  color: white;
}

.blog-post-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #E67E22;
  margin: 1rem auto 0;
}

.blog-post-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.blog-post-date i {
  margin-right: 0.5rem;
}

/* Blog post content */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content h2,
.blog-post-content h3 {
  color: white;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content h2 {
  font-size: 1.8rem;
}

.blog-post-content h3 {
  font-size: 1.4rem;
}

.blog-post-content a {
  color: #E67E22;
  text-decoration: underline;
}

.blog-post-content a:hover {
  color: #F39C12;
}

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

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

.blog-post-content blockquote {
  border-left: 3px solid #E67E22;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  font-style: italic;
}

/* Fix for newsletter inline styles with light backgrounds */
.blog-post-content div[style*="background-color"] {
  color: #1a1a1a;
}

.blog-post-content div[style*="background-color"] strong {
  color: #0a1f3d;
}

/* Image and video containers from newsletter */
.blog-post-content .image-container {
  margin: 2rem 0;
  text-align: center;
}

.blog-post-content .image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-post-content .image-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.blog-post-content .video-container {
  margin: 2rem auto;
  text-align: center;
  max-width: 600px;
}

.blog-post-content .video-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Blog post footer */
.blog-post-footer {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-cta {
  background-color: rgba(230, 126, 34, 0.1);
  border: 1px solid rgba(230, 126, 34, 0.3);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.blog-cta h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
  color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .blog-post-content {
    font-size: 1rem;
    padding: 1.5rem 1rem;
  }

  .blog-card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .blog-post-title {
    font-size: 1.6rem;
  }

  .blog-post-content h2 {
    font-size: 1.4rem;
  }

  .blog-post-content h3 {
    font-size: 1.2rem;
  }

  .blog-card-title {
    font-size: 1.1rem;
  }
}
