   /* Container - CSS Grid Layout */
#blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Individual Blog Card */
#blog-posts .blog-card {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 20px;
}

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

/* Card Title */
#blog-posts .blog-card h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#blog-posts .blog-card h2 a {
  color: #333;
  text-decoration: none;
}

#blog-posts .blog-card h2 a:hover {
  /*color: #0066cc;*/
}

/* Excerpt */
#blog-posts .blog-card .excerpt {
  flex: 1;
  margin: 0 0 16px 0;
  font-size: 1 rem;
  line-height: 1.6;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

#blog-posts .blog-card .excerpt p {
  margin: 0;
}

/* Read More Link */
#blog-posts .blog-card .read-more {
  display: inline-block;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: #0066cc;
  text-decoration: none;
}

#blog-posts .blog-card .read-more:hover {
  text-decoration: underline;
}

/* Responsive - 2 columns on tablet */
@media screen and (max-width: 992px) {
  #blog-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Responsive - 1 column on mobile */
@media screen and (max-width: 640px) {
  #blog-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  #blog-posts .blog-card {
    max-height: 350px;
  }
}
    
  #blog-posts .blog-card .featured-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
  }

/* Increase card height to accommodate image */
  #blog-posts .blog-card {
  	max-height: 400px;
}

/* 
 * Single-Page Blog System - Complete Styles
 * Rolling Stone Inspections
 */

/* =================================================================
   CONTAINER & LAYOUT
   ================================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Page title and subtitle */
#blog-list-section h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
  text-align: center;
}

#blog-list-section .subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin: 0 0 40px 0;
}

/* =================================================================
   BLOG LIST VIEW - Card Grid
   ================================================================= */

#blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  padding: 20px;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #0066cc;
}

.blog-card h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.blog-card:hover h2 {
  /*color: #0066cc;*/
}

.blog-card .excerpt {
  flex: 1;
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.blog-card .excerpt p {
  margin: 0;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: auto;
  padding: 8px 16px;
  /*background: #0066cc;*/
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-card .read-more:hover {
  text-decoration:underline;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}

/* =================================================================
   ARTICLE VIEW - Full Article
   ================================================================= */

#article-view {
  min-height: 60vh;
}

.full-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Back button */
.back-button {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 30px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.back-button.bottom {
  margin-top: 40px;
  margin-bottom: 0;
}

/* Featured image */
.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Article header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.article-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.article-category {
  background: #0066cc;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
}

.article-date {
  color: #999;
  display: flex;
  align-items: center;
}

.article-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

/* Article content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px 0;
  line-height: 1.3;
}

.article-content p {
  margin: 0 0 20px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 0;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: #0066cc;
  text-decoration: underline;
}

.article-content a:hover {
  color: #004499;
}

.article-content blockquote {
  border-left: 4px solid #0066cc;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

.article-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article-content pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* =================================================================
   ERROR STATE
   ================================================================= */

.error {
  text-align: center;
  padding: 60px 20px;
}

.error p {
  color: #d32f2f;
  font-size: 18px;
  margin-bottom: 20px;
}

/* =================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================= */

/* Tablet - 2 columns */
@media screen and (max-width: 992px) {
  #blog-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .article-header h1 {
    font-size: 30px;
  }
  
  .article-content {
    font-size: 15px;
  }
}

/* Mobile - 1 column */
@media screen and (max-width: 640px) {
  .container {
    padding: 20px 16px;
  }
  
  #blog-list-section h1 {
    font-size: 28px;
  }
  
  #blog-list-section .subtitle {
    font-size: 16px;
  }
  
  #blog-posts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .blog-card {
    max-height: 350px;
  }
  
  .blog-card .excerpt {
    -webkit-line-clamp: 5;
  }
  
  .article-header h1 {
    font-size: 26px;
  }
  
  .article-content {
    font-size: 15px;
  }
  
  .article-content h2 {
    font-size: 24px;
  }
  
  .article-content h3 {
    font-size: 20px;
  }
}

/* =================================================================
   TRANSITIONS
   ================================================================= */

#blog-list-section,
#article-view {
  animation: fadeIn 0.3s ease;
}

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