body.blog-page {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5fff5;
    color: #1f2b20;
}

.blog-hero {
    background: radial-gradient(circle at top, #c8f7c5, #2e7d32);
    color: white;
    padding: 3rem clamp(1.5rem, 5vw, 5rem) 4rem;
}

.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.blog-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1.3rem;
}

.blog-nav img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.blog-nav .nav-links a {
    color: rgba(255,255,255,0.85);
    margin-left: 1.5rem;
    text-decoration: none;
    font-weight: 500;
}

.blog-nav .nav-links a.active {
    color: white;
}

.hero-content {
    max-width: 640px;
}

.hero-content h1 {
    font-size: clamp(2.3rem, 6vw, 3.5rem);
    margin: 0.75rem 0 1rem;
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.submission-cta {
    background: white;
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cta-copy {
    flex: 1;
    min-width: 240px;
}

.cta-copy h2 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
}

.blog-user-badge {
    background: #f5fff5;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2b20;
}

.badge-link {
    background: none;
    border: none;
    color: #1f6b24;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: white;
    color: #1f6b24;
    box-shadow: 0 10px 30px rgba(14, 53, 20, 0.25);
}

.btn.ghost {
    border: 1px solid rgba(31, 107, 36, 0.3);
    color: #1f6b24;
}

.btn.ghost:hover {
    background: rgba(31, 107, 36, 0.08);
    border-color: #1f6b24;
}

/* White Ghost (For dark backgrounds) */
.blog-hero .btn.ghost {
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

.blog-hero .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

main {
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3c7a3c;
}

.featured-article {
    background: white;
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.featured-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.5rem 0 0.75rem;
}

.featured-text p {
    color: #4f5b4f;
    line-height: 1.7;
}

.featured-text .meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #7a887a;
    margin: 1.25rem 0;
}

.blog-feed {
    background: white;
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.blog-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feed-actions {
    display: flex;
    gap: 0.75rem;
}

.featured-image {
    background: linear-gradient(135deg, #dff5d4, #2d8a34);
    border-radius: 22px;
    display: grid;
    place-items: center;
    min-height: 260px;
    color: white;
    font-size: 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(15, 48, 20, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-card[data-sample="true"] {
    position: relative;
}

.blog-card[data-sample="true"]::before {
    content: 'Community highlight';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(31, 107, 36, 0.1);
    color: #1f6b24;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.blog-card h3 {
    margin: 0;
    color: #1f2b20;
}

.blog-card p {
    color: #5c6b5d;
    line-height: 1.6;
    flex: 1;
}

.blog-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7c8a7c;
}

.blog-card a {
    color: #1f6b24;
    font-weight: 600;
    text-decoration: none;
}

.loading,
.empty-blog,
.error {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: #f7fff7;
    color: #4f5b4f;
    width: 100%;
}

.empty-blog h3 {
    margin-bottom: 0.5rem;
    color: #1f2b20;
}

.error {
    background: #fdecea;
    color: #c62828;
}

.tips-list {
    background: #102915;
    color: white;
    border-radius: 30px;
    padding: clamp(1.75rem, 4vw, 3rem);
}

.tips-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list h4 {
    margin: 0 0 0.3rem;
    color: white;
}

.tips-list p {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.tips-list a {
    color: #9fe69c;
    text-decoration: none;
    font-weight: 600;
}

.newsletter {
    background: white;
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

.newsletter form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter input {
    flex: 1;
    min-width: 220px;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #d4e1d4;
    font-size: 1rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    width: min(640px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.post-detail {
    width: min(720px, 100%);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4f5b4f;
}

.auth-gate {
    background: #f5fff5;
    border: 1px solid rgba(31, 107, 36, 0.15);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-subtitle {
    color: #4f5b4f;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #d4e1d4;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1f2b20;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-status {
    font-size: 0.92rem;
    color: #1f6b24;
    min-height: 1.4rem;
}

.form-status.error {
    color: #c62828;
}

#postDetailBody h3 {
    margin-top: 0;
    font-size: 2rem;
    color: #1f2b20;
}

#postDetailBody .meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7c8a7c;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

#postDetailBody .content {
    line-height: 1.8;
    color: #4f5b4f;
    white-space: pre-wrap;
}

.blog-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #6a766a;
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .submission-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-actions,
    .feed-actions {
        width: 100%;
        flex-direction: column;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card img {
        height: 180px;
    }
    .newsletter form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .featured-article,
    .submission-cta,
    .blog-feed,
    .tips-list,
    .newsletter {
        padding: 1.25rem;
    }

    .featured-image {
        min-height: 200px;
    }

    .blog-card {
        padding: 1.25rem;
    }

    .blog-card[data-sample="true"]::before {
        position: static;
        margin-bottom: 0.75rem;
        display: inline-block;
    }

    .modal-content {
        width: 100%;
    }

    .hero-meta,
    .feed-actions,
    .form-row {
        flex-direction: column;
    }
}