/* ==========================================================================
   Blog Styles - Bolt IoT
   ========================================================================== */

/* Blog Listing */
.blog-hero {
  background: #f8f9fa;
  color: #333;
  padding: 40px 20px;
  border-bottom: 1px solid #e0e0e0;
}
.blog-hero-inner {
  display: flex;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  align-items: flex-start;
}
.blog-hero-left {
  flex: 1;
  min-width: 0;
}
.blog-hero-right {
  flex: 0 0 380px;
}
.blog-hero h1 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 36px;
  margin-bottom: 10px;
  color: #333;
}
.blog-hero p {
  font-family: 'open_sansregular', sans-serif;
  font-size: 16px;
  color: #555;
  margin: 0 0 20px;
}
.blog-hero-form {
  max-width: 400px;
}
.blog-hero-form .hs-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-hero-form .hs-form .hs-email {
  flex: 1;
  min-width: 180px;
}
.blog-hero-form .hs-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'open_sansregular', sans-serif;
}
.blog-hero-form .hs-form .hs-submit {
  flex: 0 0 auto;
}
.blog-hero-form .hs-form input[type="submit"] {
  background: #25a55f;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'open_sansregular', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}
.blog-hero-form .hs-form input[type="submit"]:hover {
  background: #1e8a4e;
}
.blog-hero-terms {
  font-family: 'open_sansregular', sans-serif;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
}
.blog-hero-terms a {
  color: #25a55f;
  text-decoration: underline;
}
/* Featured card in hero */
.blog-hero-featured {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.blog-hero-featured img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-hero-featured-content {
  padding: 15px;
}
.blog-hero-featured-content h3 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.blog-hero-featured-content h3 a {
  color: #333;
  text-decoration: none;
}
.blog-hero-featured-content h3 a:hover {
  color: #25a55f;
}
.blog-hero-featured-content .blog-card-meta {
  margin-bottom: 0;
}

/* Post Grid */
.blog-listing {
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 15px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}
.blog-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.blog-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-content h2 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.4;
  order: 1;
}
.blog-card-content h2 a {
  color: #333;
  text-decoration: none;
}
.blog-card-content h2 a:hover {
  color: #25a55f;
}
.blog-card-meta {
  font-family: 'open_sansregular', sans-serif;
  font-size: 12px;
  color: #888;
  margin-top: auto;
  padding-top: 8px;
  order: 3;
}
.blog-card-meta span { margin-right: 12px; }
.blog-card-excerpt {
  font-family: 'open_sansregular', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  order: 2;
  margin-bottom: 0;
}
.blog-card-tag {
  display: inline-block;
  background: #eaefc4;
  color: #333;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 8px;
  font-family: 'open_sansregular', sans-serif;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 40px 0;
  font-family: 'open_sansregular', sans-serif;
}
.blog-pagination a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}
.blog-pagination a:hover {
  background: #25a55f;
  color: #fff;
  border-color: #25a55f;
}
.blog-pagination .active {
  background: #25a55f;
  color: #fff;
  border-color: #25a55f;
}
.blog-pagination span {
  color: #888;
  font-size: 14px;
}

/* Blog Post Detail */
.blog-post {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 15px;
}
.blog-post-inner {
  display: flex;
  gap: 40px;
}
.blog-content-col {
  flex: 1;
  min-width: 0;
}
.blog-sidebar {
  flex: 0 0 300px;
}
.blog-post-header {
  margin-bottom: 30px;
}
.blog-post-header h1 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 32px;
  line-height: 1.3;
  color: #333;
  margin: 0 0 15px;
}
.blog-post-meta {
  font-family: 'open_sansregular', sans-serif;
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
}
.blog-post-meta span {
  margin-right: 15px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.blog-tags a {
  display: inline-block;
  background: #eaefc4;
  color: #333;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'open_sansregular', sans-serif;
}
.blog-featured-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 30px;
}
.blog-body {
  font-family: 'open_sansregular', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.blog-body h2 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 24px;
  margin: 30px 0 15px;
  color: #333;
}
.blog-body h3 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 20px;
  margin: 25px 0 10px;
  color: #333;
}
.blog-body p {
  margin: 0 0 15px;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 15px 0;
}
.blog-body ul, .blog-body ol {
  padding-left: 25px;
  margin: 0 0 15px;
}
.blog-body li {
  margin-bottom: 8px;
}
.blog-body a {
  color: #25a55f;
  text-decoration: underline;
}
.blog-body blockquote {
  border-left: 4px solid #9bdf46;
  margin: 20px 0;
  padding: 15px 20px;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

/* Social Share */
.blog-social-share {
  display: flex;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 30px;
}
.blog-social-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
  font-family: 'open_sansregular', sans-serif;
  transition: all 0.3s;
}
.blog-social-share a:hover {
  background: #f0f0f0;
}

/* Related Posts */
.blog-related {
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}
.blog-related h3 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-related-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.blog-related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.blog-related-card h4 {
  padding: 12px;
  font-family: 'open_sansregular', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
.blog-related-card h4 a {
  color: #333;
  text-decoration: none;
}
.blog-related-card h4 a:hover {
  color: #25a55f;
}

/* Comments Placeholder */
.blog-comments-placeholder {
  padding: 30px;
  background: #f9f9f9;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
  font-family: 'open_sansregular', sans-serif;
  color: #888;
  font-size: 14px;
}

/* Sidebar */
.sidebar-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}
.sidebar-section h3 {
  font-family: 'nexa_boldregular', sans-serif;
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #9bdf46;
  padding-bottom: 10px;
}
.sidebar-top-stories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-top-stories li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-top-stories li:last-child {
  border-bottom: none;
}
.sidebar-top-stories a {
  color: #333;
  text-decoration: none;
  font-family: 'open_sansregular', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.sidebar-top-stories a:hover {
  color: #25a55f;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-hero-right {
    flex: 0 0 300px;
  }
}
@media (max-width: 768px) {
  .blog-hero-inner {
    flex-direction: column;
  }
  .blog-hero-right {
    flex: none;
    width: 100%;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-inner {
    flex-direction: column;
  }
  .blog-sidebar {
    flex: none;
    width: 100%;
  }
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-header h1 {
    font-size: 24px;
  }
}
