@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────── */
:root {
    --earth:         #24221f;
    --earth-mid:     #2e2b27;
    --earth-light:   #36322d;
    --earth-surface: #3d3832;
    --gold:          #cba358;
    --gold-light:    #e5cd96;
    --gold-dim:      #9a7b3e;
    --olive:         #5e6b4d;
    --olive-dark:    #3b452f;
    --sienna:        #b86044;
    --sand:          #f0ebe1;
    --sand-dim:      #c4bfb5;
    --white:         #ffffff;

    --font-sans:  'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Space Grotesk', sans-serif;

    --max-width:       1200px;
    --content-width:   740px;
    --radius:          16px;
    --radius-sm:       10px;
    --radius-xs:       6px;

    --glass-bg:      rgba(54, 50, 45, 0.35);
    --glass-border:  rgba(255, 255, 255, 0.07);
    --glass-blur:    12px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--earth);
    color: var(--sand);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--gold);
    color: var(--white);
}

/* ─── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--earth); }
::-webkit-scrollbar-thumb { background: var(--earth-surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--olive-dark); }

/* ─── Glass Panels ─────────────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* ─── Layout ───────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header / Nav ─────────────────────────────────────────────── */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.4s var(--ease-out-expo), background-color 0.3s ease;
}

.blog-header.scrolled {
    background: rgba(36, 34, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.blog-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(203, 163, 88, 0.3);
    object-fit: contain;
}

.logo-group span {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(203, 163, 88, 0.9);
}

.header-search {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--sand);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(240, 235, 225, 0.35);
}

.header-search input:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 2px rgba(203, 163, 88, 0.12);
}

.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(240, 235, 225, 0.35);
    pointer-events: none;
}

/* ─── Hero Banner ──────────────────────────────────────────────── */
.blog-hero {
    padding: 120px 0 48px;
    position: relative;
}

.blog-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 12px;
}

.blog-hero h1 .accent {
    color: var(--gold);
}

.blog-hero .subtitle {
    font-size: 17px;
    color: rgba(240, 235, 225, 0.55);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.65;
}

/* ─── Category Filter Bar ──────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(240, 235, 225, 0.6);
    font-family: var(--font-sans);
}

.filter-chip:hover {
    border-color: rgba(203, 163, 88, 0.3);
    color: var(--gold-light);
    background: rgba(203, 163, 88, 0.06);
}

.filter-chip.active {
    background: var(--gold);
    color: var(--earth);
    border-color: var(--gold);
    font-weight: 600;
}

/* ─── Post Grid ────────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding-bottom: 48px;
}

/* ─── Post Card ────────────────────────────────────────────────── */
.post-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.post-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 58%;
    overflow: hidden;
    background: var(--earth-mid);
}

.post-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-expo);
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.post-card .card-image .category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(36, 34, 31, 0.85);
    backdrop-filter: blur(8px);
    color: var(--gold);
    border: 1px solid rgba(203, 163, 88, 0.2);
}

.post-card .card-body {
    padding: 24px;
}

.post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(240, 235, 225, 0.4);
    font-weight: 400;
}

.post-card .card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(240, 235, 225, 0.2);
}

.post-card .card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--white);
    margin-bottom: 10px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card:hover .card-title {
    color: var(--gold-light);
}

.post-card .card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(240, 235, 225, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-card .author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card .author-row img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card .author-row span {
    font-size: 12px;
    font-weight: 500;
    color: rgba(240, 235, 225, 0.55);
}

.post-card .read-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.post-card:hover .read-more {
    color: var(--gold);
}

/* ─── No Image Placeholder ─────────────────────────────────────── */
.post-card .card-image.no-image {
    background: linear-gradient(135deg, var(--earth-mid) 0%, var(--earth-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .card-image.no-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 2px solid rgba(203, 163, 88, 0.15);
    border-radius: 12px;
}

/* ─── Featured / First Post ────────────────────────────────────── */
.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.post-card.featured .card-image {
    padding-top: 0;
    min-height: 380px;
}

.post-card.featured .card-body {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card.featured .card-title {
    font-size: 28px;
    -webkit-line-clamp: 3;
}

.post-card.featured .card-excerpt {
    -webkit-line-clamp: 4;
}

.post-card.featured .card-footer {
    border-top: none;
    padding: 16px 36px;
}

/* ─── Pagination ───────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0 72px;
}

.pagination button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(240, 235, 225, 0.5);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

.pagination button.active {
    background: var(--gold);
    color: var(--earth);
    border-color: var(--gold);
    font-weight: 700;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 13px;
    color: rgba(240, 235, 225, 0.35);
    margin: 0 12px;
}

/* ─── Single Post View ─────────────────────────────────────────── */
.post-view {
    display: none;
    padding-top: 80px;
}

.post-view.active {
    display: block;
}

.post-hero {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.post-hero img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.post-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--earth) 0%, transparent 60%);
}

.post-header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 40px;
}

.post-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-dim);
    margin-bottom: 28px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.post-header .back-link:hover {
    color: var(--gold);
}

.post-header .post-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-header .post-categories span {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(203, 163, 88, 0.25);
    color: var(--gold);
}

.post-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.post-header .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.post-header .post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-header .post-meta .author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(203, 163, 88, 0.2);
}

.post-header .post-meta .author-info .author-details {
    display: flex;
    flex-direction: column;
}

.post-header .post-meta .author-info .author-details .name {
    font-weight: 600;
    font-size: 14px;
    color: var(--sand);
}

.post-header .post-meta .author-info .author-details .date-reading {
    font-size: 13px;
    color: rgba(240, 235, 225, 0.4);
}

/* ─── Article Content ──────────────────────────────────────────── */
.post-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-bottom: 64px;
}

.post-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 48px 0 16px;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin: 36px 0 12px;
    line-height: 1.35;
}

.post-content h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-light);
    margin: 28px 0 10px;
}

.post-content p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(240, 235, 225, 0.78);
    margin-bottom: 20px;
}

.post-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(203, 163, 88, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.post-content a:hover {
    text-decoration-color: var(--gold);
}

.post-content strong {
    color: var(--sand);
    font-weight: 600;
}

.post-content em {
    font-style: italic;
    color: rgba(240, 235, 225, 0.85);
}

.post-content ul, .post-content ol {
    margin: 16px 0 24px 24px;
}

.post-content li {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(240, 235, 225, 0.75);
    margin-bottom: 6px;
}

.post-content li::marker {
    color: var(--gold-dim);
}

.post-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(203, 163, 88, 0.04);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.post-content blockquote p {
    font-size: 18px;
    font-style: italic;
    color: rgba(240, 235, 225, 0.85);
    margin-bottom: 0;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.post-content p code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 32px 0;
    width: 100%;
}

.post-content figure {
    margin: 32px 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 13px;
    color: rgba(240, 235, 225, 0.4);
    margin-top: 10px;
}

.post-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 48px 0;
}

/* YouTube / Video Embeds */
.post-content iframe,
.post-content .video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    margin: 32px 0;
    border: none;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-top: 56.25%;
    margin: 32px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* ─── External Media Section ───────────────────────────────────── */
.external-media {
    max-width: var(--content-width);
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.external-media .media-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    transition: border-color 0.3s ease;
}

.external-media .media-item:hover {
    border-color: rgba(203, 163, 88, 0.2);
}

.external-media .media-item .media-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.external-media .media-item .media-icon.youtube {
    background: rgba(255, 0, 0, 0.12);
    color: #ff4444;
}

.external-media .media-item .media-icon.gdrive {
    background: rgba(66, 133, 244, 0.12);
    color: #4285f4;
}

.external-media .media-item .media-icon.gcloud {
    background: rgba(52, 168, 83, 0.12);
    color: #34a853;
}

.external-media .media-item .media-info {
    flex: 1;
}

.external-media .media-item .media-info .media-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sand);
}

.external-media .media-item .media-info .media-url {
    font-size: 12px;
    color: rgba(240, 235, 225, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.external-media .media-item .media-action {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--gold-dim);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.external-media .media-item .media-action:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ─── Tags ─────────────────────────────────────────────────────── */
.post-tags {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tags .tag-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(240, 235, 225, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
}

.post-tags .tag {
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(240, 235, 225, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-tags .tag:hover {
    border-color: rgba(203, 163, 88, 0.3);
    color: var(--gold);
}

/* ─── Related Posts ────────────────────────────────────────────── */
.related-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-section h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ─── Share Bar ────────────────────────────────────────────────── */
.share-bar {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 24px 0 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-bar .share-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(240, 235, 225, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.share-bar button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(240, 235, 225, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-bar button:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
}

.share-bar button svg {
    width: 18px;
    height: 18px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.blog-footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 235, 225, 0.2);
}

/* ─── Loading States ───────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--earth-mid) 25%, var(--earth-surface) 50%, var(--earth-mid) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.skeleton-card .skeleton-image {
    width: 100%;
    padding-top: 58%;
}

.skeleton-card .skeleton-body {
    padding: 24px;
}

.skeleton-card .skeleton-line {
    height: 14px;
    margin-bottom: 12px;
}

.skeleton-card .skeleton-line.short { width: 60%; }
.skeleton-card .skeleton-line.medium { width: 80%; }
.skeleton-card .skeleton-line.full { width: 100%; }

/* ─── Empty State ──────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 2px solid rgba(203, 163, 88, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dim);
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: rgba(240, 235, 225, 0.4);
}

/* ─── Reading Progress Bar ─────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light));
    z-index: 200;
    transition: width 0.1s linear;
}

/* ─── Fade-In Animation ────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── View Toggle ──────────────────────────────────────────────── */
.listing-view {
    display: block;
}

.listing-view.hidden {
    display: none;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .post-card.featured {
        grid-template-columns: 1fr;
    }

    .post-card.featured .card-image {
        min-height: 240px;
        padding-top: 56%;
    }

    .post-card.featured .card-body {
        padding: 24px;
    }

    .post-card.featured .card-title {
        font-size: 22px;
    }

    .post-card.featured .card-footer {
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .header-search {
        display: none;
    }

    .blog-hero {
        padding: 100px 0 32px;
    }

    .post-hero img {
        height: 280px;
    }

    .post-header h1 {
        font-size: 28px;
    }

    .post-content p,
    .post-content li {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero .subtitle {
        font-size: 15px;
    }

    .post-card .card-body {
        padding: 18px;
    }

    .post-card .card-title {
        font-size: 18px;
    }
}
