/* Saonix Upgrade: visual fixes (cards, footer logo, comment form, mobile buttons) */
/* ---------- 1. Blog / category cards (fixes zoomed images + text running into footer) ---------- */
.posts-grid { align-items: stretch; }
.posts-grid .post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, #e4edf1);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.posts-grid .post-card:hover {
  border-color: var(--cyan, #0ea5c9);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(22,48,63,.08));
  transform: translateY(-2px);
}
.posts-grid .post-card .post-card-thumb {
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;          /* featured images are 800 x 500 */
  overflow: hidden;
  background: var(--navy, #16303f);
}
.posts-grid .post-card .post-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.posts-grid .post-card .post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.posts-grid .post-card .post-card-meta { margin-top: 0; }
.posts-grid .post-card .post-card-title { font-size: 18px; line-height: 1.35; }
.posts-grid .post-card .post-card-title a { color: var(--navy, #16303f); }
.posts-grid .post-card .post-card-title a:hover { color: var(--cyan-dk, #0b8aa8); }
.posts-grid .post-card .post-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
/* "Read Article →" was styled as a full white card — make it a simple link */
.posts-grid .post-card .post-card-link {
  display: inline-block;
  margin-top: auto;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan-dk, #0b8aa8);
}
.posts-grid .post-card .post-card-link:hover {
  color: var(--navy, #16303f);
  transform: none;
  box-shadow: none;
}
@media (max-width: 1024px) and (min-width: 641px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 2. Footer logo (logo PNG has a white background, the old filter turned it into a white box) ---------- */
.site-footer .footer-brand img {
  filter: none;
  opacity: 1;
  height: 52px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
}

/* ---------- 3. Comment form ---------- */
.comments-area {
  margin-top: 56px;
  padding: 28px;
  background: var(--bg-soft, #f4f8fa);
  border: 1px solid var(--border, #e4edf1);
  border-radius: var(--radius-lg, 16px);
}
.comment-reply-title { font-size: 22px; margin: 0 0 6px; color: var(--navy, #16303f); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 16px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes,
.comment-form .comment-form-comment,
.comment-form .comment-form-url,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit { grid-column: 1 / -1; }
.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #16303f);
}
.comment-form .required { color: var(--cyan-dk, #0b8aa8); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink, #0f2430);
  background: #fff;
  border: 1px solid var(--border, #d9e5ea);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--cyan, #0ea5c9);
  box-shadow: 0 0 0 3px rgba(14,165,201,.15);
}
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 500; color: var(--body, #46626f); }
.comment-form .comment-form-cookies-consent input { width: 18px; height: 18px; accent-color: var(--cyan, #0ea5c9); }
.comment-form .form-submit input[type="submit"] { cursor: pointer; padding: 13px 26px; border: 0; }
@media (max-width: 640px) {
  .comment-form { grid-template-columns: 1fr; }
  .comments-area { padding: 20px; }
}

/* ---------- 4. Mobile: fewer floating buttons covering the text ---------- */
@media (max-width: 640px) {
  .fabs .fab-calc { display: none; }   /* calculator stays in menu + pages */
  .fabs .fab { font-size: 13px; padding: 10px 14px; }
}

/* ---------- 5. Category link box under blog posts ---------- */
.sxu-cat-box {
  margin: 36px 0 0;
  padding: 18px 22px;
  border: 2px solid var(--border, #e4edf1);
  border-left: 6px solid var(--cyan, #0ea5c9);
  border-radius: 0;
  background: var(--bg-soft, #f4f8fa);
  font-weight: 600;
  color: var(--navy, #16303f);
}
.sxu-cat-box a { font-weight: 800; color: var(--cyan-dk, #0b8aa8); }

/* ---------- 6. Price guide links on the pricing page ---------- */
.sxu-guides { padding: 56px 0; }
.sxu-guides h2 { font-size: 28px; margin: 0 0 18px; color: var(--navy, #16303f); }
.sxu-guides ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sxu-guides a {
  display: block; padding: 14px 16px; border: 2px solid var(--border, #e4edf1); border-radius: 12px;
  font-weight: 800; color: var(--navy, #16303f); background: #fff;
}
.sxu-guides a:hover { border-color: var(--cyan, #0ea5c9); color: var(--cyan-dk, #0b8aa8); }
@media (max-width: 900px) { .sxu-guides ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 7. Footer: Solar Recycling column ---------- */
@media (min-width: 1025px) {
  .site-footer .footer-grid { grid-template-columns: 2fr repeat(5, 1fr); gap: 32px; }
}
