/**
 * Eco Plastic Theme — Blog Archive & Single Post Styles
 * Premium, responsive, fully themed to match ECO Plastic design system.
 */

/* ═══════════════════════════════════════════════════════════════
   BLOG HERO BANNER
═══════════════════════════════════════════════════════════════ */

.eco-blog-hero {
    position: relative;
    background: linear-gradient(145deg, #002b14 0%, #004321 40%, #1a5c2e 80%, #337f3f 100%);
    padding: 80px 0 90px;
    overflow: hidden;
    text-align: center;
}

.eco-blog-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(51, 127, 63, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 43, 20, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.eco-blog-hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.eco-blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.eco-blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.eco-blog-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.eco-blog-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 auto 36px;
    max-width: 560px;
}

/* Search */
.eco-blog-search-form {
    max-width: 560px;
    margin: 0 auto;
}

.eco-blog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 100px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.eco-blog-search-wrap:focus-within {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(51, 127, 63, 0.4);
}

.eco-blog-search-icon {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: var(--eco-charcoal-muted, #546e7a);
    pointer-events: none;
    flex-shrink: 0;
}

.eco-blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    color: var(--eco-charcoal, #263238);
    font-family: var(--eco-font-sans);
    min-width: 0;
}

.eco-blog-search-input::placeholder {
    color: var(--eco-gray-mid, #90a4ae);
}

.eco-blog-search-btn {
    flex-shrink: 0;
    background: var(--eco-green, #004321);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    margin: 4px;
    transition: background 0.25s ease, transform 0.2s ease;
    font-family: var(--eco-font-sans);
    white-space: nowrap;
}

.eco-blog-search-btn:hover {
    background: var(--eco-green-mid, #1a5c2e);
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY FILTER BAR
═══════════════════════════════════════════════════════════════ */

.eco-blog-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--eco-border, #cfd8dc);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(38, 50, 56, 0.06);
}

.eco-blog-filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

.eco-blog-filter-scroll::-webkit-scrollbar { display: none; }

.eco-blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--eco-charcoal-muted, #546e7a);
    background: var(--eco-light-gray, #eceff1);
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.eco-blog-filter-pill:hover {
    background: var(--eco-green-subtle, rgba(0,67,33,0.07));
    color: var(--eco-green, #004321);
    border-color: rgba(0, 67, 33, 0.15);
}

.eco-blog-filter-pill.active {
    background: var(--eco-green, #004321);
    color: #ffffff;
    border-color: var(--eco-green, #004321);
}

.eco-blog-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    background: rgba(0, 0, 0, 0.1);
}

.eco-blog-filter-pill.active .eco-blog-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN SECTION WRAPPER
═══════════════════════════════════════════════════════════════ */

.eco-blog-main-section {
    padding: 52px 0 80px;
    background: var(--eco-bg-page, #f5f7f8);
    min-height: 60vh;
}

/* Results info bar */
.eco-blog-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.eco-blog-results-count {
    font-size: 14px;
    color: var(--eco-charcoal-muted, #546e7a);
    font-weight: 500;
    margin: 0;
}

.eco-blog-results-filter { margin-left: 4px; }
.eco-blog-results-filter strong { color: var(--eco-green, #004321); }

.eco-blog-clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--eco-charcoal-muted, #546e7a);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--eco-border, #cfd8dc);
    border-radius: 100px;
    transition: all 0.22s ease;
}

.eco-blog-clear-filter svg { width: 14px; height: 14px; }
.eco-blog-clear-filter:hover { border-color: #e53935; color: #e53935; background: rgba(229, 57, 53, 0.05); }

/* ═══════════════════════════════════════════════════════════════
   BLOG POST GRID
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS (Rank Math & Fallback)
═══════════════════════════════════════════════════════════════ */

.eco-blog-breadcrumbs-wrap {
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--eco-charcoal-muted, #546e7a);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.eco-blog-breadcrumbs-wrap a {
    color: var(--eco-charcoal-muted, #546e7a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.eco-blog-breadcrumbs-wrap a:hover {
    color: var(--eco-green, #004321);
}

.eco-blog-breadcrumbs-wrap .separator {
    margin: 0 4px;
    opacity: 0.5;
}

.eco-blog-breadcrumbs-wrap .last {
    font-weight: 600;
    color: var(--eco-charcoal, #263238);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG POST GRID
═══════════════════════════════════════════════════════════════ */

.eco-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Single Card ── */
.eco-blog-card {
    background: #ffffff;
    border-radius: var(--eco-radius-lg, 16px);
    overflow: hidden;
    border: 1px solid rgba(0, 67, 33, 0.1);
    box-shadow: 0 4px 20px rgba(0, 43, 20, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.25s ease;
    animation: ecoCardFadeUp 0.5s ease both;
    animation-delay: var(--card-delay, 0ms);
}

@keyframes ecoCardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.eco-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 43, 20, 0.1);
    border-color: rgba(0, 67, 33, 0.25);
}

/* ── Featured card (first on page 1) — spans full grid width ── */
.eco-blog-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 360px;
    align-items: stretch;
}

.eco-blog-card--featured .eco-blog-card-img-wrap {
    flex: 0 0 48%;
    aspect-ratio: unset;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.eco-blog-card--featured .eco-blog-card-img-link {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.eco-blog-card--featured .eco-blog-card-body {
    flex: 1;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eco-blog-card--featured .eco-blog-card-title {
    font-size: 1.55rem;
    line-height: 1.3;
}

.eco-blog-card--featured .eco-blog-card-excerpt {
    display: block;
    -webkit-line-clamp: 4;
    font-size: 15px;
    line-height: 1.65;
}

/* ── Thumbnail Container ── */
.eco-blog-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--eco-light-gray, #eceff1);
}

.eco-blog-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.eco-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Branded Fallback Placeholder */
.eco-blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #eef6f0 0%, #dbeee0 100%);
    color: var(--eco-green, #004321);
}

.eco-blog-placeholder-svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
    transition: transform 0.35s ease;
}

.eco-blog-card:hover .eco-blog-placeholder-svg {
    transform: scale(1.08);
}

.eco-blog-placeholder-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eco-green, #004321);
    opacity: 0.7;
}

/* Category badge on image */
.eco-blog-card-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--eco-green, #004321);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.eco-blog-card-cat-badge:hover {
    background: var(--eco-green-light, #337f3f);
    transform: translateY(-1px);
}

/* Body */
.eco-blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

/* Meta */
.eco-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eco-blog-meta-date,
.eco-blog-meta-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--eco-charcoal-muted, #546e7a);
}

.eco-blog-meta-date svg,
.eco-blog-meta-read svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Title */
.eco-blog-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--eco-charcoal, #263238);
    line-height: 1.35;
    margin: 0;
}

.eco-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.22s ease;
}

.eco-blog-card-title a:hover { color: var(--eco-green, #004321); }

/* Excerpt */
.eco-blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--eco-text-secondary, #546e7a);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eco-blog-card-excerpt p { margin: 0; }

/* Footer */
.eco-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 67, 33, 0.08);
}

.eco-blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.eco-blog-author-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    border: 2px solid var(--eco-border, #cfd8dc);
    object-fit: cover;
    flex-shrink: 0;
}

.eco-blog-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--eco-charcoal, #263238);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.eco-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--eco-green, #004321);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(0, 67, 33, 0.05);
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.eco-blog-read-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.22s ease;
}

.eco-blog-read-more:hover {
    background: var(--eco-green, #004321);
    color: #ffffff;
    gap: 8px;
}

.eco-blog-read-more:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */

.eco-blog-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.eco-blog-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.eco-blog-pagination .page-numbers li { list-style: none; }

.eco-blog-pagination .page-numbers a,
.eco-blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    border: 1.5px solid var(--eco-border, #cfd8dc);
    color: var(--eco-charcoal, #263238);
    background: #ffffff;
}

.eco-blog-pagination .page-numbers a:hover {
    background: var(--eco-green-subtle, rgba(0,67,33,0.07));
    border-color: var(--eco-green, #004321);
    color: var(--eco-green, #004321);
}

.eco-blog-pagination .page-numbers .current {
    background: var(--eco-green, #004321);
    border-color: var(--eco-green, #004321);
    color: #ffffff;
}

.eco-blog-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   NO POSTS (EMPTY STATE)
═══════════════════════════════════════════════════════════════ */

.eco-blog-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 480px;
    margin: 0 auto;
}

.eco-blog-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--eco-green-light, #337f3f);
}

.eco-blog-empty-icon svg {
    width: 100%;
    height: 100%;
}

.eco-blog-empty h2 {
    font-size: 1.4rem;
    color: var(--eco-charcoal, #263238);
    margin-bottom: 12px;
}

.eco-blog-empty p {
    font-size: 15px;
    color: var(--eco-text-secondary, #546e7a);
    margin-bottom: 28px;
}

.eco-blog-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--eco-green, #004321);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 100px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.eco-blog-back-home svg { width: 18px; height: 18px; }
.eco-blog-back-home:hover { background: var(--eco-green-mid, #1a5c2e); color: #ffffff; transform: translateY(-2px); }


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — HERO
═══════════════════════════════════════════════════════════════ */

.eco-single-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 56px;
    overflow: hidden;
}

.eco-single-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.eco-single-hero-bg--plain {
    background: linear-gradient(145deg, #002b14 0%, #004321 100%);
}

.eco-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 26, 12, 0.94) 0%, rgba(0, 48, 22, 0.88) 50%, rgba(0, 18, 9, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eco-single-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    text-align: left;
}

/* Breadcrumb (Rank Math & Fallback) */
.eco-single-rankmath-breadcrumbs {
    margin-bottom: 16px;
}

.eco-single-rankmath-breadcrumbs p,
.eco-single-rankmath-breadcrumbs span,
.eco-single-rankmath-breadcrumbs a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.eco-single-rankmath-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.eco-single-rankmath-breadcrumbs .separator {
    margin: 0 6px;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.5);
}

.eco-single-rankmath-breadcrumbs .last {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.eco-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.eco-single-breadcrumb a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.22s ease;
}

.eco-single-breadcrumb a:hover { color: #ffffff; }

.eco-single-breadcrumb svg {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Category badges */
.eco-single-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.eco-single-cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--eco-green-light, #337f3f);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.22s ease;
}

.eco-single-cat-badge:hover { background: #ffffff; color: var(--eco-green, #004321); }

/* Title */
.eco-single-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

/* Hero meta */
.eco-single-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.eco-single-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eco-single-author-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

.eco-single-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eco-single-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.eco-single-author-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.eco-single-meta-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eco-single-meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.eco-single-meta-stats span svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — BODY LAYOUT
═══════════════════════════════════════════════════════════════ */

.eco-single-body {
    padding: 52px 0 80px;
}

.eco-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

/* Content Column */
.eco-single-content-col { min-width: 0; }

.eco-single-article { background: #fff; border-radius: var(--eco-radius-lg, 16px); overflow: hidden; border: 1px solid var(--eco-border, #cfd8dc); box-shadow: var(--eco-shadow-sm); }

.eco-single-content {
    padding: 40px 44px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--eco-charcoal, #263238);
}

.eco-article-heading,
.eco-single-content h2,
.eco-single-content h3,
.eco-single-content h4 {
    color: var(--eco-green, #004321);
    margin-top: 36px;
    margin-bottom: 14px;
    scroll-margin-top: 100px;
}

.eco-single-content h2 { font-size: 1.5rem; }
.eco-single-content h3 { font-size: 1.25rem; }
.eco-single-content h4 { font-size: 1.1rem; }

/* In-Content Table of Contents Card */
.eco-content-toc-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid rgba(0, 67, 33, 0.15);
    border-left: 4px solid var(--eco-green, #004321);
    border-radius: var(--eco-radius-md, 10px);
    padding: 20px 24px;
    margin: 10px 0 32px;
    box-shadow: 0 4px 16px rgba(0, 43, 20, 0.04);
}

.eco-content-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eco-content-toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--eco-green, #004321);
    font-size: 15px;
}

.eco-content-toc-title-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--eco-green, #004321);
    flex-shrink: 0;
}

.eco-content-toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--eco-border, #cfd8dc);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--eco-charcoal-muted, #546e7a);
    cursor: pointer;
    transition: all 0.2s ease;
}

.eco-content-toc-toggle:hover {
    background: var(--eco-green-subtle, rgba(0,67,33,0.06));
    border-color: var(--eco-green, #004321);
    color: var(--eco-green, #004321);
}

.eco-content-toc-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.eco-content-toc-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.eco-content-toc-body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 67, 33, 0.12);
    transition: all 0.3s ease;
}

.eco-content-toc-body.eco-toc-collapsed {
    display: none;
}

.eco-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eco-toc-li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--eco-charcoal, #263238);
}

.eco-toc-li.eco-toc-lvl-3 {
    margin-left: 18px;
    list-style: circle;
    font-size: 13.5px;
}

.eco-toc-li a {
    color: var(--eco-charcoal, #263238);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.eco-toc-li a:hover {
    color: var(--eco-green, #004321);
    text-decoration: underline;
}

/* On desktop (> 1024px), the sticky sidebar TOC is active, so hide in-content card to prevent duplication */
@media (min-width: 1025px) {
    .eco-content-toc-card {
        display: none !important;
    }
}

/* Rank Math Native TOC Block Styling */
.wp-block-rank-math-toc-block {
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid rgba(0, 67, 33, 0.15);
    border-left: 4px solid var(--eco-green, #004321);
    border-radius: var(--eco-radius-md, 10px);
    padding: 20px 24px;
    margin: 24px 0 32px;
    box-shadow: 0 4px 16px rgba(0, 43, 20, 0.04);
}

.wp-block-rank-math-toc-block h2,
.wp-block-rank-math-toc-block h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--eco-green, #004321) !important;
    margin: 0 0 12px !important;
}

.wp-block-rank-math-toc-block nav ul {
    margin: 0;
    padding-left: 20px;
}

.wp-block-rank-math-toc-block nav li {
    margin-bottom: 6px;
    font-size: 14px;
}

.wp-block-rank-math-toc-block nav a {
    color: var(--eco-charcoal, #263238);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-block-rank-math-toc-block nav a:hover {
    color: var(--eco-green, #004321);
    text-decoration: underline;
}

.eco-single-content p { margin-bottom: 20px; color: var(--eco-text-secondary, #546e7a); }
.eco-single-content p:last-child { margin-bottom: 0; }

.eco-single-content ul,
.eco-single-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
    color: var(--eco-text-secondary, #546e7a);
}

.eco-single-content li { margin-bottom: 8px; }

.eco-single-content img {
    border-radius: var(--eco-radius-md, 10px);
    width: 100%;
    height: auto;
    margin: 24px 0;
}

.eco-single-content blockquote {
    border-left: 4px solid var(--eco-green, #004321);
    margin: 28px 0;
    padding: 16px 24px;
    background: var(--eco-green-subtle, rgba(0,67,33,0.05));
    border-radius: 0 var(--eco-radius-md, 10px) var(--eco-radius-md, 10px) 0;
    font-style: italic;
    color: var(--eco-charcoal, #263238);
}

.eco-single-content a {
    color: var(--eco-green, #004321);
    text-decoration: underline;
}

/* Specification Tables & Rich Tables */
.entry-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    border-radius: var(--eco-radius-md, 10px);
    overflow: hidden;
    border: 1px solid var(--eco-border, #cfd8dc);
    font-size: 14.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.entry-content th {
    background: var(--eco-green, #004321);
    color: #ffffff;
    font-weight: 700;
    padding: 13px 18px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--eco-green-mid, #1a5c2e);
}

.entry-content td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--eco-border, #cfd8dc);
    border-right: 1px solid rgba(207, 216, 220, 0.5);
    color: var(--eco-charcoal, #263238);
    vertical-align: middle;
}

.entry-content td:last-child {
    border-right: none;
}

.entry-content tr:nth-child(even) td {
    background: rgba(0, 67, 33, 0.02);
}

.entry-content tr:hover td {
    background: rgba(0, 67, 33, 0.05);
}

.entry-content .wp-block-table {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--eco-radius-md, 10px);
}

/* Tags */
.eco-single-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 44px;
    border-top: 1px solid var(--eco-border, #cfd8dc);
}

.eco-single-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--eco-charcoal-muted, #546e7a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.eco-single-tags-label svg { width: 14px; height: 14px; }

.eco-single-tag {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--eco-light-gray, #eceff1);
    border: 1px solid var(--eco-border, #cfd8dc);
    color: var(--eco-charcoal-muted, #546e7a);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.22s ease;
}

.eco-single-tag:hover {
    background: var(--eco-green-subtle, rgba(0,67,33,0.07));
    border-color: var(--eco-green, #004321);
    color: var(--eco-green, #004321);
}

/* Share */
.eco-single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 44px;
    border-top: 1px solid var(--eco-border, #cfd8dc);
    background: var(--eco-bg-page, #f5f7f8);
}

.eco-single-share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--eco-charcoal-muted, #546e7a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.eco-single-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--eco-font-sans);
    transition: all 0.22s ease;
}

.eco-single-share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.eco-share-fb { background: #1877f2; color: #ffffff; }
.eco-share-fb:hover { background: #0e5fb5; color: #ffffff; }

.eco-share-wa { background: #25d366; color: #ffffff; }
.eco-share-wa:hover { background: #1ead52; color: #ffffff; }

.eco-share-copy { background: var(--eco-light-gray, #eceff1); color: var(--eco-charcoal, #263238); border: 1px solid var(--eco-border, #cfd8dc); }
.eco-share-copy:hover { background: var(--eco-green-subtle, rgba(0,67,33,0.07)); border-color: var(--eco-green, #004321); color: var(--eco-green, #004321); }

/* Author Box */
.eco-single-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    margin-top: 24px;
    background: #ffffff;
    border-radius: var(--eco-radius-lg, 16px);
    border: 1px solid var(--eco-border, #cfd8dc);
    box-shadow: var(--eco-shadow-sm);
}

.eco-author-box-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 3px solid var(--eco-green-subtle, rgba(0,67,33,0.1)) !important;
    flex-shrink: 0;
    object-fit: cover;
}

.eco-author-box-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--eco-green, #004321);
    margin: 0 0 6px;
}

.eco-author-box-bio {
    font-size: 14px;
    line-height: 1.65;
    color: var(--eco-text-secondary, #546e7a);
    margin: 0;
}

/* Post Navigation */
.eco-single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.eco-post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--eco-radius-md, 10px);
    border: 1px solid var(--eco-border, #cfd8dc);
    text-decoration: none;
    transition: all 0.25s ease;
}

.eco-post-nav-item:hover {
    border-color: var(--eco-green, #004321);
    box-shadow: var(--eco-shadow-md);
    transform: translateY(-2px);
}

.eco-post-nav-next { text-align: right; }

.eco-post-nav-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eco-charcoal-muted, #546e7a);
}

.eco-post-nav-next .eco-post-nav-label { justify-content: flex-end; }
.eco-post-nav-label svg { width: 14px; height: 14px; flex-shrink: 0; }

.eco-post-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--eco-charcoal, #263238);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Page Links (paginated posts) ── */
.eco-single-page-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.eco-page-links-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--eco-charcoal-muted, #546e7a);
    margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */

.eco-single-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eco-sidebar-widget {
    background: #ffffff;
    border-radius: var(--eco-radius-md, 10px);
    border: 1px solid var(--eco-border, #cfd8dc);
    box-shadow: var(--eco-shadow-sm);
    padding: 20px;
}

.eco-sidebar-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--eco-charcoal-muted, #546e7a);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--eco-border, #cfd8dc);
}

.eco-sidebar-widget-title svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Sidebar Table of Contents */
.eco-sidebar-toc {
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.eco-sidebar-toc-nav {
    overflow-y: auto;
    padding-right: 4px;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 67, 33, 0.2) transparent;
}

.eco-sidebar-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.eco-sidebar-toc-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 67, 33, 0.2);
    border-radius: 4px;
}

.eco-sidebar-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eco-sidebar-toc-item {
    margin: 0;
}

.eco-sidebar-toc-lvl-3 {
    padding-left: 14px;
}

.eco-sidebar-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.4;
    color: var(--eco-charcoal-muted, #546e7a);
}

.eco-sidebar-toc-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--eco-border, #cfd8dc);
    margin-top: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.eco-sidebar-toc-text {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eco-sidebar-toc-link:hover {
    background: var(--eco-green-subtle, rgba(0,67,33,0.06));
    color: var(--eco-green, #004321);
}

.eco-sidebar-toc-link:hover .eco-sidebar-toc-bullet {
    background: var(--eco-green, #004321);
    transform: scale(1.3);
}

.eco-sidebar-toc-link.active {
    background: rgba(0, 67, 33, 0.08);
    color: var(--eco-green, #004321);
    font-weight: 700;
}

.eco-sidebar-toc-link.active .eco-sidebar-toc-bullet {
    background: var(--eco-green, #004321);
    box-shadow: 0 0 0 3px rgba(0, 67, 33, 0.2);
    transform: scale(1.3);
}

/* Related Posts */
.eco-related-posts { display: flex; flex-direction: column; gap: 12px; }

.eco-related-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    border-radius: var(--eco-radius-sm, 6px);
    transition: background 0.22s ease;
    padding: 4px;
    margin: -4px;
}

.eco-related-post-item:hover { background: var(--eco-green-subtle, rgba(0,67,33,0.05)); }

.eco-related-thumb {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.eco-related-thumb--placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-light-gray, #eceff1);
    border-radius: 8px;
    flex-shrink: 0;
}

.eco-related-thumb--placeholder svg { width: 22px; height: 22px; color: var(--eco-gray-mid, #90a4ae); }

.eco-related-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.eco-related-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--eco-charcoal, #263238);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eco-related-date { font-size: 11px; color: var(--eco-gray-mid, #90a4ae); }

/* Categories */
.eco-sidebar-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.eco-sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--eco-border, #cfd8dc);
    text-decoration: none;
    transition: color 0.22s ease;
}

.eco-sidebar-cat-list li:last-child .eco-sidebar-cat-link { border-bottom: none; }

.eco-sidebar-cat-name { font-size: 14px; font-weight: 500; color: var(--eco-charcoal, #263238); transition: color 0.22s ease; }
.eco-sidebar-cat-link:hover .eco-sidebar-cat-name { color: var(--eco-green, #004321); }

.eco-sidebar-cat-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--eco-light-gray, #eceff1);
    color: var(--eco-charcoal-muted, #546e7a);
    padding: 2px 8px;
    border-radius: 100px;
}

/* Back button */
.eco-sidebar-back { padding: 0; background: transparent; border: none; box-shadow: none; }

.eco-sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px;
    border-radius: var(--eco-radius-md, 10px);
    border: 1.5px solid var(--eco-border, #cfd8dc);
    background: #ffffff;
    color: var(--eco-charcoal, #263238);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.eco-sidebar-back-btn svg { width: 16px; height: 16px; }
.eco-sidebar-back-btn:hover {
    background: var(--eco-green, #004321);
    border-color: var(--eco-green, #004321);
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST — COMMENTS & DISCUSSION
═══════════════════════════════════════════════════════════════ */

.eco-single-comments-section {
    margin-top: 28px;
}

/* Card container for both #comments and standalone .comment-respond */
#comments,
.eco-single-comments,
.comment-respond {
    background: #ffffff;
    border-radius: var(--eco-radius-lg, 16px);
    border: 1px solid var(--eco-border, #cfd8dc);
    box-shadow: var(--eco-shadow-sm);
    padding: 36px 40px;
    margin-top: 0;
}

/* When .comment-respond is inside #comments, avoid duplicate card background/border */
#comments .comment-respond {
    margin-top: 32px;
    padding: 32px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--eco-border, #cfd8dc);
    border-radius: 0;
    box-shadow: none;
}

.comments-title,
#reply-title,
.comment-reply-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--eco-green, #004321);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.01em;
}

#reply-title small a,
.comment-reply-title small a {
    font-size: 12px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    margin-left: 10px;
}

#reply-title small a:hover,
.comment-reply-title small a:hover {
    text-decoration: underline;
}

.logged-in-as,
.comment-notes,
.must-log-in {
    font-size: 13.5px;
    color: var(--eco-charcoal-muted, #546e7a);
    margin: 0 0 22px;
    line-height: 1.5;
}

.logged-in-as a,
.must-log-in a {
    color: var(--eco-green, #004321);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.logged-in-as a:hover,
.must-log-in a:hover {
    color: var(--eco-green-light, #337f3f);
}

.required-field-message {
    margin-left: 4px;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#commentform p {
    margin: 0 0 18px;
}

#commentform p.form-submit {
    margin: 6px 0 0;
}

#commentform label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--eco-charcoal, #263238);
    margin-bottom: 8px;
}

#commentform label .required {
    color: #e53935;
    font-weight: 700;
    margin-left: 2px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 13px 18px;
    font-size: 14.5px;
    line-height: 1.6;
    font-family: inherit;
    border: 1.5px solid var(--eco-border, #cfd8dc);
    border-radius: var(--eco-radius-md, 10px);
    background: #ffffff;
    color: var(--eco-charcoal, #263238);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    display: block;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--eco-green, #004321);
    box-shadow: 0 0 0 3px rgba(0, 67, 33, 0.12);
}

#commentform textarea {
    resize: vertical;
    min-height: 140px;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--eco-green, #004321);
    width: 16px;
    height: 16px;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--eco-charcoal-muted, #546e7a);
    font-weight: 400 !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

#commentform #submit,
.form-submit #submit {
    background: var(--eco-green, #004321);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 67, 33, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#commentform #submit:hover,
.form-submit #submit:hover {
    background: var(--eco-green-mid, #1a5c2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 67, 33, 0.3);
}

/* Comments List */
.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-list .comment {
    list-style: none;
}

.comment-body {
    padding: 20px;
    background: var(--eco-bg-page, #f5f7f8);
    border-radius: var(--eco-radius-md, 10px);
    border: 1px solid var(--eco-border, #cfd8dc);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.comment-author .fn {
    font-size: 14px;
    font-weight: 700;
    color: var(--eco-charcoal, #263238);
    font-style: normal;
}

.comment-metadata a {
    font-size: 12px;
    color: var(--eco-charcoal-muted, #546e7a);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--eco-green, #004321);
}

.comment-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--eco-charcoal, #263238);
    margin-bottom: 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--eco-green, #004321);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 67, 33, 0.06);
    transition: all 0.2s ease;
}

.reply a:hover {
    background: var(--eco-green, #004321);
    color: #ffffff;
}

.comment-list .children {
    list-style: none;
    padding-left: 28px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 2px solid rgba(0, 67, 33, 0.1);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .eco-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .eco-blog-card--featured { grid-column: 1 / -1; flex-direction: column; min-height: unset; }
    .eco-blog-card--featured .eco-blog-card-img-wrap { flex: none; width: 100%; aspect-ratio: 16 / 9; min-height: unset; }
    .eco-blog-card--featured .eco-blog-card-body { padding: 24px 22px; }
    .eco-blog-card--featured .eco-blog-card-title { font-size: 1.3rem; }

    .eco-single-body { padding: 40px 0 70px; }
    .eco-single-body .container,
    .eco-single-body.container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .eco-single-layout { grid-template-columns: 1fr; }
    .eco-single-sidebar { position: static; }
    .eco-sidebar-toc { display: none !important; } /* On tablet/mobile, use in-content TOC card */
}

@media (max-width: 768px) {
    .eco-blog-hero { padding: 60px 0 70px; }
    .eco-blog-hero-title { font-size: 1.75rem; }

    .eco-blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .eco-blog-card--featured { flex-direction: column; }
    .eco-blog-card-footer { gap: 10px; }

    .eco-single-hero { min-height: 360px; padding-bottom: 40px; }
    .eco-single-title { font-size: 1.5rem; }

    .eco-single-body { padding: 28px 0 56px; }
    .eco-single-body .container,
    .eco-single-body.container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .eco-single-article,
    .eco-single-author-box,
    .eco-single-comments-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .eco-single-content { padding: 24px 20px; }
    .eco-single-tags { padding: 16px 20px; }
    .eco-single-share { padding: 16px 20px; flex-wrap: wrap; gap: 8px; }

    .eco-content-toc-card { padding: 16px; margin: 8px 0 24px; }
    .eco-content-toc-title { font-size: 14px; }

    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .eco-single-comments-section { margin-top: 24px; }
    #comments,
    .eco-single-comments,
    .comment-respond {
        padding: 24px 20px;
        border-radius: var(--eco-radius-lg, 16px);
        box-sizing: border-box;
    }
    .comment-list .children { padding-left: 14px; }

    .eco-single-author-box {
        margin-top: 20px;
        padding: 24px 20px;
        border-radius: var(--eco-radius-lg, 16px);
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
    }
    .eco-single-post-nav { grid-template-columns: 1fr; }
    .eco-post-nav-next { text-align: left; }
    .eco-post-nav-next .eco-post-nav-label { justify-content: flex-start; }

    .eco-single-hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
    .eco-single-body { padding: 20px 0 48px; }
    .eco-single-body .container,
    .eco-single-body.container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .eco-single-author-box {
        padding: 20px 16px;
        border-radius: var(--eco-radius-md, 12px);
    }

    .eco-single-comments-section {
        margin-top: 20px;
    }

    #comments,
    .eco-single-comments,
    .comment-respond {
        padding: 20px 16px;
        border-radius: var(--eco-radius-md, 12px);
    }

    .eco-blog-search-btn { padding: 10px 16px; font-size: 13px; }
    .eco-blog-hero { padding: 48px 0 56px; }
    .eco-blog-results-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .eco-blog-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .eco-blog-read-more { width: 100%; justify-content: center; }

    #commentform #submit { width: 100%; }
}
