:root {
    /* Base Palette */
    --white: #F5F2EB;
    /* Warm White background */
    --sage: #7A8B7B;
    /* Sage - primary brand / soft elements */
    --sage-soft: #E2E8E2;
    /* Light Sage - subtle card tints & badges */

    /* Accent & Typography Colors */
    --accent: #2B322C;
    /* Deep Forest Accent - buttons, focal points */
    --accent-hover: #1A201B;
    /* Slightly darker accent for hover states */
    --ink: #2B322C;
    /* Main headings and heavy body text */
    --muted: #536254;
    /* Muted body copy & subtext */
    --dark-highlight: #dab692;
    /* for dark mode hi */

    /* Typography */
    --display: 'CirculaXXWeb-Bold', 'Fraunces', serif;
    --body: 'Nunito', sans-serif;
    --hand: 'Caveat', cursive;
}



* {
    box-sizing: border-box;
}

html {
    /* Prevents layout jumps when address bar hides/shows */
    height: -webkit-fill-available; 
}

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    margin: 0;
    line-height: 1.12;
    /* color: var(--ink); */
}

p {
    margin: 0;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.hand {
    font-family: var(--hand);
    color: var(--muted);
}

/* ---------- Nav ---------- */
header.site {
    overflow: visible;
    /* Keeps popup clean */
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--white);

    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;

    /* will-change: transform;
    transform: translateZ(0); */
}

/* Scrolled state: applied dynamically via Lenis listener */
header.site.scrolled {
    background: #fff;
    border-bottom: 1px solid var(--sage);

}

header.site .links.open {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

header.site.scrolled .links.open {
    background: #fff;

}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    max-width: 1120px;
    margin: 0 auto;
}

/* ---------- Mobile Nav Animation ---------- */
@media (max-width: 820px) {
    nav.links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px 28px;
        gap: 16px;
        border-bottom: 2px solid var(--sage);

        /* Slide setup */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
    }

    nav.links.open {
        max-height: 400px;
        /* Big enough to fit all your links */
        opacity: 1;
    }

    .burger {
        display: block;
    }
}



/* Ensure the lines transform around their center point */
.burger .line {
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Morph to "X" when button has .open class */
.burger.open .line.top {
    transform: translateY(1.5px) translateX(-6px) rotate(45deg);
}

.burger.open .line.middle {
    opacity: 0;
}

.burger.open .line.bottom {
    transform: translateY(-7px) translateX(-6px) rotate(-45deg);
}

.burger {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    padding: 10px;
    cursor: pointer;
}

/* Desktop layout overrides */
@media (min-width: 821px) {
    .links {
        position: static;
        flex-direction: row;
        padding: 0;
        border-bottom: none;
        background: transparent;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .burger {
        display: none;
    }
}

@media (max-width: 820px) {
    .burger {
        display: block;
    }
}

.brand {
    display: flex;
    /* align-items: center; */
    /* gap: 10px; */
    text-decoration: none;
    flex-direction: row;
    /* align-items: flex-start; */
    font-size: 30px;
}

.brand span:first-child {
    font-weight: 800;
    align-items: flex-start;
}

.brand span:last-child {
    align-self: flex-end;
    /* Right aligns "Lisbon" */
    font-size: 30px;
    line-height: 32px;
}

nav.links {
    display: flex;
    gap: 20px;
}

nav.links a {
    /* color: var(--muted); */
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    /* border-radius: 100px; */
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-hover);
}



section {
    padding: 78px 0;
    position: relative;
}

.bg-tint {
    background: var(--sage-soft);
}



.kicker {
    /* display: inline-block; */
    display: none;
    font-family: var(--body);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    max-width: 19ch;
}

.lede {
    font-size: 17px;
    color: var(--muted);
    max-width: 58ch;
    margin-top: 16px;
    padding: 10px 0;
}

.squiggle {
    position: relative;
    white-space: nowrap;
}

.squiggle svg {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
}

.wave {
    display: none;
    width: 100%;
    height: 44px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 40px 0 40px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

@media (max-width:900px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-soft);
    color: var(--accent-hover);
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 8px 14px;
    /* border-radius: 100px; */
    margin-top: 22px;
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 46px);
    max-width: 20ch;
}

.hero .sub {
    margin-top: 20px;
    font-size: 17.5px;
    color: var(--muted);
    max-width: 44ch;
}

.hero .slogan{
    color: var(--sage);
}

.signature {
    margin-top: 20px;
    font-family: var(--hand);
    font-size: 22px;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    /* border-radius: 100px; */
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease;
    margin: 10px 0;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--sage);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* polaroid collage */
.collage {
    position: relative;
    height: 420px;
}

.polaroid {
    position: absolute;
    background: #fff;
    border: 1px solid var(--sage-soft);
    border-radius: 6px;
    padding: 10px 10px 34px;
    box-shadow: 0 18px 34px -14px rgba(25, 23, 26, 0.28);
    width: 200px;
}

.polaroid:hover {
    z-index: 999;
}

.polaroid .frame {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--sage-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}

.polaroid figcaption {
    font-family: var(--hand);
    font-size: 17px;
    color: var(--muted);
    text-align: center;
    margin-top: 8px;
}

.tape {
    position: absolute;
    width: 56px;
    height: 20px;
    background: rgba(246, 246, 242, 0.92);
    border: 1px solid rgba(56, 128, 135, 0.25);
}

/* Define the drop keyframes */
@keyframes dropAndRotate {
    50% {
        opacity: 0;
        transform: translateY(200px) translateX(200px) rotate(180deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--target-rotation));
    }
}

/* Base styles shared by all three elements */
.p1,
.p2,
.p3 {
    position: absolute;
    /* Ensures top/right properties function correctly */
    animation: dropAndRotate 0.6s cubic-bezier(1, 1, 0.1, 1.2) forwards;
    opacity: 0;
    /* Keeps elements hidden before animation starts */
}

/* Individual positions, rotations, and staggered delays */
.p1 {
    top: 98px;
    right: 47%;
    width: 180px;
    z-index: 1;
    --target-rotation: -22deg;
    animation-delay: 0s;
}

.p2 {
    top: 124px;
    right: 6px;
    width: 180px;
    z-index: 2;
    --target-rotation: 23deg;
    animation-delay: 0.70s;
}

.p3 {
    top: 0;
    right: 22%;
    width: 180px;
    z-index: 3;
    --target-rotation: -3deg;
    animation-delay: 1.3s;
}


@media (max-width:900px) {
    .collage {
        height: 450px;
        left: 40px;
        top: -50px;
        contain: layout;
    }

    .polaroid {
        width: 150px;
    }

    .p2 {
        width: 140px;
    }

    .p3 {
        width: 130px;
    }
}

@media (max-width:520px) {
    .collage {
        height: 300px;
    }
}

/* ---------- Origin ---------- */
.origin-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

@media (max-width:860px) {
    .origin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.origin-grid blockquote {
    font-family: var(--display);
    font-style: italic;
    font-size: 21px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
}

.origin-grid cite {
    font-family: var(--body);
    font-style: normal;
    font-size: 13px;
    color: var(--ink);
    opacity: .65;
    display: block;
    margin-top: 14px;
}

.testimonial {
    background: #fff;
    padding: 22px 24px;
    position: relative;
    margin-top: 26px;
}

.testimonial p {
    /* font-family: Inter; */
    font-size: 20px;
    color: var(--muted);
    line-height: 1.4;
}

.quote-mark {
    font-size: 2.2em;
    line-height: 0;
    vertical-align: -0.25em;
    /* Pulls the large quote down into alignment with the text */
    margin-right: 0.05em;
    color: var(--ink);
    /* Or a accent color */
}

.testimonial-quote {
    position: relative;
    /* Add left padding so the text shifts right, giving the quote room */
    padding-left: 1.25rem;
}

.testimonial-quote::before {
    content: "“";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.5rem;
    top: -0.8rem;
    left: -1.2rem;
    line-height: 1;
    position: absolute;

    /* Pull it up and left so it frames the text instead of intersecting it */
    top: -1.2rem;
    left: -0.75rem;

    /* Drop the opacity so it sits softly in the background */
    opacity: 0.32;

    /* Prevent pointer/selection interference */
    pointer-events: none;
}

.testimonial h3 {
    margin-bottom: 2rem;
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;

}

@media (max-width:900px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    background: #fff;
    border: 1px solid var(--sage-soft);
    /* border-radius: 16px; */
    padding: 0 24px 24px 24px;

}

.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 10%;
    background: var(--sage-soft);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    left: -2px;
    top: -11px;
    margin-bottom: 8px;
    position: relative;
}

.step h3 {
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
}

/* ---------- Pricing ---------- */
/* .price-card {
    background: #fff;
    border: 1px solid var(--sage-soft);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 40px -22px rgba(25, 23, 26, 0.22);
} */

.price-card-wrapper {
    margin-top: 44px;
}


.price-card {
    background: #fff;
    /* border: 5px solid; */
    border-radius: 0px;
    overflow: hidden;
    /* box-shadow: 4px 4px 0px 4px rgb(43 50 44 / 30%); */
}

.price-band {
    color: #fff;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.price-band.main {
    background: var(--accent);
    border-color: var(--accent);
}


.price-band.main h3 {
    color: #fff;
    font-size: 28px;
}

.price-band.other-pricing {
    background-color: var(--white);
}

.price-band.other-pricing h3 {
    color: var(--accent);
    font-size: 24px;
    padding-top: 20px;

}

.price-amount {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
}

.price-amount span {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
}

.price-body {
    padding: 28px 32px;
}

.price-list {
    list-style: none;
    margin: 5px 0 22px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.price-list li {
    display: flex;
    gap: 10px;
    color: var(--muted);
}

.price-list li svg {
    flex: none;
    margin-top: 2px;
    color: var(--accent);
}

.price-list li::before {
    content: "•";
    color: var(--accent);
    flex: none;
}

.addons {
    display: grid;
    gap: 0;
    border-top: 2px dashed var(--sage-soft);
    padding-top: 18px;
}

.addon-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--sage-soft);
}

.addon-row:last-child {
    border-bottom: none;
}

.addon-row .name {
    color: var(--muted);
    font-weight: 800;
}

.addon-row .rate {
    font-weight: 800;
    color: var(--ink);
}

.psst {
    margin-top: 18px;
    font-family: var(--hand);
    font-size: 18px;
    color: var(--muted);
}


/* Container layout */
.pricing-grid {
    display: grid;
    /* Automatically wraps columns when screen width drops below ~300px per card */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* Spacing between cards */
    align-items: stretch;
    /* Makes all cards equal height */
}

/* Ensure each card fills full height of its grid cell */
.pricing-grid [data-reveal] {
    display: flex;
    flex-direction: column;
}

.pricing-grid .price-card {
    flex: 1;
    /* Stretch price-card to fill height */
    display: flex;
    flex-direction: column;
}

.pricing-grid .price-body {
    flex: 1;
    /* Push footer elements down cleanly across uneven card lengths */
}

/* ---------- Areas ---------- */
.areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

@media (max-width:860px) {
    .areas {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 44px;
}

@media (max-width:900px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-card {
    padding: 24px;
    border: 2px solid var(--sage);
    /* border-radius: 16px; */
    /* background: #fff; */
    background: var(--ink);
    color: var(--white);
}

.trust-card svg {
    color: var(--dark-highlight);
    margin-bottom: 14px;
    width: 40px;
    height: 40px;
}

.trust-card h3 {
    /* font-size: 15.5px; */
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);

}




/* ---------- Contact ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: start;
}

@media (max-width:900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--sage-soft);
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--sage-soft);
}

.contact-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink);
    opacity: .65;
}

.direct {
    display: grid;
    gap: 16px;
    padding-top: 10px;
}

.direct a:hover {
    border-color: var(--accent);
    cursor: pointer;
}

.direct svg {
    color: var(--accent);
    flex: none;
}

.direct .lbl {
    font-size: 12px;
    color: var(--ink);
    opacity: .6;
    display: block;
    font-weight: 700;
}

.direct .val {
    font-size: 15px;
    font-weight: 700;
}

#formMsg {
    margin-top: 14px;
    font-size: 18px;
    color: var(--accent-hover);
    font-weight: 700;
    display: none;
    text-align: center;
}

footer {
    background: var(--ink);
    color: var(--white);
    padding: 34px 0;
    font-size: 13px;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

footer .made {
    font-family: var(--hand);
    color: var(--white);
    font-size: 16px;
}

[data-reveal] {
    opacity: 0;
    /* Subtle slide from the left (-30px instead of -500px) */
    transform: translateX(-30px) rotate(-2deg);
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

@media (prefers-reduced-motion:reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}


.shadow {
    box-shadow: 4px 4px 0px 4px rgb(43 50 44 / 16%)
}

/* footer */

.site-footer {
    padding: 3rem 1.5rem;
    background-color: var(--ink);
    /* Matches your dark footer background */
    color: rgba(255, 255, 255, 0.75);
    /* High-contrast off-white base */
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.6;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.company-details span {
    color: rgba(255, 255, 255, 0.85);
    /* Fixes dark text contrast issue */

}

.divider {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.25rem;
}


/* FAQ section */
#useful-info{display:none}
/* Cards Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.faq-card {
    background: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.025);
}

.faq-question h3 {
    margin: 0.6rem 0 1.25rem 0;
    line-height: 1.35;
}

/* Category Tags */
.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.tag-climate {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-alert {
    background: #fef2f2;
    color: #991b1b;
}

.tag-logistics {
    background: #fef3c7;
    color: #92400e;
}

.tag-community {
    background: #f3e8ff;
    color: #6b21a8;
}

.tag-access {
    background: #e0e7ff;
    color: #3730a3;
}

/* Insight vs Solution Split */
.faq-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.975rem;
    line-height: 1.65;
}

.faq-insight p {
    margin: 0;
    color: #4a524d;
}

.faq-solution {
    background: #f2f7f6;
    border-left: 3px solid #388087;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.solution-badge {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: #388087;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.faq-solution p {
    margin: 0;
    color: #233335;
}

/* new contact form */

/* ---------- Contact Overrides ---------- */
/* Direct contact links spacing under intro text */
.contact-card {
    background-color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 0;
    border-color: var(--sage-soft);
    border-width: 0 0 2px 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--body);
    /* font-size: 14.5px; */
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}


/* hide honeypot fields - deter bots */
.hp-field {
    display: none !important;
    position: absolute;
    left: -9999px;
}


/* small text */
.small-text {
    font-size: 14px;
}


/* Privacy policy */
#privacy-content {
    color: var(--ink);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

#privacy-content h1,
#privacy-content h2,
#privacy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#privacy-content p,
#privacy-content ul {
    margin-bottom: 1.25rem;
    color: var(--muted);
}

#privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--sage-soft);
}

#privacy-content th,
#privacy-content td {
    padding: 10px 14px;
    border: 1px solid var(--sage-soft);
    color: var(--muted);
}

#privacy-content th {
    background: var(--sage-soft);
    color: var(--ink);
}

.dark-mode {
    background: var(--ink);
    color: var(--white);
}



/* ==========================================================================
   Blog Layout & Article Styles
   ========================================================================== */

.blog-container,
.post-single {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 80px; /* Top padding keeps content below fixed header */
}

.blog-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color, #111);
}

/* Blog Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  border: 4px solid #fff;
  border-radius: 0 30px 0 0;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-content time {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

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

.blog-card-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
  color: #000;
}

/* Single Post Styles */
.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.post-featured-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  /* border-radius: 12px; */
  /* border: 4px solid #fff; */
}

/* Markdown HTML Content Output */
.post-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #222;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, 
.post-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #000;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.post-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  background: #1e1e1e;
  color: #fff;
  border-radius: 8px;
}

.post-footer {
  /* margin-top: 4rem; */
  padding: 2rem 1rem;
  /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
}

.post-footer a {
  text-decoration: none;
  font-weight: 600;
  color: #000;
}