.container {
    background-color: transparent;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 4rem;
    }
}

/* Section Styles */
.section {
    padding: 2.5rem 0;
    background-color: transparent;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: left;
}

/* General Blog Styles */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.blog-post-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #18181b;
    margin-bottom: 1rem;
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 2rem;
    height: 2rem;
    color: #52525b;
}

.blog-post-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 400;
    color: #71717a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    padding: 0;
}

.blog-post-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    color: #ffffff;
}

.blog-post-excerpt {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #71717a;
    margin-top: auto;
    border-top: 1px solid #27272a;
    padding-top: 0.75rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.author-name {
    font-weight: 400;
    color: #a1a1aa;
}

.post-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-date, .reading-time {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 400;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: #a1a1aa;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-secondary:hover {
        background: transparent;
        border: none;
        color: #ffffff;
        text-decoration: none;
    }

.pagination-info {
    color: #71717a;
    font-weight: 400;
    font-size: 0.875rem;
}

.icon {
    width: 0.875rem;
    height: 0.875rem;
}

/* Error and Empty States */
.error-state, .empty-state {
    text-align: center;
    padding: 4rem 0;
    background: transparent;
}

.error-icon, .empty-icon {
    width: 2rem;
    height: 2rem;
    color: #52525b;
    margin: 0 auto 1rem;
    display: block;
}

.error-state h2, .empty-state h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.error-state p, .empty-state p {
    color: #a1a1aa;
    margin: 0;
    font-size: 0.875rem;
}

/* Blog Post Page Styles */
.blog-post {
    background: transparent;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 1rem 0;
    background: transparent;
    border-bottom: 1px solid #27272a;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: #71717a;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: #3f3f46;
}

.breadcrumb-list a {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #a1a1aa;
}

.breadcrumb-current {
    color: #a1a1aa;
}

.blog-post-header {
    padding: 3rem 0 2rem 0;
    background: transparent;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-category-large {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-category-large:hover {
    color: #ffffff;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.post-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #a1a1aa;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.post-meta-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #27272a;
}

.author-info-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-large {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.author-name-large {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.author-bio {
    font-size: 0.75rem;
    color: #71717a;
}

.post-details-large {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-date-large, .reading-time-large {
    font-size: 0.875rem;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.reading-time-icon {
    width: 1rem;
    height: 1rem;
}

/* Featured Image */
.post-featured-image {
    margin: 2rem 0;
    background: transparent;
}

.post-featured-image .container {
    padding: 0;
    max-width: 1200px;
}

.featured-image-wrapper {
    margin: 0;
    position: relative;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0.5rem;
}

.featured-image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Post Content Layout */
.post-content {
    padding: 3rem 0;
}

.post-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 1024px) {
    .post-content-layout {
        grid-template-columns: 60px 1fr;
        gap: 3rem;
        max-width: 920px;
    }
}

/* Social Share Sidebar */
.post-share-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .post-share-sidebar {
        display: block;
        position: relative;
    }

    .share-sticky {
        position: sticky;
        top: 100px;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .share-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #27272a;
        background: transparent;
        color: #71717a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .share-button:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: #3f3f46;
        color: #a1a1aa;
    }

    .share-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Share Buttons */
.post-share-mobile {
    display: block;
    padding: 2rem 0;
    border-top: 1px solid #27272a;
    border-bottom: 1px solid #27272a;
    margin-bottom: 2rem;
}

.post-share-mobile h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.share-buttons-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.share-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #27272a;
    background: transparent;
    color: #a1a1aa;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.share-button-mobile:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3f3f46;
    color: #ffffff;
}

.share-button-mobile svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 640px) {
    .share-buttons-mobile {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .post-share-mobile {
        display: none;
    }
}

/* Post Content Wrapper */
.post-content-wrapper {
    max-width: 800px;
    width: 100%;
}

/* Enhanced Article Body Typography */
.post-body {
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e4e4e7;
}

.post-body h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    scroll-margin-top: 100px;
}

.post-body h2:first-child {
    margin-top: 0;
}

.post-body h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    scroll-margin-top: 100px;
}

.post-body h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    line-height: 1.5;
}

.post-body p {
    color: #e4e4e7;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
}

.post-body strong {
    color: #ffffff;
    font-weight: 600;
}

.post-body em {
    font-style: italic;
}

.post-body a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #3f3f46;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.post-body a:hover {
    text-decoration-color: #71717a;
    color: #ffffff;
}

.post-body ul, .post-body ol {
    color: #e4e4e7;
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.post-body ul {
    list-style-type: disc;
}

.post-body ol {
    list-style-type: decimal;
}

.post-body li {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.post-body li::marker {
    color: #71717a;
}

.post-body blockquote {
    border-left: 4px solid #3f3f46;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #d4d4d8;
    font-size: 1.125rem;
}

.post-body code {
    background: #18181b;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    border: 1px solid #27272a;
}

.post-body pre {
    background: #18181b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #27272a;
}

.post-body pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e4e4e7;
    font-size: 0.875rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border: 1px solid #27272a;
}

.post-body hr {
    border: none;
    border-top: 1px solid #27272a;
    margin: 3rem 0;
}

/* Tags */
.post-tags {
    padding: 2rem 0;
    border-top: 1px solid #27272a;
    margin-bottom: 2rem;
}

.post-tags h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8125rem;
    color: #a1a1aa;
    background: transparent;
    border: 1px solid #27272a;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-transform: capitalize;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tag:hover {
    border-color: #3f3f46;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Author Bio */
.author-bio-section {
    margin: 2rem 0;
}

.author-bio-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid #27272a;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

.author-bio-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.author-bio-content p {
    color: #d4d4d8;
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

/* Related Posts */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-post-card {
    background: transparent;
    border: 1px solid #27272a;
    transition: border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    border-radius: 0.5rem;
}

.related-post-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-post-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #18181b;
}

    .related-post-image .post-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .related-post-image .post-image-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #18181b;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-post-excerpt {
    color: #a1a1aa;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #71717a;
    padding-top: 1rem;
    border-top: 1px solid #27272a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-post-image {
        padding-top: 66.67%; /* 3:2 aspect ratio on mobile for better visibility */
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .blog-post-title {
        font-size: 1rem;
    }

    .blog-post-excerpt {
        font-size: 0.8rem;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border: none;
        padding-top: 0.5rem;
    }

    .section {
        padding: 2rem 0;
    }

    .pagination {
        margin-top: 3rem;
        gap: 1rem;
    }

    .post-title {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.125rem;
    }
    
    .post-meta-large {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .author-info-large {
        width: 100%;
    }

    .featured-image {
        max-height: 400px;
        border-radius: 0.375rem;
    }
    
    .post-content {
        padding: 2rem 0;
    }

    .post-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .post-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .post-body h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .post-body h4 {
        font-size: 1.125rem;
    }

    .post-body p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .post-body blockquote {
        padding-left: 1rem;
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    .post-body ul, .post-body ol {
        padding-left: 1.5rem;
    }

    .post-tags {
        padding: 1.5rem 0;
    }
    
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .author-bio-avatar {
        margin: 0 auto;
        width: 4rem;
        height: 4rem;
    }

    .author-bio-content h3 {
        font-size: 1rem;
    }

    .author-bio-content p {
        font-size: 0.9375rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .related-post-image {
        padding-top: 66.67%; /* 3:2 aspect ratio on mobile */
    }

    .related-post-content {
        padding: 1.25rem;
    }

    .related-post-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 2rem 0 1.5rem 0;
    }

    .breadcrumb-list {
        font-size: 0.75rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }

    .post-excerpt {
        font-size: 1rem;
    }
    
    .post-meta-large {
        gap: 0.75rem;
    }

    .featured-image {
        max-height: 300px;
    }
    
    .post-body h2 {
        font-size: 1.375rem;
    }
    
    .post-body h3 {
        font-size: 1.125rem;
    }

    .share-buttons-mobile {
        grid-template-columns: 1fr;
    }

    .author-bio-card {
        padding: 1.25rem;
    }

    .author-bio-avatar {
        width: 3.5rem;
        height: 3.5rem;
    }
}
