*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #ffffff;
    --text: #222222;
    --muted: #666666;
    --border: #e5e5e5;
    --accent: #0066cc;
    --nav-bg: #1a1a2e;
    --code-bg: #f4f4f4;
    --max-content: 760px;
    --max-wide: 1140px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.9rem 2rem;
    background: var(--nav-bg);
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    display: block;
    height: 38px;
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.nav-links a:hover { color: #ffffff; }

/* ── Layout ──────────────────────────────────────────────────────────── */
main { min-height: 70vh; }

.container {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    background: var(--nav-bg);
    color: #fff;
    padding: 3rem 2rem;
}

.hero h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.hero p  { margin: 0; color: rgba(255,255,255,0.7); font-size: 1.05rem; }

.page-header {
    background: #f7f8fa;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
}

.page-header h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.page-header p  { margin: 0; color: var(--muted); }

/* ── Blog grid ───────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-title a:hover { color: var(--accent); }

.author-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover { color: var(--accent); }

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
}

/* ── Taxonomy pills ──────────────────────────────────────────────────── */
.pill {
    display: inline-block;
    background: #eef3fb;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s;
}

.pill:hover { background: #dce9f9; }

.pill-tag {
    background: #f0f0f0;
    color: #444;
}

.pill-tag:hover { background: #e0e0e0; }

/* ── Blog post content ───────────────────────────────────────────────── */
.post-header {
    background: var(--nav-bg);
    color: #fff;
    padding: 3rem 1.5rem 2.5rem;
}

.post-header .breadcrumb {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}

.post-header .breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.post-header .breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.post-header h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.post-header .post-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.post-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-body {
    padding: 2.5rem 0 4rem;
}

/* Prose styles */
.prose { max-width: var(--max-content); }
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; line-height: 1.3; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: none; }
.prose img { max-width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.prose blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    color: var(--muted);
    background: #f7f8fa;
    border-radius: 0 6px 6px 0;
}

/* Code */
.prose code {
    font-family: ui-monospace, "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.875em;
    background: var(--code-bg);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.prose pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* ── Taxonomy listing ────────────────────────────────────────────────── */
.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
}

.taxonomy-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.taxonomy-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.taxonomy-card-name { font-weight: 600; font-size: 0.95rem; }
.taxonomy-card-count { font-size: 0.8rem; color: var(--muted); }

/* ── Post list (category/tag pages) ─────────────────────────────────── */
.post-list { list-style: none; margin: 0; padding: 2rem 0 3rem; }
.post-list li {
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}
.post-list li:first-child { border-top: 1px solid var(--border); }
.post-list .post-date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; min-width: 90px; }
.post-list .post-title { font-size: 0.95rem; font-weight: 500; }
.post-list .post-title a { color: var(--text); text-decoration: none; }
.post-list .post-title a:hover { color: var(--accent); }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    padding: 2rem 0;
    list-style: none;
    margin: 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text);
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Outline button — used on light backgrounds */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Hero/dark-bg button — white outline, fills white on hover */
.btn-hero {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-hero:hover { background: #fff; color: var(--nav-bg); }

/* ── Home hero ───────────────────────────────────────────────────────── */
.home-hero {
    position: relative;
    background-image: url('/images/home/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 7rem 2rem;
    text-align: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.62);
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    margin: 0 0 1rem;
    font-size: 2.4rem;
    line-height: 1.25;
}

.home-hero p {
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.82);
    font-size: 1.1rem;
    max-width: 580px;
}

/* ── Home sections ───────────────────────────────────────────────────── */
.home-section { padding: 4rem 0; }
.home-section + .home-section { border-top: 1px solid var(--border); }

.section-intro { text-align: center; margin-bottom: 2.5rem; }
.section-intro h2 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.section-intro p  { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Services alternating rows (services page) ───────────────────────── */
.services-alt { display: flex; flex-direction: column; gap: 2.5rem; }

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.service-row-reverse .service-row-card { order: 2; }
.service-row-reverse .service-row-img  { order: 1; }

.service-row-card {
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 2rem 1.75rem;
}

.service-row-card h2 { font-size: 1.4rem; margin: 0 0 0.75rem; }
.service-row-card p  { color: var(--muted); margin: 0 0 1.5rem; line-height: 1.7; font-size: 0.95rem; }

.service-row-img {
    display: flex;
}

.service-row-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ── Services 3-column cards ─────────────────────────────────────────── */
.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}

.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card-body h3 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.service-card-body p  { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; flex: 1; line-height: 1.6; }

/* ── About split with overlapping images ─────────────────────────────── */
.home-about-section { background: #f7f8fa; }

.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-about-imgs {
    position: relative;
    height: 420px;
}

.about-img-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 85%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.about-img-front {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%;
    height: 58%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.home-about-text h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.home-about-text p  { color: var(--muted); margin: 0 0 1rem; line-height: 1.7; }

/* ── CTA banner ──────────────────────────────────────────────────────── */
.cta-banner {
    background: var(--nav-bg);
    color: #fff;
    padding: 3.5rem 2rem;
}

.cta-banner h2 { margin: 0 0 0.75rem; font-size: 1.7rem; color: #fff; }
.cta-banner p  { margin: 0 0 1.75rem; color: rgba(255,255,255,0.75); font-size: 1rem; }

/* ── Testimonials slider ─────────────────────────────────────────────── */
.testimonials-section { background: #f7f8fa; }

.testimonials-slider {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 0.5rem;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem 2.25rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.testimonial-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border);
}

.testimonial-card blockquote {
    margin: 0;
    border: none;
    padding: 0;
    background: none;
    border-radius: 0;
    color: var(--text);
}

.testimonial-card blockquote p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    color: #444;
}

.testimonial-card blockquote footer {
    font-size: 0.85rem;
    color: var(--muted);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover { border-color: var(--accent); color: var(--accent); }

.slider-dots { display: flex; gap: 0.4rem; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.dot.active { background: var(--accent); }

/* ── Contact form ────────────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 720px;
}

.contact-info-col h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.contact-info-col h4 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
.contact-info-col p  { color: var(--muted); margin: 0 0 0.75rem; font-size: 0.95rem; }
.contact-info-col a  { color: var(--accent); text-decoration: none; }
.contact-info-col a:hover { text-decoration: underline; }

.contact-details {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.15rem;
}

.contact-social {
    margin-top: 1.25rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.social-links a:hover { color: var(--accent); }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.required { color: #c0392b; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

.form-control.is-invalid { border-color: #c0392b; }

textarea.form-control { resize: vertical; min-height: 130px; }

.field-error { font-size: 0.8rem; color: #c0392b; display: block; margin-top: 0.25rem; }

.form-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: #2e7d32;
    margin-bottom: 1.5rem;
}

.form-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: #c0392b;
    margin-bottom: 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .service-row { grid-template-columns: 1fr; }
    .service-row-reverse .service-row-card,
    .service-row-reverse .service-row-img { order: unset; }
    .service-row-reverse .service-row-img { order: -1; }
    .services-cards { grid-template-columns: 1fr; }
    .home-about { grid-template-columns: 1fr; }
    .home-about-imgs { display: none; }
}

@media (max-width: 640px) {
    .site-nav { flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }
    .nav-links { margin-left: 0; gap: 1rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-header h1 { font-size: 1.4rem; }
    .hero h1 { font-size: 1.5rem; }
    .home-hero h1 { font-size: 1.6rem; }
    .home-hero { padding: 4rem 1.5rem; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .testimonial-card { flex-direction: column; gap: 1rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   PAGE CARD SYSTEM (cool canvas + white card)
   ============================================================ */
.page-canvas {
    padding: 2.5rem 1.25rem 4rem;
    background: #eef3fb;
}

.page-card {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    padding: 3rem 3rem 3.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 102, 204, 0.06);
}
.page-card:last-child { margin-bottom: 0; }
.page-card.page-card-wide { max-width: 720px; }
.page-card.page-card-narrow { max-width: 560px; text-align: center; }
.page-card.page-card-prose {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2a2a2a;
}

.page-canvas-header {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    padding: 0 0.5rem;
}
.page-canvas-header h1 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1.15;
    color: #0a3a6b;
    margin: 0 0 0.5rem 0;
}
.page-canvas-header p {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #5a6a7a;
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .page-canvas { padding: 1.5rem 0.75rem 3rem; }
    .page-card { padding: 2rem 1.5rem 2.5rem; border-radius: 10px; }
    .page-canvas-header h1 { font-size: 1.85rem; }
}

/* ============================================================
   ESSAY / LONG-FORM HOME (Index-v2)
   ============================================================ */
.essay-page {
    padding: 2.5rem 1.25rem 4rem;
    background: #eef3fb;
}

.essay-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 3rem 3.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 102, 204, 0.06);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2a2a2a;
}

.essay-content p {
    margin: 0 0 1.25em 0;
}

.essay-greeting {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 2rem 0 !important;
    color: #1a1a1a;
}

.essay-portrait {
    float: right;
    width: 180px;
    height: auto;
    margin: 0 0 1.25rem 1.75rem;
    shape-outside: margin-box;
}

@media (max-width: 640px) {
    .essay-portrait {
        float: none;
        display: block;
        width: 140px;
        margin: 0 auto 1.5rem;
    }
}

.essay-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.essay-pullquote {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1a3a5e;
    margin: 2em 0;
    padding: 14px 22px;
    border-left: 3px solid #0066cc;
    background: #eef3fb;
    border-radius: 0 8px 8px 0;
}

.essay-stats {
    margin: 2em 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #eef3fb;
    border-left: 3px solid #0066cc;
    border-radius: 0 8px 8px 0;
    font-family: Georgia, "Times New Roman", Times, serif;
}
.essay-stats-label {
    font-style: italic;
    color: #1a3a5e;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.essay-stat {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.4rem 0;
    border-top: 1px solid #d6e2f0;
}
.essay-stat:first-of-type { border-top: none; }
.essay-stat-num {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0a3a6b;
    min-width: 4rem;
    line-height: 1;
}
.essay-stat-text {
    color: #2a2a2a;
    font-size: 1rem;
    line-height: 1.5;
}

.essay-signoff {
    margin: 3rem 0 2rem 0;
}
.essay-signoff-line,
.essay-signoff-name,
.essay-signoff-title {
    margin: 0 !important;
    line-height: 1.5;
}
.essay-signoff-line {
    color: #2a2a2a;
}
.essay-signoff-name {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-top: 0.25rem !important;
}
.essay-signoff-title {
    color: #777;
    font-size: 0.9rem;
    margin-top: 0.5rem !important;
}

.essay-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e0;
}

.essay-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e0;
}

.essay-actions .btn {
    margin-right: 0.5rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid #d8d4cb;
    color: #555;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    border-color: #0066cc;
    color: #0a3a6b;
    background: #eef3fb;
}

.btn-icon svg {
    flex-shrink: 0;
}

.essay-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.essay-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Print: strip chrome, render the essay clean as PDF */
@media print {
    header, nav, footer,
    .site-header, .site-footer,
    .essay-actions, .essay-toast {
        display: none !important;
    }
    body, .essay-page {
        background: #fff !important;
    }
    .essay-page {
        padding: 0 !important;
    }
    .essay-content {
        max-width: none;
        padding: 0;
        background: #fff;
        box-shadow: none;
        border-radius: 0;
        font-size: 11pt;
        line-height: 1.6;
        color: #000;
    }
    .essay-pullquote {
        background: #f4f0e8 !important;
        page-break-inside: avoid;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
}

@media (max-width: 640px) {
    .essay-page { padding: 1.5rem 0.75rem 3rem; }
    .essay-content {
        padding: 2rem 1.5rem 2.5rem;
        font-size: 1rem;
        line-height: 1.75;
        border-radius: 10px;
    }
    .essay-greeting { font-size: 1.85rem; }
    .essay-pullquote {
        font-size: 1.05rem;
        padding: 12px 16px;
        margin: 1.75em 0;
    }
    .essay-stats { padding: 1rem 1.1rem 1.25rem; }
    .essay-stat-num { font-size: 1.35rem; min-width: 3rem; }
    .essay-stat-text { font-size: 0.95rem; }
}

/* ============================================================
   PAGE-CARD CONTENT BLOCKS
   ============================================================ */
.about-story {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2a2a2a;
}
.about-story h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #0a3a6b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}
.about-story p { margin: 0 0 1.25em 0; }
.about-story img {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0 0.5rem;
    display: block;
    object-fit: cover;
    max-height: 360px;
}

.why-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.why-trio-item {
    padding: 1.5rem;
    background: #f7faff;
    border: 1px solid #d6e2f0;
    border-radius: 10px;
}
.why-trio-num {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.why-trio-item h3 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0a3a6b;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.why-trio-item p {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a2a2a;
    margin: 0;
}
@media (max-width: 800px) {
    .why-trio { grid-template-columns: 1fr; gap: 1rem; }
}

.testimonials-block h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: #0a3a6b;
    margin: 0 0 1.5rem 0;
    text-align: center;
    line-height: 1.2;
}
.testimonial-quote {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-top: 1px solid #d6e2f0;
}
.testimonial-quote:first-of-type { border-top: none; padding-top: 0; }
.testimonial-quote img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.testimonial-quote blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.65;
    color: #2a2a2a;
}
.testimonial-quote blockquote p { margin: 0 0 0.5rem 0; }
.testimonial-quote blockquote footer {
    font-style: normal;
    font-size: 0.85rem;
    color: #5a6a7a;
}
.testimonial-quote blockquote footer strong { color: #0a3a6b; }

@media (max-width: 640px) {
    .testimonial-quote { flex-direction: column; gap: 0.75rem; }
    .testimonial-quote img { width: 56px; height: 56px; }
}

/* ============================================================
   BLOG GRID ON CANVAS
   ============================================================ */
.blog-card-on-canvas {
    background: #fff;
    border: 1px solid #d6e2f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 102, 204, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card-on-canvas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.1);
}

/* ============================================================
   PROSE IN PAGE CARDS (Blog Post, Privacy, Terms)
   ============================================================ */
.page-card .prose {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2a2a2a;
    max-width: none;
}
.page-card .prose h1,
.page-card .prose h2,
.page-card .prose h3,
.page-card .prose h4 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: #0a3a6b;
    font-weight: 600;
    margin-top: 2rem;
}
.page-card .prose h1 { font-size: 1.9rem; line-height: 1.2; margin-top: 0; }
.page-card .prose h2 { font-size: 1.4rem; }
.page-card .prose h3 { font-size: 1.15rem; }
.page-card .prose blockquote {
    border-left: 3px solid #0066cc;
    background: #eef3fb;
    color: #1a3a5e;
    border-radius: 0 8px 8px 0;
}
.page-card .prose code {
    background: #eef3fb;
    color: #0a3a6b;
}
.page-card .prose pre {
    background: #f7f8fa;
    border: 1px solid #d6e2f0;
}

/* Blog post header inside card */
.post-card-meta {
    color: #5a6a7a;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #d6e2f0;
}
.post-card-meta .author-link { color: #0066cc; }
.post-card-meta .pill { margin-left: 0.25rem; }

.breadcrumb-canvas {
    font-size: 0.85rem;
    color: #5a6a7a;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}
.breadcrumb-canvas a { color: #0066cc; text-decoration: none; }
.breadcrumb-canvas a:hover { text-decoration: underline; }

/* Featured image inside post card */
.post-card-featured {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 0 2rem 0;
    display: block;
}

/* Post listing inside cards (Category / Author pages) */
.page-card .post-list {
    padding: 0;
    margin: 0;
}
.page-card .post-list li {
    border-color: #d6e2f0;
}
.page-card .post-list li:first-child {
    border-top: none;
    padding-top: 0;
}

/* Services cards on canvas */
.services-trio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}
.service-trio-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 102, 204, 0.06);
    display: flex;
    flex-direction: column;
}
.service-trio-card h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #0a3a6b;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}
.service-trio-card p {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2a2a2a;
    margin: 0 0 1.5rem 0;
    flex: 1;
}
.service-trio-card .btn-outline {
    align-self: flex-start;
}

/* Thank-you page tick + accent box */
.ty-tick {
    font-size: 3.5rem;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.ty-blog-link {
    border: 1px solid #d6e2f0;
    border-left: 4px solid #0066cc;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background: #f7faff;
    margin: 1.75rem 0;
}
.ty-blog-link h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.05rem;
    color: #0a3a6b;
    margin: 0 0 0.5rem;
}
.ty-blog-link p {
    color: #5a6a7a;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
