/* Blog Grid Styles */
:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --border-gray: #e5e7eb;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

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

.blog-card-content p{
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: var(--primary-blue);
}

.blog-date {
  color: var(--text-gray);
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
}

.blog-card p {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.read-more {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary-blue);
}

#blog-post-hero {
  background:url(../images/blog-post-hero.webp) no-repeat center;
  background-size: cover;
}

/* Added individual blog post styles */
/* Blog Post Styles */
.blog-post-content {
  background: white;
}

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

.blog-post-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-date {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.blog-post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.blog-post-body h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
}

.blog-post-body h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

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

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

.blog-post-body li {
  margin-bottom: 0.75rem;
}

.blog-post-img{
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* YouTube Video Embed Styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

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

  /* Added responsive styles for blog posts */
  .blog-post-header h1 {
    font-size: 2rem;
  }

  .blog-post-body {
    font-size: 1rem;
  }

  .blog-post-body h2 {
    font-size: 1.5rem;
  }

  .blog-post-body h3 {
    font-size: 1.25rem;
  }
}

