/* Blog page styles — Precision Power Services */

.blog-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  background: #ffffff;
  border-radius: 0.5rem;
}

.blog-page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.blog-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-refresh-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #01696F;
  background: transparent;
  border: 1px solid #01696F;
  border-radius: 0.375rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.blog-refresh-btn:hover {
  background: #01696F;
  color: #fff;
}

.blog-refresh-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card__image {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
}

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

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #c46a00;
}

.blog-card__excerpt {
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.blog-card__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c46a00;
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-post {
  display: flex;
  flex-direction: column;
}

.blog-post__date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.blog-post__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  color: #1a1a1a;
}

.blog-post__image {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-post__image img {
  width: 100%;
  display: block;
}

.blog-post__content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.blog-post__content p {
  margin: 0 0 1.25rem;
}

.blog-post__content a {
  color: #01696F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post__content a:hover {
  color: #0C4E54;
}

.blog-post__content h2,
.blog-post__content h3 {
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

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

.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.blog-post__content th,
.blog-post__content td {
  border: 1px solid #e5e5e5;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-post__content th {
  background: #f8f9fa;
  font-weight: 600;
}

.blog-post__content figure {
  margin: 1.5rem 0;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.blog-post__content figcaption {
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  margin-top: 0.4rem;
}

.blog-post__content blockquote {
  border-left: 4px solid #01696F;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #555;
  font-style: italic;
}

.blog-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c46a00;
  text-decoration: none;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.blog-empty h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-empty p {
  color: #777;
}

.blog-paragraph {
  margin-bottom: 1.5rem;
}

.blog-paragraph h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-paragraph p {
  line-height: 1.75;
  color: #444;
}

@media (max-width: 640px) {
  .blog-container {
    padding: 2rem 1rem 3rem;
  }
  .blog-page-title {
    font-size: 1.75rem;
  }
  .blog-post__title {
    font-size: 1.5rem;
  }
}
