/* ------------------------------------------------------------------
   Blog — Winelands Dentistry
   Shared styles for the blog archive and individual article pages.
   Layout/structure follows blog.winelandsdentistry.co.za; brand tokens
   (navy / sage / Recoleta+Montserrat) match the rest of this site.
------------------------------------------------------------------- */

.blog-banner h1,
.blog-card-title,
.article-title,
.article-body h2,
.article-body h3,
.related-posts h2,
.article-cta h3 {
    overflow-wrap: break-word;
    word-break: break-word;
}

:root {
    --wd-navy: #1d2d4c;
    --wd-navy-dark: #142238;
    --wd-sage: #cee4d8;
    --wd-sage-soft: #eef5f1;
    --wd-offwhite: #e6eded;
    --wd-ink: #232323;
    --wd-body: #4a4a4a;
    --wd-muted: #8a8f96;
    --wd-border: #e7e7e7;
}

/* ---------- Banner (plain heading, no hero band — matches reference) ---------- */
.blog-banner {
    background: #fff;
    padding: 60px 0 10px;
    text-align: center;
}

.blog-banner .container {
    max-width: 1020px;
    margin: 0 auto;
}

.blog-banner h1 {
    font-family: 'Recoleta-Regular';
    color: var(--wd-navy);
    font-weight: 400;
    font-size: 44px;
    letter-spacing: .5px;
    margin: 0;
    max-width: 100%;
    hyphens: auto;
}

/* ---------- Grid ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1020px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 575.98px) {
    .blog-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Card ---------- */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(29, 45, 76, 0.07);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(29, 45, 76, 0.14);
}

.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--wd-sage-soft);
}

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

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

.blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 4px 0;
}

.blog-card-title {
    font-family: 'Montserrat-Regular';
    color: #555;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 6px;
}


.blog-card-date {
    font-family: 'Montserrat-Regular';
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.blog-card-excerpt {
    font-family: 'Montserrat-Regular';
    font-weight: 400;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-cta {
    font-family: 'Montserrat-Regular';
    font-weight: 600;
    font-size: 16px;
    letter-spacing: normal;
    text-transform: uppercase;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 4px;
}

.blog-card-cta .arrow { display: none; }
.blog-card:hover .blog-card-cta { color: var(--wd-navy); }

/* ---------- Pagination — simple "Older/Newer Entries" links, like the reference ---------- */
.blog-pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 20px auto 0;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1020px;
}

.blog-pagination a {
    font-family: 'Montserrat-Regular';
    font-size: 14px;
    color: var(--wd-navy);
    cursor: pointer;
}

.blog-pagination a:hover { color: var(--wd-navy-dark); text-decoration: underline; }

.blog-empty {
    text-align: center;
    font-family: 'Montserrat-Regular';
    color: var(--wd-muted);
    padding: 60px 0;
}

/* ---------- Article ---------- */
.article-top {
    padding: 26px 0 0;
}

.article-date {
    font-family: 'Montserrat-Regular';
    font-size: 13px;
    color: var(--wd-muted);
    margin-bottom: 22px;
}

.article-title {
    font-family: 'Montserrat-Regular';
    color: var(--wd-navy);
    font-weight: 600;
    font-size: 34px;
    letter-spacing: .3px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.article-category-tag {
    display: inline-block;
    font-family: 'Montserrat-Bold';
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wd-navy);
    background: var(--wd-sage);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 18px;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 40px;
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Montserrat-Regular';
    color: var(--wd-body);
    font-size: 17px;
    line-height: 1.9;
}

.article-body h2 {
    font-family: 'Montserrat-Regular';
    font-weight: 600;
    color: var(--wd-navy);
    font-size: 24px;
    letter-spacing: .3px;
    margin: 42px 0 16px;
}

.article-body h3 {
    font-family: 'Montserrat-Regular';
    font-weight: 600;
    color: var(--wd-navy);
    font-size: 19px;
    margin: 32px 0 12px;
}

.article-body p { margin: 0 0 22px; }

.article-body ul, .article-body ol {
    margin: 0 0 26px;
    padding-left: 22px;
}

.article-body li { margin-bottom: 10px; }

.article-body blockquote {
    border-left: 3px solid var(--wd-sage);
    background: var(--wd-sage-soft);
    padding: 18px 24px;
    margin: 30px 0;
    font-family: 'Montserrat-Regular';
    font-style: italic;
    color: var(--wd-navy);
    font-size: 17px;
    line-height: 1.7;
}

.article-body img {
    width: 100%;
    border-radius: 4px;
    margin: 10px 0 26px;
}

.article-signoff {
    max-width: 720px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--wd-border);
    font-family: 'Montserrat-Regular';
    color: var(--wd-navy);
    font-size: 15px;
}

.article-signoff strong { font-family: 'Montserrat-Bold'; }

.article-back-link {
    max-width: 720px;
    margin: 26px auto 0;
}

.article-back-link a {
    font-family: 'Montserrat-Regular';
    font-size: 14px;
    color: var(--wd-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-back-link a:hover { color: var(--wd-navy-dark); text-decoration: underline; }

.article-cta {
    background: var(--wd-sage);
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    max-width: 900px;
    margin: 56px auto;
}

.article-cta h3 {
    font-family: 'Montserrat-Regular';
    font-weight: 600;
    color: var(--wd-navy);
    font-size: 22px;
    margin: 0 0 10px;
}

.article-cta p {
    font-family: 'Montserrat-Regular';
    color: #2c3e50;
    margin: 0 0 20px;
    font-size: 15px;
}

.article-cta .button {
    font-family: 'Montserrat-Regular';
    background: var(--wd-navy);
    color: var(--wd-offwhite);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 13px;
    border: none;
    padding: 12px 34px;
}

/* ---------- Related posts ---------- */
.related-posts {
    max-width: 1050px;
    margin: 20px auto 0;
    padding: 0 15px;
}

.related-posts h2 {
    font-family: 'Montserrat-Regular';
    color: #333;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: .5px;
    text-align: center;
    margin-bottom: 34px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .blog-banner { padding: 40px 0 6px; text-align: left; }
    .blog-banner .container { text-align: left; }
    .blog-banner h1 { font-size: 28px; }
    .article-title { font-size: 26px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
}

@media (max-width: 430px) {
    .blog-banner h1 { font-size: 24px; line-height: 1.3; }
    .article-title { font-size: 23px; }
    .article-cta { padding: 32px 20px; }
}
