/* ============================================
   BLOG SYSTEM — Styled to match About Page
   Uses: --primary, --accent, --dark, --gray
   Font: 'Sora', sans-serif
   Gradients: #FFB800 → #FF3D00
   ============================================ */

/* ── Reading Progress ─────────────────────── */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #FFB800 0%, #FF3D00 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Blog Hero ────────────────────────────── */
.blog-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: heroBgFloat 10s ease-in-out infinite alternate;
}

@keyframes heroBgFloat {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.05) rotate(2deg); }
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 4rem 5%;
}

.blog-hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
}

.blog-hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-highlight {
    position: relative;
    /*display: inline-block;*/
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
    transform: skewX(-5deg);
}

.blog-hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.hero-breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.hero-breadcrumb a:hover { text-decoration: underline; }
.hero-breadcrumb .sep { opacity: 0.6; }

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50%       { transform: scaleY(0.5); opacity: 1; }
}

/* ── Blog Main Layout ─────────────────────── */
.blog-main {
    padding: 5rem 0 6rem;
    background: var(--gray, #f7f8fa);
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}

/* ── Blog Grid ────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Featured first card spans full width */
.blog-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-card--featured .card-image {
    height: 100%;
    min-height: 320px;
}

/* ── Blog Card ────────────────────────────── */
.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.card-image-link { display: block; }

.card-image {
    height: 240px;
    background: linear-gradient(135deg, #ffe8c0 0%, #ffd0b0 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image img { transform: scale(1.06); }

.card-image-placeholder {
    color: #FFB800;
    opacity: 0.5;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    z-index: 2;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: #777;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-meta svg { color: #FFB800; flex-shrink: 0; }
.meta-divider { color: #ccc; }

.card-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.875rem;
    color: var(--dark, #1a1a2e);
    flex: 1;
}

.blog-card--featured .card-title {
    font-size: 1.75rem;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover { color: #FF3D00; }

.card-excerpt {
    font-size: 0.95rem;
    color: #5a6275;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f1f1;
    margin-top: auto;
    gap: 1rem;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.author-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
}

.card-cta {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FF3D00;
    text-decoration: none;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.card-cta:hover { gap: 0.6rem; }

/* ── Pagination ───────────────────────────── */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark, #1a1a2e);
    text-decoration: none;
    transition: all 0.25s ease;
}

.page-btn:hover {
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,61,0,0.3);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-num {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: #666;
    background: white;
    border-color: #e5e7eb;
}

.page-num:hover {
    background: #FFB800;
    border-color: #FFB800;
    color: white;
}

.page-num--active {
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255,61,0,0.35);
}

.page-dots {
    color: #aaa;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 0.25rem;
}

/* ── Sidebar ──────────────────────────────── */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.sidebar-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #FFB800, #FF3D00) 1;
}

/* Recent posts */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-item a {
    font-family: 'Sora', sans-serif;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--dark, #1a1a2e);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-item a:hover { color: #FF3D00; }

.recent-date {
    font-size: 0.78rem;
    color: #999;
    font-weight: 500;
}

/* CTA sidebar */
.sidebar-cta {
    background: var(--dark, #1a1a2e);
    border-color: transparent;
    color: white;
}

.cta-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,184,0,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-cta h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sidebar-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(255,61,0,0.35);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,61,0,0.45);
    color: white;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 24px;
}

.no-posts-icon { font-size: 4rem; margin-bottom: 1.25rem; }

.no-posts h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    margin-bottom: 0.5rem;
}

.no-posts p { color: #777; }

/* ============================================
   SINGLE POST
   ============================================ */

/* Post Hero */
.post-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding-bottom: 0;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(255,255,255,0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(0,0,0,0.15) 0%, transparent 50%);
}

.post-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5% 4rem;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    gap: 0.75rem;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.post-cat-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.post-hero-date,
.post-hero-read,
.post-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.88);
    font-weight: 500;
}

.post-hero-author { font-weight: 400; }

.post-hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    max-width: 900px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

/* Single Post Section */
.single-post-section {
    padding: 4rem 0 6rem;
    background: var(--gray, #f7f8fa);
}

.single-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    align-items: start;
}

/* Post Article */
.post-article {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.post-featured-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Body Typography */
.post-body {
    padding: 3rem;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #4a5568;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
}

.post-body h1 { font-size: 2.25rem; margin-top: 0; }
.post-body h2 {
    font-size: 1.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid #FFB800;
    display: inline-block;
}
.post-body h3 { font-size: 1.5rem; }
.post-body h4 { font-size: 1.25rem; }

.post-body p { margin-bottom: 1.5rem; }

.post-body ul,
.post-body ol {
    padding-left: 1.75rem;
    margin-bottom: 1.5rem;
}

.post-body li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.post-body li::marker { color: #FFB800; }

.post-body blockquote {
    background: linear-gradient(135deg, #fff8e8 0%, #fff3d4 100%);
    padding: 2rem 2rem 2rem 2.5rem;
    border-left: 5px solid #FFB800;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark, #1a1a2e);
    font-size: 1.15rem;
    line-height: 1.7;
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 5rem;
    color: #FFB800;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.post-body a {
    color: #FF3D00;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s;
}

.post-body a:hover { color: #FFB800; }

.post-body code {
    background: #fff3d4;
    color: #c0392b;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Fira Code', 'Monaco', monospace;
}

.post-body pre {
    background: var(--dark, #1a1a2e);
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Share Bar */
.post-share-bar {
    padding: 2rem 3rem;
    background: #f9fafb;
    border-top: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.share-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark, #1a1a2e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.share-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-family: 'Sora', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.share-pill--twitter  { background: #e7f5fe; color: #1da1f2; }
.share-pill--facebook { background: #e8edf8; color: #4267b2; }
.share-pill--linkedin { background: #e6f4fb; color: #0077b5; }
.share-pill--copy     { background: #f1f5f9; color: #555; }
.share-pill--copied   { background: #d1fae5; color: #059669; }

.share-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Author Card */
.author-card {
    padding: 2.5rem 3rem;
    display: flex;
    gap: 1.75rem;
    align-items: center;
    border-top: 1px solid #f1f1f1;
    background: white;
}

.author-card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255,61,0,0.3);
}

.author-card-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFB800;
    margin-bottom: 0.25rem;
}

.author-card-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    margin-bottom: 0.5rem;
}

.author-card-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* TOC */
.toc-card { max-height: 420px; overflow-y: auto; }

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.toc-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-item a:hover {
    background: #fff3d4;
    color: #FF3D00;
    border-left-color: #FFB800;
}

.toc-item--sub a {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Sidebar Related */
.sidebar-related {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-related-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.sidebar-related-item:hover { background: #f9fafb; }

.sidebar-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f1f1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sidebar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-related-info { flex: 1; min-width: 0; }

.sidebar-related-info h5 {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark, #1a1a2e);
    line-height: 1.35;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-related-item:hover h5 { color: #FF3D00; }

.sidebar-related-info span {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

/* Related Section */
.related-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 2px solid #e8e8e8;
}

.related-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, #FFB800 0%, #FF3D00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-section-header p {
    font-size: 1.1rem;
    color: #777;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}

.related-card-img-link { display: block; }

.related-card-img {
    height: 200px;
    background: linear-gradient(135deg, #ffe8c0 0%, #ffd0b0 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-img img { transform: scale(1.07); }

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.related-card-placeholder {
    font-size: 3rem;
    opacity: 0.4;
}

.related-card-body { padding: 1.5rem; }

.related-card-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 0.6rem;
    display: block;
}

.related-card-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.related-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.related-card-body h3 a:hover { color: #FF3D00; }

.related-card-link {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FF3D00;
    text-decoration: none;
    transition: gap 0.2s ease, letter-spacing 0.2s;
}

.related-card-link:hover { letter-spacing: 0.5px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .blog-layout,
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .blog-grid { grid-template-columns: 1fr 1fr; }

    .blog-card--featured {
        grid-template-columns: 1fr;
    }

    .blog-card--featured .card-image {
        height: 260px;
        min-height: unset;
    }

    .blog-sidebar,
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-cta { grid-column: 1 / -1; }

    .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .blog-hero { margin-top: 70px; }
    .post-hero  { margin-top: 70px; }

    .blog-grid { grid-template-columns: 1fr; }
    .blog-card--featured { grid-column: auto; }

    .blog-sidebar,
    .post-sidebar { grid-template-columns: 1fr; }

    .post-body { padding: 2rem 1.5rem; }
    .post-share-bar,
    .author-card { padding: 1.5rem; }

    .author-card { flex-direction: column; text-align: center; }
    .author-card-label { text-align: center; }

    .related-grid { grid-template-columns: 1fr; }

    .share-actions { gap: 0.5rem; }
    .share-label   { width: 100%; }

    .post-hero-meta { gap: 0.75rem; }
    .post-hero-title { font-size: 2rem; }

    .blog-pagination { flex-direction: column; }
}

@media (max-width: 480px) {
    .blog-hero-content h1 { font-size: 2rem; }
    .card-body { padding: 1.25rem; }
    .card-footer { flex-direction: column; align-items: flex-start; }
    .post-body { font-size: 1rem; }
    .post-body h2 { font-size: 1.5rem; }
    .author-card-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
}

/* ── Print ────────────────────────────────── */
@media print {
    .blog-sidebar, .post-sidebar, .post-share-bar,
    .related-section, .blog-pagination, .reading-progress-bar { display: none !important; }
    .blog-layout, .single-post-layout { grid-template-columns: 1fr !important; }
    .post-body { padding: 0 !important; }
}

/* ── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .blog-card:hover, .related-card:hover { transform: none !important; }
}