/* ============================================
   BEYOND THE SALE - BLOG STYLES
   Medium-Inspired Clean Design
   Isolated from main site styles
   ============================================ */

/* ========== RESET & ISOLATION ========== */
.blog-page,
.blog-page * {
    box-sizing: border-box;
}

.blog-page {
    background: #ffffff !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #242424;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

[data-theme="dark"] .blog-page {
    background: #121212 !important;
    color: #e5e5e5;
}

/* ========== BLOG HEADER ========== */
.blog-page .blog-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-theme="dark"] .blog-page .blog-header {
    background: #121212;
    border-bottom-color: #333;
}

.blog-page .blog-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-page .blog-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.blog-page .blog-logo {
    font-size: 26px;
    font-weight: 700;
    color: #242424;
    text-decoration: none;
    letter-spacing: -0.03em;
}

[data-theme="dark"] .blog-page .blog-logo {
    color: #e5e5e5;
}

.blog-page .blog-logo span {
    color: #1a8917;
}

/* Search */
.blog-page .blog-search {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-page .blog-search-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

.blog-page .blog-search input {
    width: 220px;
    padding: 8px 12px 8px 36px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    color: #242424;
    outline: none;
}

[data-theme="dark"] .blog-page .blog-search input {
    background: #1a1a1a;
    border-color: #333;
    color: #e5e5e5;
}

.blog-page .blog-search input:focus {
    border-color: #9ca3af;
}

.blog-page .blog-search input::placeholder {
    color: #9ca3af;
}

.blog-page .blog-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.blog-page .blog-nav {
    display: flex;
    gap: 20px;
}

.blog-page .blog-nav a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 15px;
}

.blog-page .blog-nav a:hover {
    color: #242424;
}

[data-theme="dark"] .blog-page .blog-nav a {
    color: #a8a8a8;
}

[data-theme="dark"] .blog-page .blog-nav a:hover {
    color: #e5e5e5;
}

.blog-page .blog-cta-btn {
    background: #1a8917;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.blog-page .blog-cta-btn:hover {
    background: #156d12;
}

/* ========== MAIN CONTENT AREA ========== */
.blog-page .blog-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
}

.blog-page .blog-main {
    min-width: 0;
}

/* ========== TAB NAVIGATION ========== */
.blog-page .blog-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

[data-theme="dark"] .blog-page .blog-tabs {
    border-bottom-color: #333;
}

.blog-page .blog-tab {
    padding: 12px 0;
    font-size: 15px;
    color: #6b6b6b;
    text-decoration: none;
    position: relative;
    border: none;
    background: none;
}

.blog-page .blog-tab:hover {
    color: #242424;
}

[data-theme="dark"] .blog-page .blog-tab {
    color: #a8a8a8;
}

[data-theme="dark"] .blog-page .blog-tab:hover {
    color: #e5e5e5;
}

.blog-page .blog-tab.active {
    color: #242424;
}

[data-theme="dark"] .blog-page .blog-tab.active {
    color: #e5e5e5;
}

.blog-page .blog-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #242424;
}

[data-theme="dark"] .blog-page .blog-tab.active::after {
    background: #e5e5e5;
}

/* ========== ARTICLE LIST ========== */
.blog-page .article-list {
    display: flex;
    flex-direction: column;
}

.blog-page .article-item {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 24px;
    align-items: flex-start;
}

[data-theme="dark"] .blog-page .article-item {
    border-bottom-color: #333;
}

.blog-page .article-item:first-child {
    padding-top: 0;
}

.blog-page .article-item:last-child {
    border-bottom: none;
}

.blog-page .article-content {
    min-width: 0;
}

/* Author */
.blog-page .article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.blog-page .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-page .author-name {
    font-size: 13px;
    color: #242424;
    font-weight: 500;
}

[data-theme="dark"] .blog-page .author-name {
    color: #e5e5e5;
}

/* Article Title */
.blog-page .article-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-page .article-title a {
    color: #242424;
    text-decoration: none;
}

.blog-page .article-title a:hover {
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .article-title a {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .article-title a:hover {
    color: #a8a8a8;
}

/* Article Excerpt */
.blog-page .article-excerpt {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.5;
    color: #6b6b6b;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .blog-page .article-excerpt {
    color: #a8a8a8;
}

/* Article Meta */
.blog-page .article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-page .article-tag {
    background: #f3f4f6;
    color: #6b6b6b;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    text-decoration: none;
}

.blog-page .article-tag:hover {
    background: #e5e7eb;
}

[data-theme="dark"] .blog-page .article-tag {
    background: #333;
    color: #a8a8a8;
}

.blog-page .article-date,
.blog-page .article-read-time {
    font-size: 13px;
    color: #9ca3af;
}

.blog-page .meta-dot {
    color: #9ca3af;
    font-size: 8px;
}

/* Article Thumbnail */
.blog-page .article-thumbnail {
    width: 112px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.blog-page .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== SIDEBAR ========== */
.blog-page .blog-sidebar {
    position: sticky;
    top: 80px;
}

.blog-page .sidebar-section {
    margin-bottom: 40px;
}

.blog-page .sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .blog-page .sidebar-title {
    color: #e5e5e5;
}

/* Staff Picks */
.blog-page .staff-picks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-page .staff-pick-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-page .staff-pick-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-page .staff-pick-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-page .staff-pick-author span {
    font-size: 13px;
    color: #242424;
    font-weight: 500;
}

[data-theme="dark"] .blog-page .staff-pick-author span {
    color: #e5e5e5;
}

.blog-page .staff-pick-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #242424;
    text-decoration: none;
}

.blog-page .staff-pick-title:hover {
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .staff-pick-title {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .staff-pick-title:hover {
    color: #a8a8a8;
}

.blog-page .staff-pick-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Topics */
.blog-page .topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-page .topic-tag {
    background: #f3f4f6;
    color: #6b6b6b;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
}

.blog-page .topic-tag:hover {
    border-color: #e5e7eb;
    color: #242424;
}

.blog-page .topic-tag.active {
    background: #242424;
    color: #ffffff;
}

[data-theme="dark"] .blog-page .topic-tag {
    background: #333;
    color: #a8a8a8;
}

[data-theme="dark"] .blog-page .topic-tag:hover {
    border-color: #444;
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .topic-tag.active {
    background: #e5e5e5;
    color: #121212;
}

.blog-page .see-more-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: #1a8917;
    text-decoration: none;
}

.blog-page .see-more-link:hover {
    color: #156d12;
}

/* Newsletter Box */
.blog-page .newsletter-box {
    background: #f9fafb;
    border-radius: 8px;
    padding: 24px;
}

[data-theme="dark"] .blog-page .newsletter-box {
    background: #1a1a1a;
}

.blog-page .newsletter-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #242424;
}

[data-theme="dark"] .blog-page .newsletter-box h4 {
    color: #e5e5e5;
}

.blog-page .newsletter-box p {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0 0 16px;
    line-height: 1.5;
}

[data-theme="dark"] .blog-page .newsletter-box p {
    color: #a8a8a8;
}

.blog-page .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-page .newsletter-form input {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 15px;
    background: #ffffff;
    color: #242424;
    outline: none;
}

[data-theme="dark"] .blog-page .newsletter-form input {
    background: #121212;
    border-color: #333;
    color: #e5e5e5;
}

.blog-page .newsletter-form input:focus {
    border-color: #1a8917;
}

.blog-page .newsletter-form button {
    padding: 12px 16px;
    background: #1a8917;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.blog-page .newsletter-form button:hover {
    background: #156d12;
}

.blog-page .newsletter-form button.success {
    background: #1a8917;
}

/* Sidebar Footer */
.blog-page .sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .sidebar-footer {
    border-top-color: #333;
}

.blog-page .sidebar-footer a {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

.blog-page .sidebar-footer a:hover {
    color: #6b6b6b;
}

/* ========== PAGINATION ========== */
.blog-page .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 32px;
    margin-top: 16px;
}

.blog-page .pagination-link {
    padding: 8px 14px;
    font-size: 15px;
    color: #6b6b6b;
    text-decoration: none;
    border-radius: 4px;
}

.blog-page .pagination-link:hover {
    background: #f3f4f6;
    color: #242424;
}

.blog-page .pagination-link.active {
    background: #242424;
    color: #ffffff;
}

[data-theme="dark"] .blog-page .pagination-link:hover {
    background: #333;
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .pagination-link.active {
    background: #e5e5e5;
    color: #121212;
}

/* ========== NO POSTS ========== */
.blog-page .no-posts {
    text-align: center;
    padding: 64px 32px;
}

.blog-page .no-posts h2 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #242424;
}

.blog-page .no-posts p {
    color: #6b6b6b;
    margin: 0 0 24px;
}

.blog-page .no-posts .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1a8917;
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

/* ========== SINGLE POST ========== */
.blog-page .single-post {
    background: #ffffff;
}

[data-theme="dark"] .blog-page .single-post {
    background: #121212;
}

/* Post Hero Section */
.blog-page .post-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.blog-page .post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.95) 0%, rgba(30, 30, 30, 0.7) 50%, rgba(30, 30, 30, 0.3) 100%);
    display: flex;
    align-items: flex-end;
}

.blog-page .post-hero-content {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 40px;
}

.blog-page .post-hero-title {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 16px;
}

.blog-page .post-hero-subtitle {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 24px;
}

.blog-page .post-hero-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-page .post-hero-author .author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.blog-page .post-hero-author .author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-page .post-hero-author .author-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.blog-page .post-hero-author .post-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .blog-page .post-hero {
        min-height: 350px;
    }

    .blog-page .post-hero-content {
        padding: 32px 24px;
    }

    .blog-page .post-hero-title {
        font-size: 28px;
    }

    .blog-page .post-hero-subtitle {
        font-size: 16px;
    }
}

.blog-page .post-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* Post Header (for posts without hero image) */
.blog-page .post-header {
    margin-bottom: 32px;
}

.blog-page .post-title {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #242424;
    margin: 0 0 16px;
}

[data-theme="dark"] .blog-page .post-title {
    color: #e5e5e5;
}

.blog-page .post-subtitle {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 22px;
    color: #6b6b6b;
    line-height: 1.4;
    margin: 0 0 24px;
}

[data-theme="dark"] .blog-page .post-subtitle {
    color: #a8a8a8;
}

.blog-page .post-header .article-author {
    gap: 12px;
}

.blog-page .post-header .author-avatar {
    width: 48px;
    height: 48px;
}

.blog-page .post-header .author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-page .post-header .author-name {
    font-size: 16px;
}

.blog-page .post-header .post-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #9ca3af;
}

/* Featured Image */
.blog-page .post-featured-image {
    margin: 0 0 32px;
}

.blog-page .post-featured-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 4px;
}

/* Post Body */
.blog-page .post-body {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 20px;
    line-height: 1.75;
    color: #242424;
}

[data-theme="dark"] .blog-page .post-body {
    color: #e5e5e5;
}

.blog-page .post-body h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}

.blog-page .post-body h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.blog-page .post-body p {
    margin: 0 0 24px;
}

.blog-page .post-body ul,
.blog-page .post-body ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.blog-page .post-body li {
    margin-bottom: 12px;
}

.blog-page .post-body blockquote {
    font-size: 24px;
    font-style: italic;
    color: #242424;
    border-left: 3px solid #242424;
    padding-left: 24px;
    margin: 32px 0;
    line-height: 1.5;
}

[data-theme="dark"] .blog-page .post-body blockquote {
    color: #e5e5e5;
    border-left-color: #e5e5e5;
}

.blog-page .post-body a {
    color: #1a8917;
    text-decoration: underline;
}

.blog-page .post-body pre {
    background: #f9fafb;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 15px;
}

[data-theme="dark"] .blog-page .post-body pre {
    background: #1a1a1a;
}

.blog-page .post-body code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.blog-page .post-body figure {
    margin: 32px 0;
}

.blog-page .post-body figure img {
    width: 100%;
    border-radius: 4px;
}

.blog-page .post-body figcaption {
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Post Tags */
.blog-page .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .post-tags {
    border-top-color: #333;
}

/* Post Actions */
.blog-page .post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .post-actions {
    border-color: #333;
}

.blog-page .post-actions-left,
.blog-page .post-actions-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.blog-page .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
}

.blog-page .action-btn:hover {
    color: #242424;
}

[data-theme="dark"] .blog-page .action-btn:hover {
    color: #e5e5e5;
}

.blog-page .action-btn svg {
    width: 24px;
    height: 24px;
}

/* Post CTA */
.blog-page .post-cta {
    background: #f9fafb;
    border-radius: 8px;
    padding: 32px;
    margin-top: 48px;
    text-align: center;
}

[data-theme="dark"] .blog-page .post-cta {
    background: #1a1a1a;
}

.blog-page .post-cta h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #242424;
}

[data-theme="dark"] .blog-page .post-cta h3 {
    color: #e5e5e5;
}

.blog-page .post-cta p {
    color: #6b6b6b;
    margin: 0 0 24px;
    font-size: 17px;
}

[data-theme="dark"] .blog-page .post-cta p {
    color: #a8a8a8;
}

.blog-page .post-cta .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #1a8917;
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.blog-page .post-cta .cta-button:hover {
    background: #156d12;
}

/* Related Section */
.blog-page .related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .related-section {
    border-top-color: #333;
}

.blog-page .related-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #242424;
}

[data-theme="dark"] .blog-page .related-section h2 {
    color: #e5e5e5;
}

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

.blog-page .related-item {
    text-decoration: none;
}

.blog-page .related-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.blog-page .related-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 6px;
    line-height: 1.35;
}

.blog-page .related-item:hover h3 {
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .related-item h3 {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .related-item:hover h3 {
    color: #a8a8a8;
}

.blog-page .related-item span {
    font-size: 13px;
    color: #9ca3af;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .blog-page .blog-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .blog-page .blog-sidebar {
        position: relative;
        top: 0;
        padding-top: 32px;
        border-top: 1px solid #e5e7eb;
    }

    [data-theme="dark"] .blog-page .blog-sidebar {
        border-top-color: #333;
    }
}

@media (max-width: 768px) {
    .blog-page .blog-header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .blog-page .blog-search {
        display: none;
    }

    .blog-page .blog-nav {
        display: none;
    }

    .blog-page .article-item {
        grid-template-columns: 1fr 80px;
        gap: 16px;
    }

    .blog-page .article-title {
        font-size: 17px;
    }

    .blog-page .article-thumbnail {
        width: 80px;
        height: 56px;
    }

    .blog-page .post-title {
        font-size: 32px;
    }

    .blog-page .post-subtitle {
        font-size: 18px;
    }

    .blog-page .post-body {
        font-size: 18px;
    }

    .blog-page .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .blog-page .blog-content {
        padding: 24px 16px 48px;
    }

    .blog-page .article-item {
        grid-template-columns: 1fr;
    }

    .blog-page .article-thumbnail {
        order: -1;
        width: 100%;
        height: 180px;
        margin-bottom: 8px;
    }

    .blog-page .post-container {
        padding: 24px 16px 48px;
    }
}

/* ========== ANIMATIONS ========== */
.blog-page .article-item {
    animation: blogFadeIn 0.3s ease;
    animation-fill-mode: both;
}

.blog-page .article-item:nth-child(1) { animation-delay: 0.05s; }
.blog-page .article-item:nth-child(2) { animation-delay: 0.1s; }
.blog-page .article-item:nth-child(3) { animation-delay: 0.15s; }
.blog-page .article-item:nth-child(4) { animation-delay: 0.2s; }
.blog-page .article-item:nth-child(5) { animation-delay: 0.25s; }

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

/* ========== READING PROGRESS BAR ========== */
.blog-page .reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

[data-theme="dark"] .blog-page .reading-progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.blog-page .reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a8917, #2dc629);
    width: 0;
    transition: width 0.1s ease-out;
}

/* ========== IMAGE LIGHTBOX ========== */
.blog-page .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-page .lightbox.active {
    opacity: 1;
    visibility: visible;
}

.blog-page .lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.blog-page .lightbox.active img {
    transform: scale(1);
}

.blog-page .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.blog-page .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blog-page .lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

/* ========== TOAST NOTIFICATIONS ========== */
.blog-page .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #242424;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-page .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.blog-page .toast.success {
    background: #1a8917;
}

.blog-page .toast.error {
    background: #dc2626;
}

/* ========== FLOATING ACTION BAR ========== */
.blog-page .floating-actions {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.blog-page .floating-actions.visible {
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .blog-page .floating-actions {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.blog-page .floating-actions .action-btn {
    padding: 10px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b6b6b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-page .floating-actions .action-btn:hover {
    background: #f3f4f6;
    color: #242424;
}

[data-theme="dark"] .blog-page .floating-actions .action-btn:hover {
    background: #333;
    color: #e5e5e5;
}

.blog-page .floating-actions .action-btn.liked {
    color: #ef4444;
}

.blog-page .floating-actions .action-btn.bookmarked {
    color: #1a8917;
}

.blog-page .floating-actions .action-btn svg {
    width: 20px;
    height: 20px;
}

.blog-page .floating-actions .action-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

[data-theme="dark"] .blog-page .floating-actions .action-divider {
    background: #333;
}

/* ========== SOCIAL SHARE BAR ========== */
.blog-page .social-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .social-share-bar {
    border-top-color: #333;
}

.blog-page .social-share-bar .share-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .social-share-bar .share-label {
    color: #a8a8a8;
}

.blog-page .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-page .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-page .share-btn.twitter {
    background: #1da1f2;
}

.blog-page .share-btn.linkedin {
    background: #0077b5;
}

.blog-page .share-btn.facebook {
    background: #1877f2;
}

.blog-page .share-btn.copy-link {
    background: #6b6b6b;
}

.blog-page .share-btn svg {
    width: 18px;
    height: 18px;
}

/* ========== TABLE OF CONTENTS ========== */
.blog-page .table-of-contents {
    background: #f9fafb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

[data-theme="dark"] .blog-page .table-of-contents {
    background: #1a1a1a;
}

.blog-page .table-of-contents h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6b6b;
    margin: 0 0 16px;
}

[data-theme="dark"] .blog-page .table-of-contents h4 {
    color: #a8a8a8;
}

.blog-page .table-of-contents ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-page .table-of-contents li {
    margin-bottom: 8px;
}

.blog-page .toc-link {
    display: block;
    color: #242424;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.blog-page .toc-link:hover {
    color: #1a8917;
}

[data-theme="dark"] .blog-page .toc-link {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .toc-link:hover {
    color: #2dc629;
}

.blog-page .toc-level-3 {
    padding-left: 16px;
    font-size: 14px;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .toc-level-3 {
    color: #a8a8a8;
}

.blog-page .toc-link.active {
    color: #1a8917;
    font-weight: 500;
}

/* ========== AUTHOR BIO SECTION ========== */
.blog-page .author-bio {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 48px;
}

[data-theme="dark"] .blog-page .author-bio {
    background: #1a1a1a;
}

.blog-page .author-bio-avatar {
    flex-shrink: 0;
}

.blog-page .author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-page .author-bio-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 4px;
}

[data-theme="dark"] .blog-page .author-bio-content h4 {
    color: #e5e5e5;
}

.blog-page .author-bio-content .author-role {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 12px;
}

[data-theme="dark"] .blog-page .author-bio-content .author-role {
    color: #a8a8a8;
}

.blog-page .author-bio-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0 0 16px;
}

[data-theme="dark"] .blog-page .author-bio-content p {
    color: #a8a8a8;
}

.blog-page .author-social {
    display: flex;
    gap: 12px;
}

.blog-page .author-social a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.blog-page .author-social a:hover {
    color: #1a8917;
}

.blog-page .author-social svg {
    width: 20px;
    height: 20px;
}

/* ========== COMMENTS SECTION ========== */
.blog-page .comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .comments-section {
    border-top-color: #333;
}

.blog-page .comments-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 24px;
}

[data-theme="dark"] .blog-page .comments-section h3 {
    color: #e5e5e5;
}

.blog-page .comment-form {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

[data-theme="dark"] .blog-page .comment-form {
    background: #1a1a1a;
}

.blog-page .comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.blog-page .comment-form input,
.blog-page .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #242424;
    outline: none;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .blog-page .comment-form input,
[data-theme="dark"] .blog-page .comment-form textarea {
    background: #121212;
    border-color: #333;
    color: #e5e5e5;
}

.blog-page .comment-form input:focus,
.blog-page .comment-form textarea:focus {
    border-color: #1a8917;
}

.blog-page .comment-form textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 16px;
}

.blog-page .comment-form button {
    padding: 12px 24px;
    background: #1a8917;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.blog-page .comment-form button:hover {
    background: #156d12;
}

.blog-page .comment-form button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* GDPR Consent Styling */
.blog-page .gdpr-consent {
    margin: 20px 0;
}

.blog-page .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .consent-label {
    color: #a8a8a8;
}

.blog-page .consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1a8917;
    cursor: pointer;
}

.blog-page .consent-text {
    flex: 1;
}

.blog-page .privacy-link {
    background: none;
    border: none;
    color: #1a8917;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.blog-page .privacy-link:hover {
    color: #156d12;
}

.blog-page .privacy-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-top: 0;
}

.blog-page .privacy-details.show {
    max-height: 400px;
    margin-top: 16px;
}

.blog-page .privacy-details-content {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.6;
}

[data-theme="dark"] .blog-page .privacy-details-content {
    background: #222;
}

.blog-page .privacy-details-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #242424;
    margin: 0 0 12px;
}

[data-theme="dark"] .blog-page .privacy-details-content h5 {
    color: #e5e5e5;
}

.blog-page .privacy-details-content ul {
    margin: 0;
    padding-left: 20px;
}

.blog-page .privacy-details-content li {
    margin-bottom: 8px;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .privacy-details-content li {
    color: #a8a8a8;
}

.blog-page .privacy-details-content li strong {
    color: #242424;
}

[data-theme="dark"] .blog-page .privacy-details-content li strong {
    color: #e5e5e5;
}

/* Comment Submit Button */
.blog-page .comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a8917;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-page .comment-submit-btn:hover {
    background: #156d12;
    transform: translateY(-1px);
}

.blog-page .comment-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.blog-page .comment-submit-btn svg {
    transition: transform 0.2s ease;
}

.blog-page .comment-submit-btn:hover svg {
    transform: translateX(2px);
}

/* Comment Avatar Placeholder */
.blog-page .avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8917 0%, #2dc629 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

/* Toast Variants */
.blog-page .toast.error {
    background: #dc2626;
}

.blog-page .comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-page .comment {
    display: flex;
    gap: 16px;
}

.blog-page .comment-avatar {
    flex-shrink: 0;
}

.blog-page .comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
}

.blog-page .comment-content {
    flex: 1;
}

.blog-page .comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.blog-page .comment-author {
    font-size: 15px;
    font-weight: 600;
    color: #242424;
}

[data-theme="dark"] .blog-page .comment-author {
    color: #e5e5e5;
}

.blog-page .comment-date {
    font-size: 13px;
    color: #9ca3af;
}

.blog-page .comment-body {
    font-size: 15px;
    line-height: 1.6;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .comment-body {
    color: #a8a8a8;
}

.blog-page .comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.blog-page .comment-actions button {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.blog-page .comment-actions button:hover {
    color: #1a8917;
}

.blog-page .comment-replies {
    margin-top: 20px;
    padding-left: 24px;
    border-left: 2px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .comment-replies {
    border-left-color: #333;
}

/* ========== PREVIOUS/NEXT NAVIGATION ========== */
.blog-page .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .post-navigation {
    border-top-color: #333;
}

.blog-page .nav-prev,
.blog-page .nav-next {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-page .nav-prev:hover,
.blog-page .nav-next:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

[data-theme="dark"] .blog-page .nav-prev,
[data-theme="dark"] .blog-page .nav-next {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-page .nav-prev:hover,
[data-theme="dark"] .blog-page .nav-next:hover {
    background: #222;
}

.blog-page .nav-next {
    text-align: right;
}

.blog-page .nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.blog-page .nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #242424;
    line-height: 1.4;
}

[data-theme="dark"] .blog-page .nav-title {
    color: #e5e5e5;
}

.blog-page .nav-placeholder {
    visibility: hidden;
}

/* ========== PAGE LAYOUTS (Categories, Archive) ========== */
.blog-page .page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.blog-page .page-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-page .page-title {
    font-family: Georgia, Cambria, 'Times New Roman', Times, serif;
    font-size: 42px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 12px;
}

[data-theme="dark"] .blog-page .page-title {
    color: #e5e5e5;
}

.blog-page .page-subtitle {
    font-size: 18px;
    color: #6b6b6b;
    margin: 0;
}

[data-theme="dark"] .blog-page .page-subtitle {
    color: #a8a8a8;
}

/* Categories Grid */
.blog-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-page .category-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-page .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .blog-page .category-card {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-page .category-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-page .category-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.blog-page .category-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 8px;
}

[data-theme="dark"] .blog-page .category-card h3 {
    color: #e5e5e5;
}

.blog-page .category-card p {
    font-size: 14px;
    color: #6b6b6b;
    margin: 0 0 16px;
    line-height: 1.5;
}

[data-theme="dark"] .blog-page .category-card p {
    color: #a8a8a8;
}

.blog-page .category-count {
    font-size: 13px;
    color: #1a8917;
    font-weight: 500;
}

/* Archive List */
.blog-page .archive-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.blog-page .archive-year {
    font-size: 32px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

[data-theme="dark"] .blog-page .archive-year {
    color: #e5e5e5;
    border-bottom-color: #333;
}

.blog-page .archive-months {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-page .archive-month h4 {
    font-size: 18px;
    font-weight: 600;
    color: #6b6b6b;
    margin: 0 0 16px;
}

[data-theme="dark"] .blog-page .archive-month h4 {
    color: #a8a8a8;
}

.blog-page .archive-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-page .archive-post {
    display: flex;
    align-items: baseline;
    gap: 16px;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.blog-page .archive-post:hover {
    background: #f3f4f6;
}

[data-theme="dark"] .blog-page .archive-post:hover {
    background: #1a1a1a;
}

.blog-page .archive-post-date {
    font-size: 14px;
    color: #9ca3af;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    flex-shrink: 0;
}

.blog-page .archive-post-title {
    font-size: 16px;
    font-weight: 500;
    color: #242424;
}

.blog-page .archive-post:hover .archive-post-title {
    color: #1a8917;
}

[data-theme="dark"] .blog-page .archive-post-title {
    color: #e5e5e5;
}

[data-theme="dark"] .blog-page .archive-post:hover .archive-post-title {
    color: #2dc629;
}

/* ========== SEARCH AUTOCOMPLETE ========== */
.blog-page .search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.blog-page .search-autocomplete.active {
    display: block;
}

[data-theme="dark"] .blog-page .search-autocomplete {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.blog-page .search-result-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.blog-page .search-result-item:last-child {
    border-bottom: none;
}

.blog-page .search-result-item:hover {
    background: #f3f4f6;
}

[data-theme="dark"] .blog-page .search-result-item {
    border-bottom-color: #333;
}

[data-theme="dark"] .blog-page .search-result-item:hover {
    background: #222;
}

.blog-page .search-result-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: #242424;
    margin: 0 0 4px;
}

[data-theme="dark"] .blog-page .search-result-item h5 {
    color: #e5e5e5;
}

.blog-page .search-result-item p {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .blog-page .search-result-item p {
    color: #a8a8a8;
}

.blog-page .search-no-results {
    padding: 24px;
    text-align: center;
    color: #6b6b6b;
    font-size: 14px;
}

/* ========== TEXT-TO-SPEECH CONTROLS ========== */
.blog-page .tts-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 24px;
}

[data-theme="dark"] .blog-page .tts-controls {
    background: #1a1a1a;
}

.blog-page .tts-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a8917;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.blog-page .tts-btn:hover {
    background: #156d12;
}

.blog-page .tts-btn.playing {
    background: #dc2626;
}

.blog-page .tts-btn svg {
    width: 18px;
    height: 18px;
}

.blog-page .tts-status {
    font-size: 13px;
    color: #6b6b6b;
}

[data-theme="dark"] .blog-page .tts-status {
    color: #a8a8a8;
}

/* ========== CODE SYNTAX HIGHLIGHTING ========== */
.blog-page .post-body pre code {
    font-family: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.blog-page .post-body pre {
    position: relative;
    background: #1e1e1e;
    color: #d4d4d4;
}

[data-theme="dark"] .blog-page .post-body pre {
    background: #0d0d0d;
}

.blog-page .code-lang {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== PRINT STYLES ========== */
@media print {
    .blog-page .blog-header,
    .blog-page .floating-actions,
    .blog-page .social-share-bar,
    .blog-page .reading-progress-container,
    .blog-page .post-navigation,
    .blog-page .comments-section,
    .blog-page .tts-controls,
    .blog-page .author-bio,
    .blog-page .related-section,
    .blog-page .post-cta,
    .blog-page .table-of-contents {
        display: none !important;
    }

    .blog-page {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .blog-page .post-body {
        font-size: 12pt;
        line-height: 1.6;
        color: #000000;
    }

    .blog-page .post-title,
    .blog-page .post-hero-title {
        font-size: 24pt;
        color: #000000;
    }

    .blog-page .post-subtitle,
    .blog-page .post-hero-subtitle {
        font-size: 14pt;
        color: #333333;
    }

    .blog-page .post-body a {
        color: #000000;
        text-decoration: underline;
    }

    .blog-page .post-body a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666666;
    }

    .blog-page .post-body img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .blog-page .post-body h2,
    .blog-page .post-body h3 {
        page-break-after: avoid;
    }

    .blog-page .post-body blockquote {
        border-left: 2px solid #000000;
        color: #333333;
    }

    .blog-page .post-hero {
        background: none !important;
        min-height: auto;
    }

    .blog-page .post-hero-overlay {
        background: none;
        position: static;
    }

    .blog-page .post-hero-content {
        padding: 0;
    }

    .blog-page .post-hero-title,
    .blog-page .post-hero-subtitle,
    .blog-page .post-hero-author .author-name,
    .blog-page .post-hero-author .post-meta-line {
        color: #000000 !important;
    }
}

/* ========== RESPONSIVE ADDITIONS ========== */
@media (max-width: 768px) {
    .blog-page .floating-actions {
        bottom: 16px;
        padding: 6px 12px;
    }

    .blog-page .floating-actions .action-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .blog-page .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .blog-page .author-social {
        justify-content: center;
    }

    .blog-page .post-navigation {
        grid-template-columns: 1fr;
    }

    .blog-page .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .blog-page .page-title {
        font-size: 32px;
    }

    .blog-page .categories-grid {
        grid-template-columns: 1fr;
    }

    .blog-page .archive-post {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .blog-page .social-share-bar {
        flex-wrap: wrap;
    }

    .blog-page .share-btn {
        width: 36px;
        height: 36px;
    }

    .blog-page .table-of-contents {
        padding: 16px;
    }

    .blog-page .comment {
        flex-direction: column;
        gap: 12px;
    }

    .blog-page .comment-avatar img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Author Avatar Placeholders
   ============================================ */

/* Article list author avatar placeholder */
.blog-page .author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8917 0%, #2dc629 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Author bio avatar placeholder */
.blog-page .author-bio-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8917 0%, #2dc629 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Author role badge */
.blog-page .author-role {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .blog-page .author-role {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }
}
