/* ==========================================================================
   Blog Styles - RidePDI
   ========================================================================== */

/* Variables */
:root {
    --blog-primary: #667eea;
    --blog-primary-dark: #5a67d8;
    --blog-text: #1f2937;
    --blog-text-muted: #6b7280;
    --blog-border: #e5e7eb;
    --blog-bg: #f9fafb;
    --blog-card-bg: #ffffff;
    --blog-radius: 12px;
    --blog-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --blog-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Blog Page Layout
   ========================================================================== */

.blog-page {
    background: var(--blog-bg);
    min-height: 100vh;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        order: -1;
    }
}

/* ==========================================================================
   Blog Hero Section
   ========================================================================== */

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-hero .breadcrumb a {
    color: white;
    text-decoration: none;
}

.blog-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.blog-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Blog Search */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-lg);
}

.blog-search input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.blog-search button {
    background: var(--blog-primary);
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-search button:hover {
    background: var(--blog-primary-dark);
}

/* ==========================================================================
   Featured Posts
   ========================================================================== */

.featured-posts {
    padding: 3rem 0;
    background: white;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--blog-text);
}

.featured-posts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.featured-card {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-lg);
}

.featured-card--large {
    grid-row: span 2;
}

.featured-card__image {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.featured-card--large .featured-card__image {
    aspect-ratio: 16/10;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.05);
}

.featured-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.featured-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--blog-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-card__content {
    padding: 1.25rem;
}

.featured-card__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-card--large .featured-card__content h3 {
    font-size: 1.4rem;
}

.featured-card__content h3 a {
    color: var(--blog-text);
    text-decoration: none;
}

.featured-card__content h3 a:hover {
    color: var(--blog-primary);
}

.featured-card__content p {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--blog-text-muted);
}

.featured-card__meta .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-card__meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .featured-posts__grid {
        grid-template-columns: 1fr;
    }
    .featured-card--large {
        grid-row: auto;
    }
}

/* ==========================================================================
   Blog Content Section
   ========================================================================== */

.blog-content {
    padding: 3rem 0;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--blog-border);
    border-radius: 25px;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-pill:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.category-pill.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

.category-pill .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.category-pill.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-lg);
}

.post-card__image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.post-card__category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--blog-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-card__content {
    padding: 1.25rem;
}

.post-card__content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__content h3 a {
    color: var(--blog-text);
    text-decoration: none;
}

.post-card__content h3 a:hover {
    color: var(--blog-primary);
}

.post-card__content p {
    color: var(--blog-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--blog-text-muted);
}

.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.post-card__tags a {
    color: var(--blog-primary);
    font-size: 0.75rem;
    text-decoration: none;
}

.post-card__tags a:hover {
    text-decoration: underline;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--blog-radius);
}

.no-posts svg {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-posts h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--blog-text);
}

.no-posts p {
    color: var(--blog-text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    color: var(--blog-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.pagination a.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

.pagination__numbers {
    display: flex;
    gap: 0.25rem;
}

/* ==========================================================================
   Blog Sidebar
   ========================================================================== */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    padding: 1.5rem;
    box-shadow: var(--blog-shadow);
}

.sidebar-widget__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-text);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--blog-border);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-widget__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cta-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cta-widget p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-widget .btn-block {
    display: block;
    width: 100%;
    background: white;
    color: var(--blog-primary);
    font-weight: 600;
}

.cta-widget .btn-block:hover {
    background: #f3f4f6;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: var(--blog-bg);
    border-radius: 15px;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tag-cloud .tag:hover,
.tag-cloud .tag.active {
    background: var(--blog-primary);
    color: white;
}

.tag-cloud .tag span {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid var(--blog-border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--blog-text);
    text-decoration: none;
    transition: color 0.2s;
}

.category-list li a:hover,
.category-list li.active a {
    color: var(--blog-primary);
}

.category-list .count {
    background: var(--blog-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--blog-text-muted);
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.9rem;
    color: var(--blog-text-muted);
    margin-bottom: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blog-primary);
}

.newsletter-form .btn {
    width: 100%;
}

/* ==========================================================================
   Blog CTA Section
   ========================================================================== */

.blog-cta {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.blog-cta__content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-cta__content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-cta .btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.blog-cta .btn-outline:hover {
    background: white;
    color: var(--blog-text);
}

/* ==========================================================================
   Single Blog Post Page
   ========================================================================== */

.blog-post-page {
    background: var(--blog-bg);
}

/* Breadcrumb Nav */
.breadcrumb-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--blog-border);
}

.breadcrumb-nav .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-nav .breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb-nav .breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--blog-text-muted);
}

.breadcrumb-nav .breadcrumb a {
    color: var(--blog-text-muted);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb a:hover {
    color: var(--blog-primary);
}

/* Article Header */
.article-header {
    background: white;
    padding: 3rem 0;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--blog-primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.article-category:hover {
    background: var(--blog-primary-dark);
    color: white;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--blog-text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar--placeholder {
    background: var(--blog-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--blog-text);
    text-decoration: none;
}

.author-name:hover {
    color: var(--blog-primary);
}

.article-date {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
}

.article-date .separator {
    margin: 0 0.5rem;
}

/* Article Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blog-bg);
    color: var(--blog-text-muted);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--blog-primary);
    color: white;
}

.share-btn--twitter:hover { background: #1da1f2; }
.share-btn--facebook:hover { background: #4267b2; }
.share-btn--linkedin:hover { background: #0077b5; }
.share-btn--whatsapp:hover { background: #25d366; }
.share-btn--copy.copied { background: #10b981; color: white; }

/* Featured Image */
.article-featured-image {
    margin: 0;
    padding: 0 0 2rem;
    background: white;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--blog-radius);
}

/* Article Layout */
.article-wrapper {
    padding: 3rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 220px 1fr 280px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
    .article-toc {
        display: none;
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        display: none;
    }
}

/* Table of Contents */
.article-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blog-text-muted);
    margin-bottom: 1rem;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav li.toc-level-3 {
    padding-left: 1rem;
}

.toc-nav a {
    display: block;
    padding: 0.35rem 0;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--blog-primary);
    border-left-color: var(--blog-primary);
}

.toc-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blog-border);
    text-align: center;
}

.toc-cta p {
    font-size: 0.85rem;
    color: var(--blog-text-muted);
    margin-bottom: 0.75rem;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: var(--blog-radius);
    padding: 2.5rem;
    box-shadow: var(--blog-shadow);
}

.preview-banner {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Prose Styles */
.prose {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--blog-text);
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.prose h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 100px;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose a {
    color: var(--blog-primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--blog-primary-dark);
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--blog-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--blog-text-muted);
}

.prose code {
    background: var(--blog-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    padding: 0;
}

/* Inline CTA */
.inline-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--blog-radius);
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.inline-cta__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inline-cta__content {
    flex: 1;
    min-width: 200px;
}

.inline-cta__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.inline-cta__content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.inline-cta .btn {
    background: white;
    color: var(--blog-primary);
    white-space: nowrap;
}

.inline-cta .btn:hover {
    background: #f3f4f6;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.tags-label {
    font-weight: 600;
    color: var(--blog-text);
}

.article-tags .tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--blog-bg);
    border-radius: 15px;
    color: var(--blog-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.article-tags .tag:hover {
    background: var(--blog-primary);
    color: white;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--blog-bg);
    border-radius: var(--blog-radius);
}

.author-box__avatar img,
.author-box__avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box__avatar .avatar-placeholder {
    background: var(--blog-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.author-box__info .label {
    font-size: 0.8rem;
    color: var(--blog-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-box__info h4 {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.5rem;
}

.author-box__info h4 a {
    color: var(--blog-text);
    text-decoration: none;
}

.author-box__info h4 a:hover {
    color: var(--blog-primary);
}

.author-box__info p {
    color: var(--blog-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    color: var(--blog-text-muted);
    transition: color 0.2s;
}

.author-social a:hover {
    color: var(--blog-primary);
}

/* Share Bottom */
.share-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
    flex-wrap: wrap;
}

.share-bottom span {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons .share-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    width: auto;
    height: auto;
}

/* Article Sidebar */
.article-sidebar .sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--blog-radius);
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar-cta h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-cta p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.sidebar-cta .btn-block {
    display: block;
    background: white;
    color: var(--blog-primary);
    margin-bottom: 0.75rem;
}

.sidebar-cta .phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.sidebar-cta .phone-link:hover {
    opacity: 1;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--blog-border);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
}

.recent-posts img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-posts .title {
    display: block;
    font-size: 0.85rem;
    color: var(--blog-text);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.recent-posts a:hover .title {
    color: var(--blog-primary);
}

.recent-posts .date {
    font-size: 0.75rem;
    color: var(--blog-text-muted);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    padding: 3rem 0;
    background: white;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--blog-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
}

.related-card__image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-card__image img {
    transform: scale(1.05);
}

.related-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.related-card__content {
    padding: 1rem;
}

.related-card__content .category {
    font-size: 0.75rem;
    color: var(--blog-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.related-card__content h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.related-card__content h3 a {
    color: var(--blog-text);
    text-decoration: none;
}

.related-card__content h3 a:hover {
    color: var(--blog-primary);
}

.related-card__content .meta {
    font-size: 0.8rem;
    color: var(--blog-text-muted);
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Bottom CTA
   ========================================================================== */

.blog-bottom-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.bottom-cta__content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bottom-cta__content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */

.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.mobile-sticky-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }
    
    .blog-post-page {
        padding-bottom: 80px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .prose {
        font-size: 1rem;
    }
    
    .inline-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Category & Tag Pages
   ========================================================================== */

.category-hero,
.tag-hero,
.author-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.category-hero__title,
.tag-hero__title,
.author-hero__name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-hero__description,
.tag-hero__description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.category-hero__count,
.tag-hero__count,
.author-hero__count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.tag-hero__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

/* Author Hero */
.author-hero__profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.author-hero__avatar--placeholder {
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
}

.author-hero__info {
    text-align: left;
}

.author-hero__bio {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 0.5rem;
}

.author-hero__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-hero__social a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.author-hero__social a:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .author-hero__profile {
        flex-direction: column;
    }
    .author-hero__info {
        text-align: center;
    }
    .author-hero__social {
        justify-content: center;
    }
}

/* ==========================================================================
   Admin Sidebar Nav Section
   ========================================================================== */

.nav-section {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}
