/* ============================================================
   Central Air HVAC — blog.css
   Blog listing + post styles
   ============================================================ */

/* ---------- Nav Blog pill + separator ---------- */
.nav-blog-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
}

.nav-blog-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan-dark);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.nav-blog-pill:hover { opacity: 0.75; }

/* ---------- Blog page layout ---------- */
.blog-page {
  background: var(--light);
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 80px;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.blog-container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Blog listing header ---------- */
.blog-header {
  padding: 56px 0 48px;
}

.blog-header__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 12px;
}

.blog-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.blog-header__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
}

/* ---------- Category pill ---------- */
.blog-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-cat--filled {
  background: var(--cyan);
  color: #fff;
}

.blog-cat--outline {
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan-dark);
}

/* ---------- Featured post ---------- */
.blog-featured {
  display: block;
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 32px;
  transition: box-shadow 0.2s, opacity 0.2s;
  color: inherit;
}

.blog-featured:hover {
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-featured__date {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-featured__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-featured__excerpt {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

/* ---------- Blog grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 28px 24px; }
  .blog-container, .blog-container--narrow { padding: 0 20px; }
}

/* ---------- Blog card ---------- */
.blog-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: box-shadow 0.2s, opacity 0.2s;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-card__read {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-card__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

/* ---------- Blog post page ---------- */
.blog-post-page {
  background: var(--light);
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 80px;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cyan-dark);
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.blog-back:hover { opacity: 0.7; }

.blog-post-header {
  margin-bottom: 36px;
}

.blog-post-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-post-header__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-post-header__read {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-post-header__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.blog-post-divider {
  height: 1px;
  background: var(--border);
  margin-top: 24px;
}

/* ---------- Article body ---------- */
.blog-article {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
}

@media (max-width: 680px) {
  .blog-article { padding: 28px 22px; }
}

.blog-article p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.blog-article h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 44px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.blog-article h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 12px;
}

.blog-article ul {
  list-style: none;
  margin-bottom: 24px;
}

.blog-article ul li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.blog-article ul li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3px;
}

.blog-article ol {
  list-style: none;
  counter-reset: ol-counter;
  margin-bottom: 24px;
}

.blog-article ol li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
  counter-increment: ol-counter;
}

.blog-article ol li::before {
  content: counter(ol-counter);
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- Callout ---------- */
.blog-callout {
  background: rgba(0, 180, 216, 0.08);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.blog-callout strong {
  color: var(--cyan-dark);
}

/* ---------- Table ---------- */
.blog-table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.blog-table thead tr {
  background: var(--light);
}

.blog-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.blog-table td {
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.blog-table tr:last-child td { border-bottom: none; }
.blog-table tr:nth-child(odd) td { background: var(--light); }
.blog-table tr:nth-child(even) td { background: #fff; }
.blog-table td:first-child { color: var(--navy); font-weight: 500; }

/* ---------- Inline CTA block ---------- */
.blog-cta-block {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  margin-top: 44px;
}

.blog-cta-block p {
  color: var(--muted) !important;
  margin-bottom: 20px !important;
}

.blog-cta-block .blog-cta-block__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy) !important;
  margin-bottom: 8px !important;
}

/* ---------- Post footer CTA ---------- */
.blog-post-footer {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  text-align: center;
  margin-top: 32px;
}

.blog-post-footer__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.blog-post-footer__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.6;
}
