/* ==========================================================
   Classic Pools blog  (loaded only on /blog/ pages)
   Brand: navy #161747 · sky #0f86ff · orange #e96710
   ========================================================== */

/* ---------- Hero ---------- */
.blog-hero {
    position: relative;
    background: #161747 center center / cover no-repeat;
    color: #fff;
    padding: 90px 0 70px;
    border-bottom: 8px solid #0f86ff;
}
.blog-hero__shade {
    position: absolute; inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(22,23,71,.92) 0%, rgba(22,23,71,.75) 45%, rgba(22,23,71,.35) 100%);
}
.blog-hero__inner { position: relative; }
.blog-hero--plain { background: #161747; padding: 80px 0; }
.blog-hero__cat {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 12px;
    background: #0f86ff;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.blog-hero__title {
    max-width: 780px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 42px;
    line-height: 50px;
    letter-spacing: 1px;
}
.blog-hero__lede { max-width: 640px; margin: 0 0 20px; color: #dfe6f5; font-size: 18px; line-height: 28px; }
.blog-hero__meta { margin: 0; color: #c9d3ea; font-size: 14px; }
.blog-crumbs { margin: 0 0 18px; font-size: 13px; color: #c9d3ea; }
.blog-crumbs a { color: #fff; }
.blog-crumbs a:hover { color: #98c1e0; }
.blog-crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Article ---------- */
.blog-article { color: #444; font-size: 17px; line-height: 29px; }
.blog-article p { margin: 0 0 22px; }
.blog-article h2 {
    margin: 44px 0 18px;
    color: #161747;
    font-size: 28px;
    line-height: 36px;
}
.blog-article h3 {
    margin: 30px 0 12px;
    color: #161747;
    font-size: 21px;
    line-height: 28px;
    letter-spacing: 1px;
}
.blog-article > h2:first-child, .blog-article > .blog-answer:first-child { margin-top: 0; }
.blog-article a { color: #0f86ff; text-decoration: underline; text-underline-offset: 2px; }
.blog-article a.btn { text-decoration: none; }
.blog-article ul, .blog-article ol { margin: 0 0 24px; padding-left: 24px; }
.blog-article li { margin: 0 0 8px; }
.blog-article ul > li { list-style: disc; }
.blog-article ol:not(.blog-steps) > li { list-style: decimal; }
.blog-article li::marker { color: #0f86ff; }
.blog-article img { max-width: 100%; height: auto; }
.blog-article figure { margin: 8px 0 28px; }
.blog-article figcaption { margin-top: 8px; color: #777; font-size: 14px; line-height: 20px; }

/* Quick answer box (written to be quoted in search results) */
.blog-answer {
    margin: 0 0 32px;
    padding: 22px 26px;
    background: #eef6ff;
    border-left: 5px solid #0f86ff;
}
.blog-answer__label {
    margin: 0 0 6px !important;
    color: #0f86ff;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.blog-answer p:last-child { margin-bottom: 0; }

/* Callouts */
.blog-note {
    margin: 0 0 26px;
    padding: 18px 22px;
    background: #fff6ef;
    border-left: 5px solid #e96710;
    font-size: 16px;
    line-height: 26px;
}
.blog-note p:last-child { margin-bottom: 0; }

/* Tables */
.blog-table-wrap { margin: 0 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.blog-table th {
    padding: 12px 14px;
    background: #161747;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
}
.blog-table td { padding: 12px 14px; border-bottom: 1px solid #e3e6ee; vertical-align: top; }
.blog-table tr:nth-child(even) td { background: #f7f8fb; }

/* Numbered steps */
.blog-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.blog-steps > li {
    position: relative;
    list-style: none;
    margin: 0 0 18px;
    padding-left: 52px;
    counter-increment: step;
}
.blog-steps > li:before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 36px; height: 36px;
    background: #0f86ff;
    border-radius: 50%;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    line-height: 36px;
    text-align: center;
}
.blog-steps > li strong { color: #161747; }

/* FAQ */
.blog-faq { margin-top: 48px; padding-top: 8px; border-top: 1px solid #e3e6ee; }
.blog-faq__item { padding: 4px 0; }
.blog-faq__item h3 { margin-top: 22px; }

/* CTA band */
.blog-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 44px 0 28px;
    padding: 28px 30px;
    background: #161747;
    color: #ccd3e6;
}
.blog-cta p { margin: 0; font-size: 16px; line-height: 25px; }
.blog-cta a:not(.btn) { color: #fff; text-decoration: underline; }
.blog-cta__title {
    margin: 0 0 6px !important;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 22px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.blog-cta .btn { flex-shrink: 0; cursor: pointer; }
.blog-cta--wide { margin-top: 56px; }
.blog-byline { color: #888; font-size: 14px; line-height: 22px; font-style: italic; }

/* ---------- Sidebar ---------- */
.blog-sidebar .blog-card {
    margin: 0 0 24px;
    padding: 24px;
    background: #f4f6fa;
    font-size: 15px;
    line-height: 23px;
}
.blog-card p { margin: 0 0 12px; }
.blog-card p:last-child { margin-bottom: 0; }
.blog-card__title {
    color: #161747;
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.blog-card--navy { background: #161747 !important; color: #ccd3e6; }
.blog-card--navy .blog-card__title { color: #fff; }
.blog-card--navy .btn { cursor: pointer; }
.blog-card__phone a { color: #fff; font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 1px; }
.blog-related { margin: 0; padding: 0; list-style: none; }
.blog-related li { padding: 9px 0; border-bottom: 1px solid #dde2ec; }
.blog-related li:last-child { border-bottom: 0; }
.blog-related a { color: #161747; font-weight: 700; }
.blog-related a:hover { color: #0f86ff; }

/* ---------- Index ---------- */
.blog-tag {
    display: inline-block;
    margin: 0 0 10px;
    color: #0f86ff;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.blog-excerpt { display: block; margin: 0 0 14px; color: #555; font-size: 15px; line-height: 24px; }
.blog-meta { display: block; color: #888; font-size: 13px; }
.blog-readmore { display: inline-block; margin-top: 16px; color: #e96710; font-weight: 700; }

.blog-feature {
    display: flex;
    margin: 0 0 40px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(22,23,71,.10);
    color: inherit;
}
.blog-feature:hover, .blog-tile:hover { color: inherit; box-shadow: 0 10px 30px rgba(22,23,71,.18); }
.blog-feature__img { flex: 0 0 55%; min-height: 360px; background: #ccc center / cover no-repeat; }
.blog-feature__text { display: block; padding: 40px; }
.blog-feature__title {
    display: block;
    margin: 0 0 14px;
    color: #161747;
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.blog-tile {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(22,23,71,.10);
    color: inherit;
}
.blog-grid .blog-tile:only-child, .blog-grid .blog-tile:first-child:nth-last-child(2), .blog-grid .blog-tile:first-child:nth-last-child(2) ~ .blog-tile { width: calc(50% - 30px); }
.blog-tile__img { display: block; height: 220px; background: #ccc center / cover no-repeat; }
.blog-tile__text { display: block; padding: 26px; }
.blog-tile__title {
    display: block;
    margin: 0 0 12px;
    color: #161747;
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    line-height: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .blog-hero { padding: 60px 0 50px; }
    .blog-hero__title { font-size: 34px; line-height: 42px; }
    .blog-sidebar { margin-top: 20px; }
    .blog-feature { flex-direction: column; }
    .blog-feature__img { flex-basis: auto; min-height: 260px; }
    .blog-tile, .blog-grid .blog-tile:only-child, .blog-grid .blog-tile:first-child:nth-last-child(2), .blog-grid .blog-tile:first-child:nth-last-child(2) ~ .blog-tile { width: calc(50% - 30px); }
}
@media (max-width: 767px) {
    .blog-hero { padding: 44px 0 36px; }
    .blog-hero__title { font-size: 27px; line-height: 34px; }
    .blog-hero__lede { font-size: 16px; line-height: 25px; }
    .blog-article { font-size: 16px; line-height: 27px; }
    .blog-article h2 { font-size: 23px; line-height: 30px; margin-top: 36px; }
    .blog-article h3 { font-size: 19px; line-height: 26px; }
    .blog-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .blog-feature__text { padding: 26px 20px; }
    .blog-feature__title { font-size: 24px; line-height: 31px; }
    .blog-grid { margin: 0; }
    .blog-tile, .blog-grid .blog-tile:only-child, .blog-grid .blog-tile:first-child:nth-last-child(2), .blog-grid .blog-tile:first-child:nth-last-child(2) ~ .blog-tile { width: 100%; margin: 0 0 24px; }
}
