/* ============================================
   BLOX FRUIT TRADE CALCULATOR
   Clean professional UX — light theme
   ============================================ */

:root {
    /* Palette — fresh ocean blue + accent green, white base */
    --primary: #1e6fd9;
    --primary-dark: #1758b0;
    --primary-light: #e8f1fd;
    --accent: #16a34a;
    --accent-light: #ecfdf5;
    --warn: #f59e0b;
    --warn-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;

    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-card: #ffffff;
    --bg-stripe: #fafbfd;

    --text: #1a2332;
    --text-soft: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --border-soft: #edf0f5;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);

    --radius: 12px;
    --radius-sm: 8px;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-soft);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top utility bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-icon {
    font-size: 28px;
    line-height: 1;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-soft);
}

.brand-text strong {
    color: var(--text);
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.18s;
}

.main-nav a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Hero */
.hero {
    background: #fff;
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto;
}

/* Calculator section */
.calc-section {
    padding: 50px 0;
}

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Trade grid */
.trade-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.trade-column {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.column-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.column-head h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.column-total {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.add-row {
    display: grid;
    grid-template-columns: 1fr 110px auto;
    gap: 8px;
    margin-bottom: 14px;
}

select {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select:hover { border-color: #cbd5e0; }
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }

.trade-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

.empty-state {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 16px 0;
}

.fruit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.fruit-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fruit-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.fruit-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.fruit-item-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-right: 10px;
}

.btn-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: all 0.15s;
}

.btn-remove:hover { background: var(--danger-light); color: var(--danger); }

/* VS column */
.vs-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.vs-col span {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    background: #fff;
    border: 2px solid var(--border);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    letter-spacing: 0.5px;
}

/* Result panel */
.result-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all 0.25s;
}

.result-panel.win {
    background: var(--accent-light);
    border-color: var(--accent);
}

.result-panel.fair {
    background: var(--warn-light);
    border-color: var(--warn);
}

.result-panel.loss {
    background: var(--danger-light);
    border-color: var(--danger);
}

.result-icon {
    font-size: 36px;
    line-height: 1;
}

.result-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.result-text {
    color: var(--text-soft);
    font-size: 14px;
}

.btn-ghost {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

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

/* Section titles */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.section-sub {
    text-align: center;
    color: var(--text-soft);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 36px;
}

/* Info cards */
.info-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 38px;
    margin-bottom: 14px;
    line-height: 1;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

/* How-to */
.howto-section {
    padding: 60px 0;
}

.howto-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
}

.howto-list li {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: 15px;
}

.howto-list li:last-child { border-bottom: none; }
.howto-list li strong { color: var(--text); font-weight: 600; }

.callout {
    max-width: 720px;
    margin: 24px auto 0;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--text);
    font-size: 14.5px;
}

.callout a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.callout a:hover { text-decoration: underline; }

/* Values table */
.values-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.values-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

.values-table th {
    background: var(--bg-stripe);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.values-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14.5px;
    color: var(--text-soft);
}

.values-table tr:last-child td { border-bottom: none; }
.values-table tr:hover td { background: var(--bg-stripe); }

.fruit-name-cell {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fruit-emoji { font-size: 18px; }

.value-cell {
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.demand-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.demand-high { background: var(--accent-light); color: var(--accent); }
.demand-med { background: var(--warn-light); color: var(--warn); }
.demand-low { background: #f1f5f9; color: var(--text-muted); }

/* Blog preview */
.blog-preview-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.blog-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-soft);
    font-size: 14.5px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    padding-top: 6px;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item[open] {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--text);
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "▼";
    color: var(--primary);
    font-size: 11px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item p {
    padding: 0 22px 18px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.7;
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 48px 0 20px;
    margin-top: 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--primary); }

.footer-about {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 360px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 860px) {
    .trade-grid { grid-template-columns: 1fr; }
    .vs-col { padding: 8px 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .calc-card { padding: 24px 20px; }
    .main-nav { gap: 20px; }
}

@media (max-width: 540px) {
    .container { padding: 0 16px; }
    .add-row { grid-template-columns: 1fr 1fr; }
    .add-row .btn-primary { grid-column: 1 / -1; }
    .header-inner { height: 64px; }
    .brand-text { font-size: 15px; }
    .main-nav a { font-size: 14px; }
    .main-nav { gap: 16px; }
    .hero { padding: 40px 0 36px; }
    .calc-section { padding: 32px 0; }
    .info-section, .howto-section, .values-section, .blog-preview-section, .faq-section { padding: 44px 0; }
}

/* ============================================
   BLOG PAGES
   ============================================ */

.blog-page-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.blog-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.blog-page-header p.lead {
    color: var(--text-soft);
    font-size: 16px;
    max-width: 720px;
}

.blog-list-wrap {
    padding: 50px 0;
}

.blog-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.blog-list .blog-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 26px;
}

.blog-list .blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-list-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .blog-list .blog-card { flex-direction: column; gap: 12px; }
}

/* Sidebar layout for blog post */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px;
}

.post-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.post-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.post-main h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.post-meta {
    color: var(--text-muted);
    font-size: 13.5px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.post-main h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 14px;
    letter-spacing: -0.2px;
}

.post-main h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin: 22px 0 10px;
}

.post-main p {
    color: var(--text-soft);
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.post-main p strong { color: var(--text); font-weight: 600; }

.post-main a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(30, 111, 217, 0.3);
    transition: border-color 0.15s;
}

.post-main a:hover { border-color: var(--primary); }

.post-main ul, .post-main ol {
    margin: 0 0 18px 24px;
    color: var(--text-soft);
}

.post-main li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 15.5px;
}

.post-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.post-main th {
    background: var(--bg-stripe);
    color: var(--text);
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}

.post-main td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-soft);
}

.post-main tr:last-child td { border-bottom: none; }

.tip-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 22px 0;
}

.tip-box h4 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tip-box p {
    margin-bottom: 0;
    color: var(--text);
    font-size: 14.5px;
}

.warn-box {
    background: var(--warn-light);
    border-left: 4px solid var(--warn);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 22px 0;
}

.warn-box h4 {
    font-family: var(--font-display);
    color: var(--warn);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.warn-box p { margin-bottom: 0; color: var(--text); font-size: 14.5px; }

.post-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    margin: 30px 0;
}

.post-cta h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.post-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-size: 14.5px;
}

.post-cta a {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: transform 0.15s;
}

.post-cta a:hover { transform: translateY(-1px); }

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-card a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.15s;
}

.sidebar-card a:hover { color: var(--primary); }

.sidebar-cta {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    text-align: center;
}

.sidebar-cta p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 14px;
}

.sidebar-cta .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 10px 18px;
}

@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; padding: 36px 16px; }
    .post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card { flex: 1; min-width: 240px; }
    .post-main { padding: 28px 22px; }
}
