/* ============================================================
   Nurtura Blog — reskin to match the new site (2026 refresh)
   Drop-in replacement for /Blog/assets/blog.css
   ------------------------------------------------------------
   Upload alongside the updated header.php + footer.php templates.
   ============================================================ */

/* Pull in the shared site styles so .Site-Header / .Site-Footer
   render correctly. Path is relative to this CSS file:
   /Blog/assets/blog.css → ../../CSS-Main.css = /CSS-Main.css */
@import url('../../CSS-Main.css');

/* ============================================================
   The header & footer now use the new site's .Site-Header /
   .Site-Footer markup, which inherits styling straight from
   ../../CSS-Main.css — so this file only styles the blog-only
   content (Our Blog hero, post cards, article, sidebar,
   pagination). Loaded BEFORE CSS-Main.css.
   Image paths are relative to /Blog/assets/ → ../../Images-Main/
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
p { margin: 0; padding: 0; }
img { max-width: 100%; border-style: none; }
textarea { resize: vertical; }
a[href^='tel:'], a[href^='mailto:'] { white-space: nowrap; }

body {
    background-color: #ffffff;
    color: #333;
}

/* Header & footer come from the new .Site-Header / .Site-Footer
   markup in header.php / footer.php and are styled by CSS-Main.css. */

/* ===== Blog hero band (Our Blog) ===== */
body[class*="blog-"] main > .Row-Pattern-Dark { width: 100%; }
body[class*="blog-"] main > .Row-Pattern-Dark h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0.4em 0;
}

/* ===== Post list — navy hero-style cards ===== */
.blog-page-content { padding: 0 0 2em; }
.post-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.8em;
    max-width: 1180px;
    margin: 2.4em auto 0;
    padding: 0 4%;
}
.post-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55em;
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
    padding: 2em 1.6em 1.7em;
    border-radius: 16px;
    background-color: #0C1C4A;
    background-image: url(../../Images-Main/BG-Pattern-Circles-Dark.png);
    background-size: 220px auto;
    border-top: 3px solid #34c46e;
    box-shadow: 0 14px 32px rgba(12, 28, 74, 0.18);
    color: #cdd3e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(12, 28, 74, 0.28);
}
.post-card .Card-Header { background: none; display: flex; justify-content: center; }
.post-card .Card-Header-BG {
    background: rgba(0, 148, 68, 0.16);
    border: 1.5px solid rgba(52, 196, 110, 0.55);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4em;
}
.post-card .Card-Header-BG i {
    font-size: 1.55rem;
    color: #34c46e;
    background: none;
}
.post-card-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 1.4em;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}
.post-card-description {
    flex: 1;
    max-height: none;
    overflow: hidden;
    font-size: 0.97em;
    line-height: 1.55;
    color: #cdd3e0;
    text-align: center;
}
.post-card-readmore {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.4em;
    background: #009444;
    color: #ffffff;
    font-family: "Montserrat", "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.55em 1.3em;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.post-card-readmore:hover {
    background: #0a7d3a;
    transform: translateY(-2px);
}

/* ===== Single post article ===== */
.blog-post-page .blog-page-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
    width: 100%;
    max-width: 1180px;
    margin: 2.4em auto 0;
    padding: 0 4%;
}
.post-list, .article { flex: 1; }
.article {
    width: 60%;
    max-width: 760px;
    padding: 0;
    text-align: left;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.08em;
    line-height: 1.75;
    color: #2b3142;
}
.article h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.9em);
    line-height: 1.12;
    color: #0C1C4A;
    margin: 0 0 0.5em;
}
.article h2, .article h3 {
    font-family: "Cormorant Garamond", serif;
    color: #0C1C4A;
    line-height: 1.2;
    margin: 1.4em 0 0.4em;
}
.article h2 { font-size: 1.7em; }
.article h3 { font-size: 1.35em; }
.article p { margin: 0 0 1.1em; }
.article a { color: #009444; }
.article a:hover { color: #0a7d3a; }
.article img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(12, 28, 74, 0.16);
    margin: 0.6em 0 1.4em;
}
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article li { margin-bottom: 0.4em; }
.article blockquote {
    margin: 1.4em 0;
    padding: 0.8em 1.2em;
    background: rgba(12, 28, 74, 0.05);
    border-left: 3px solid #009444;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #3a4256;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 40% !important;
    max-width: 360px !important;
    padding: 0;
}
.EZPost-Article-Sidebar {
    background: #F4F6F9;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    padding: 1.2em;
}
.EZPost-Article-Sidebar iframe {
    width: 100%;
    min-height: 420px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 2.4em auto 1em;
}
.pagination a,
.pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4em;
    padding: 0.5em 0.9em;
    font-family: "Montserrat", "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0C1C4A;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d8dce4;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination a:hover,
.pagination .pagination-link:hover {
    background: #009444;
    border-color: #009444;
    color: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 850px) {
    .blog-post-page .blog-page-content { flex-direction: column; }
    .blog-page-content .article { width: 100%; max-width: none; }
    .blog-page-content .sidebar { width: 100% !important; max-width: none !important; }
}
@media (max-width: 600px) {
    .post-card { max-width: 100%; }
}
