/* =========================================================
   CAROLINAHOMESPRO — BLOG / SINGLE POST
   ========================================================= */


/* ---------------------------------------------------------
   BLOG PAGE BACKGROUND
--------------------------------------------------------- */

.single-post {
    background: #f8fafc;
}


/* ---------------------------------------------------------
   MAIN ARTICLE CONTAINER
--------------------------------------------------------- */

.single-post .site-main {
    padding-top: 60px;
    padding-bottom: 100px;
}

.single-post .inside-article {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    padding: 0 36px 70px;
    border-radius: 0 0 18px 18px;
}


/* ---------------------------------------------------------
   FEATURED IMAGE
--------------------------------------------------------- */

.single-post .post-image {
    margin-bottom: 45px;
}

.single-post .post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
}


/* ---------------------------------------------------------
   POST TITLE
--------------------------------------------------------- */

.single-post .entry-title {
    max-width: 1120px;
    margin: 0 auto 20px;
    color: #173b63;
    font-size: 48px;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.8px;
}


/* ---------------------------------------------------------
   POST META
--------------------------------------------------------- */

.single-post .entry-meta {
    max-width: 1120px;
    margin: 0 auto 42px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.single-post .entry-meta a {
    color: #64748b;
    text-decoration: none;
}

.single-post .entry-meta a:hover {
    color: #16a34a;
}

/* ---------------------------------------------------------
   ARTICLE CONTENT
--------------------------------------------------------- */

.single-post .entry-content {
    max-width: 1120px;
    margin: 0 auto;
}

.single-post .entry-content p {
    margin-bottom: 24px;
    color: #334155;
    font-size: 18px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   HEADINGS
--------------------------------------------------------- */

.single-post .entry-content h2 {
    margin-top: 58px;
    margin-bottom: 22px;
    color: #173b63;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.single-post .entry-content h3 {
    margin-top: 38px;
    margin-bottom: 15px;
    color: #173b63;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}


/* ---------------------------------------------------------
   LINKS
--------------------------------------------------------- */

.single-post .entry-content a {
    color: #15803d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.single-post .entry-content a:hover {
    color: #166534;
}


/* ---------------------------------------------------------
   LISTS
--------------------------------------------------------- */

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 0 0 28px 25px;
    color: #334155;
}

.single-post .entry-content li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   BLOG COST TABLES
--------------------------------------------------------- */

.single-post .entry-content table {
    width: 100%;
    margin: 35px 0 40px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.single-post .entry-content table th {
    padding: 18px 22px;
    background: #173b63;
    color: #ffffff;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.single-post .entry-content table td {
    padding: 17px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    vertical-align: middle;
}

.single-post .entry-content table tr:last-child td {
    border-bottom: none;
}

.single-post .entry-content table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.single-post .entry-content table tbody tr:hover td {
    background: #f0fdf4;
}

.single-post .entry-content table td:last-child {
    font-weight: 700;
    color: #173b63;
}


/* ---------------------------------------------------------
   BLOCKQUOTES
--------------------------------------------------------- */

.single-post .entry-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    border-left: 4px solid #16a34a;
    background: #f0fdf4;
    border-radius: 0 12px 12px 0;
    color: #334155;
}


/* ---------------------------------------------------------
   IMAGES INSIDE ARTICLES
--------------------------------------------------------- */

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.single-post .entry-content figure {
    margin: 35px 0;
}


/* ---------------------------------------------------------
   CTA BUTTONS
--------------------------------------------------------- */

.single-post .entry-content .wp-block-button {
    margin: 38px 0;
}

.single-post .entry-content .wp-block-button__link {
    background: #16a34a;
    color: #ffffff !important;
    padding: 16px 30px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.18);
    transition: all 0.2s ease;
}

.single-post .entry-content .wp-block-button__link:hover {
    background: #15803d;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 768px) {

    .single-post .site-main {
        padding-top: 25px;
        padding-bottom: 60px;
    }

    .single-post .inside-article {
        padding: 0 22px 50px;
        border-radius: 0;
    }

    .single-post .post-image {
        margin-bottom: 30px;
    }

    .single-post .post-image img {
        border-radius: 12px;
    }

    .single-post .entry-title {
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -0.4px;
}

    .single-post .entry-meta {
        margin-bottom: 32px;
        font-size: 14px;
    }

.single-post .entry-content h2 {
    margin-top: 45px;
    margin-bottom: 18px;
    font-size: 27px;
}

.single-post .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 13px;
    font-size: 21px;
}

.single-post .entry-content p {
    margin-bottom: 19px;
}


  .single-post .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 10px;
}

.single-post .entry-content table th,
.single-post .entry-content table td {
    padding: 13px 14px;
    font-size: 14px;
}

}
@media (max-width: 768px) {

    .chp-blog-cta {
        margin: 40px 0;
        padding: 30px 22px;
    }

    .chp-blog-cta h3 {
        font-size: 25px;
    }

    .chp-blog-cta p {
        font-size: 16px;
    }

    .chp-cta-button {
        width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================================
   REMOVE EXCESS SPACE ABOVE BLOG FEATURED IMAGE
========================================================= */

.single-post .site-content {
    padding-top: 0 !important;
}

.single-post .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single-post .inside-article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single-post .post-image {
    margin-top: 0 !important;
}

/* =========================================================
   BLOG CTA
========================================================= */

.single-post .entry-content .wp-block-button {
    margin: 45px 0;
    text-align: center;
}

.single-post .entry-content .wp-block-button__link {
    display: inline-block;
    background: #16a34a;
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.18);
    transition: all 0.2s ease;
}

.single-post .entry-content .wp-block-button__link:hover {
    background: #15803d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.24);
}

/* =========================================================
   ARTICLE HEADINGS
========================================================= */

.single-post .entry-content h2 {
    margin-top: 60px;
    margin-bottom: 20px;
    color: #173b63;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.single-post .entry-content h3 {
    margin-top: 38px;
    margin-bottom: 15px;
    color: #173b63;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.single-post .entry-content h2 + h3 {
    margin-top: 25px;
}

.single-post .entry-content p {
    margin-bottom: 22px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 28px;
}

.single-post .entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}
/* =========================================================
   BLOG LEAD GENERATION CTA
========================================================= */

.chp-blog-cta {
    margin: 55px 0;
    padding: 42px 45px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    text-align: center;
}

.chp-blog-cta h3 {
    margin: 0 0 12px;
    color: #173b63;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.chp-blog-cta p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.chp-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #16a34a;
    color: #ffffff !important;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.18);
    transition: all 0.2s ease;
}

.chp-cta-button:hover {
    background: #15803d;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* =========================================================
   QUICK ANSWER BOX
========================================================= */

.chp-quick-answer {
    margin: 35px 0 50px;
    padding: 30px 32px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
}

.chp-quick-answer-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.chp-quick-answer h3 {
    margin: 0 0 14px !important;
    color: #173b63 !important;
    font-size: 25px !important;
}

.chp-quick-answer p {
    margin: 0 0 25px !important;
    color: #334155;
}

.chp-quick-answer-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.chp-quick-answer-points div {
    padding: 18px;
    background: #ffffff;
    border-radius: 9px;
    border: 1px solid #dcfce7;
}

.chp-quick-answer-points strong {
    display: block;
    margin-bottom: 7px;
    color: #173b63;
}

.chp-quick-answer-points span {
    display: block;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .chp-quick-answer {
        padding: 24px 20px;
        margin: 30px 0 40px;
    }

    .chp-quick-answer h3 {
        font-size: 22px !important;
    }

    .chp-quick-answer-points {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}

/* =========================================================
   BLOG ARCHIVE
========================================================= */

.blog-archive-hero {
    padding: 90px 0 80px;
    text-align: center;
    background:
        linear-gradient(
            180deg,
            #f0fdf4 0%,
            #ffffff 100%
        );
}

.blog-archive-hero .chp-container {
    max-width: 850px;
}

.blog-archive-hero h1 {
    margin: 14px 0 18px;
    color: #173b63;
    font-size: 48px;
    line-height: 1.15;
}

.blog-archive-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}


/* GRID */

.blog-archive-content {
    padding: 90px 0 110px;
    background: #f8fafc;
}

.archive-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* CARD */

.archive-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.archive-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}


/* IMAGE */

.archive-blog-image {
    display: block;
    height: 230px;
    overflow: hidden;
}

.archive-blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.archive-blog-card:hover .archive-blog-image img {
    transform: scale(1.04);
}


/* CONTENT */

.archive-blog-content {
    padding: 26px;
}

.archive-blog-content h2 {
    margin: 12px 0 14px;
    font-size: 23px;
    line-height: 1.35;
    color: #173b63;
}

.archive-blog-content h2 a {
    color: inherit;
    text-decoration: none;
}

.archive-blog-content h2 a:hover {
    color: #15803d;
}

.archive-blog-content p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* PAGINATION */

.blog-pagination {
    margin-top: 55px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: #ffffff;
    color: #173b63;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.blog-pagination .page-numbers:hover {
    border-color: #16a34a;
    color: #15803d;
}

.blog-pagination .current {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}


/* TABLET */

@media (max-width: 950px) {

    .archive-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-archive-hero h1 {
        font-size: 40px;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .blog-archive-hero {
        padding: 65px 0 55px;
    }

    .blog-archive-hero h1 {
        font-size: 34px;
    }

    .blog-archive-hero p {
        font-size: 16px;
    }

    .blog-archive-content {
        padding: 65px 0 80px;
    }

    .archive-blog-grid {
        grid-template-columns: 1fr;
    }

    .archive-blog-image {
        height: 220px;
    }

}