/* Staycation blog (listing + articles). Built on the site's own look: Imbue uppercase headings,
   grey uppercase subheads (.body-text-3), white rounded cards with soft shadows, faq-accordion dropdowns,
   the aqua wave band (.best-pool) and the gradient pill buttons (.phoenix-btn). */

.sub-banner-content .blog-banner-title {
  color: #fff; text-align: center; font-family: Imbue; font-size: 56px;
  font-weight: 400; line-height: 1; text-transform: uppercase; margin: 0 0 .5rem;
}
@media (max-width: 767px) { .sub-banner-content .blog-banner-title { font-size: 30px; } }

/* ---------- Cards (listing + keep reading) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 7px 19.6px rgba(0, 0, 0, .10); color: #111417; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 42, 66, .16); color: #111417; }
.blog-card-img { overflow: hidden; aspect-ratio: 16 / 10; background: #e9f3f7; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-date {
  font-family: Inter; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: #777; margin: 0 0 10px;
}
.blog-card-title { font-family: Inter; font-size: 19px; line-height: 1.35; font-weight: 700; color: #111417; margin: 0 0 10px; }
.blog-card-excerpt {
  font-family: Inter; font-size: 15px; line-height: 22px; letter-spacing: -0.28px; color: #444; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-more {
  margin-top: auto; font-family: Inter; font-size: 13px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #08B0DD;
}
.blog-card-lead { flex-direction: row; margin-bottom: 34px; }
.blog-card-lead .blog-card-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 360px; }
.blog-card-lead .blog-card-body { padding: 44px 46px; justify-content: center; }
.blog-card-lead .blog-card-title { font-family: Imbue; font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: 1; margin-bottom: 16px; }
.blog-card-lead .blog-card-excerpt { -webkit-line-clamp: 4; }
.blog-card-lead .blog-card-more { margin-top: 6px; }

/* ---------- Article ---------- */
.blog-head { max-width: 900px; margin: 0 auto 34px; text-align: center; }
.blog-kicker { margin-bottom: 18px; color: #08B0DD; }
.blog-title { font-size: 52px; margin: 0 0 16px; }
.blog-byline { font-family: Inter; font-size: 14px; font-weight: 600; color: #1D4638; margin: 0; }
.blog-hero { max-width: 1100px; border-radius: 20px; overflow: hidden; margin: 0 auto 50px; box-shadow: 0 7px 19.6px rgba(0, 0, 0, .10); }
.blog-hero img { width: 100%; height: auto; display: block; }  /* thumbnails carry text - never crop them */

.blog-layout { --bs-gutter-x: 48px; }
.blog-article { color: #222; }
.blog-body { font-family: Inter; font-size: 17px; line-height: 1.75; letter-spacing: -0.2px; }
.blog-body p { margin: 0 0 1.25em; }
.blog-body h2 {
  font-family: Imbue; font-weight: 400; text-transform: uppercase; color: #111417;
  font-size: 36px; line-height: 1.05; margin: 1.6em 0 .55em; scroll-margin-top: 130px;
}
.blog-body h3 { font-family: Inter; font-size: 21px; font-weight: 700; color: #1D4638; margin: 1.4em 0 .5em; }
.blog-body h4 { font-family: Inter; font-size: 18px; font-weight: 700; margin: 1.2em 0 .4em; }
.blog-body ul { list-style: none; padding: 0; margin: 0 0 1.5em; }
.blog-body ul li { position: relative; padding-left: 34px; margin: 0 0 .7em; }
.blog-body ul li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: #08B0DD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.blog-body ol { padding-left: 1.4em; margin: 0 0 1.5em; list-style: decimal; }
.blog-body ol li { margin: 0 0 .6em; padding-left: .3em; }
.blog-body a { color: #007994; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: #08B0DD; }
.blog-body img { max-width: 100%; height: auto; border-radius: 20px; margin: 1em 0; }
.blog-body blockquote { border-left: 4px solid #08B0DD; margin: 1.5em 0; padding: .3em 0 .3em 1.2em; color: #3d5566; font-style: italic; }
.blog-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.blog-body th, .blog-body td { border: 1px solid #D9DBE9; padding: 10px 12px; text-align: left; }
.blog-body iframe { max-width: 100%; }
.blog-body > *:first-child { margin-top: 0; }

/* Key takeaways */
.blog-takeaways {
  background: #fff; border-radius: 20px; padding: 28px 30px; margin: 0 0 40px;
  box-shadow: 0 7px 19.6px rgba(0, 0, 0, .10); border-top: 5px solid #08B0DD;
}
.blog-takeaways ul { list-style: none; padding: 0; margin: 0; }
.blog-takeaways li { display: flex; gap: 12px; align-items: flex-start; font-family: Inter; font-size: 16px; line-height: 1.55; margin: 0 0 12px; color: #222; }
.blog-takeaways li:last-child { margin-bottom: 0; }
.blog-takeaways svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }

/* FAQ (site accordion) */
.blog-faq { margin: 56px 0 10px; }
.blog-faq-title {
  font-family: Imbue; font-weight: 400; text-transform: uppercase; color: #111417;
  font-size: 36px; line-height: 1.05; margin: 0 0 24px; scroll-margin-top: 130px;
}
.blog-faq .accordion-header { margin: 0; }
.blog-faq .bp-text { margin: 0; }

/* Sidebar */
.blog-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.blog-aside-title {
  font-family: Inter; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: #777; margin: 0 0 14px;
}
.blog-toc { background: #fff; border-radius: 20px; padding: 26px 26px 18px; box-shadow: 0 7px 19.6px rgba(0, 0, 0, .10); }
.blog-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.blog-toc li { counter-increment: toc; border-top: 1px solid #EEF0F6; }
.blog-toc li:first-child { border-top: 0; }
.blog-toc a {
  display: flex; gap: 12px; padding: 10px 0; font-family: Inter; font-size: 14px; line-height: 1.4;
  color: #1f2a33; text-decoration: none; transition: color .2s ease;
}
.blog-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: #08B0DD; flex: 0 0 22px; }
.blog-toc a:hover { color: #007994; }
.blog-aside-cta {
  border-radius: 20px; padding: 30px 26px; text-align: center; color: #fff;
  background: #002A42 url(../images/add-page/precision-pool-bg.png) center / cover no-repeat;
}
.blog-aside-cta .blog-aside-title { color: rgba(255, 255, 255, .85); }
.blog-aside-text { font-family: Inter; font-size: 15px; line-height: 22px; margin: 0 0 18px; color: #fff; }
.blog-aside-call { display: block; margin-top: 12px; font-family: Inter; font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; }
.blog-aside-call:hover { color: #ADE4D1; }

/* CTA band (aqua wave, same as "Why ... Homeowners Choose Us") */
.blog-cta-band { overflow: hidden; }
.blog-cta-band .container { position: relative; z-index: 2; }
.blog-cta-sub { max-width: 640px; margin: 0 auto 30px; color: #1D4638; }
.blog-cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.blog-cta-call {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 100px;
  background: #fff; color: #002A42; font-family: Inter; font-weight: 600; text-decoration: none;
  transition: transform .25s ease;
}
.blog-cta-call:hover { color: #007994; transform: translateY(-2px); }

/* Keep reading */
.blog-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.blog-all-link { font-family: Inter; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #08B0DD; text-decoration: none; white-space: nowrap; }
.blog-all-link:hover { color: #007994; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .blog-card-lead .blog-card-title { font-size: 34px; }
}
@media (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-aside { position: static; margin-top: 40px; }
  .blog-card-lead { flex-direction: column; }
  .blog-card-lead .blog-card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .blog-card-lead .blog-card-body { padding: 26px 26px 30px; }
  .blog-title { font-size: 42px; }
}
@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-title { font-size: 32px; }
  .blog-card-lead .blog-card-title { font-size: 28px; }
  .blog-hero { margin-bottom: 34px; }
  .blog-body { font-size: 16px; }
  .blog-body h2, .blog-faq-title { font-size: 28px; }
  .blog-takeaways { padding: 22px 20px; }
  .blog-related-head { flex-direction: column; align-items: flex-start; }
}
