/* Blog Listing Page Styles */
.blog-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.blog-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.blog-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.blog-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 18px;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}

.blog-card-date,
.blog-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    background: #f1f5f9;
    color: #475569;
}

.meta-icon {
    opacity: 0.7;
}

.blog-card-category {
    background: #eff6ff;
    color: #3b82f6;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-excerpt {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
    margin-top: auto;
    width: fit-content;
}

.blog-card-read-more:hover {
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.page-link:hover,
.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.no-posts-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.no-posts h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.no-posts p {
    color: #475569;
    font-size: 18px;
    line-height: 1.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 992px) {
    .blog-title {
        font-size: 38px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 40px 0;
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .blog-page {
        padding: 30px 0;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .blog-card-excerpt {
        font-size: 14px;
    }
    
    .no-posts {
        padding: 60px 20px;
    }
    
    .no-posts-icon {
        font-size: 60px;
    }
    
    .no-posts h2 {
        font-size: 24px;
    }
}

.blog-post-page {
    background: #ffffff;
    min-height: 100vh;
}

/* Container */
.blog-post-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.blog-post-header {
    padding: 60px 0 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.blog-post-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    opacity: 0.9;
}

.blog-post-meta span {
    position: relative;
    padding-left: 25px;
}

.blog-author::before {
    content: '✎';
    position: absolute;
    left: 0;
    font-size: 18px;
}

.blog-date::before {
    content: '📅';
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Featured Image */
.blog-post-featured-image {
    padding: 40px 0;
    background: #f8f9fa;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Content Blocks */
.blog-post-content {
    padding: 40px 0;
}

.blog-block {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Heading Blocks */
.block-h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
}

.block-h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.block-h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 25px 0 15px;
}

/* Paragraph Blocks */
.block-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: #4a4a4a;
}

/* Quote Blocks */
.block-quote blockquote {
    font-size: 20px;
    font-style: italic;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding: 20px 30px;
    margin: 0;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
}

/* Image Blocks */
.block-image {
    text-align: center;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* No Content */
.no-content {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    padding: 40px;
}

/* Author Section */
.blog-post-author {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.author-card {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    flex-shrink: 0;
}

.author-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.author-info p {
    color: #6c757d;
    line-height: 1.8;
    margin: 0;
}

/* Footer */
.blog-post-footer {
    padding: 40px 0;
    text-align: center;
}

.back-to-blog {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-header {
        padding: 40px 0 20px;
    }
    
    .blog-post-title {
        font-size: 32px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .block-h2 {
        font-size: 28px;
    }
    
    .block-h3 {
        font-size: 24px;
    }
    
    .block-h4 {
        font-size: 22px;
    }
    
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-post-title {
        font-size: 28px;
    }
    
    .blog-post-meta span {
        padding-left: 20px;
    }
    
    .blog-author::before,
    .blog-date::before {
        font-size: 16px;
    }
    
    .block-quote blockquote {
        font-size: 18px;
        padding: 15px 20px;
    }
}

/* Single Blog Post Styles - Full Width Responsive */
.single-blog-page {
    padding: 40px 0;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    margin: 0 auto;
    box-sizing: border-box;
}

.single-blog-post {
    max-width: 900px;
    margin: 0 auto;
    background: white;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
    padding: 0 15px;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #94a3b8;
}

.breadcrumbs .current {
    color: #475569;
}

/* Post Header */
.post-header {
    margin-bottom: 30px;
    padding: 0 15px;
}

.post-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Featured Image */
.post-featured-image {
    margin: 0 0 30px 0;
    overflow: hidden;
    padding: 0 15px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Post Content */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content h1 { font-size: 36px; }
.post-content h2 { font-size: 30px; }
.post-content h3 { font-size: 24px; }
.post-content h4 { font-size: 20px; }

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

.post-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8fafc;
    font-style: italic;
    color: #555;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 15px;
    max-width: 100%;
}

.post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #3b82f6;
    word-break: break-word;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    word-break: normal;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
    word-break: break-word;
}

.post-content a:hover {
    color: #2563eb;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.post-content table th,
.post-content table td {
    border: 1px solid #eaeaea;
    padding: 10px;
    text-align: left;
}

.post-content table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Share Buttons */
.post-share {
    margin: 40px 0;
    text-align: center;
    padding: 0 15px;
}

.post-share h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.facebook { background: #1877f2; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }

/* Back to Blog */
.back-to-blog {
    text-align: center;
    padding: 0 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
    padding: 10px 25px;
    background: #f8fafc;
    border-radius: 30px;
}

.back-link:hover {
    gap: 12px;
    background: #3b82f6;
    color: white;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .post-title {
        font-size: 36px;
    }
    
    .post-content {
        font-size: 17px;
    }
    
    .post-content h2 { font-size: 28px; }
    .post-content h3 { font-size: 22px; }
    .post-content h4 { font-size: 18px; }
}

/* Responsive - Mobile Landscape */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 20px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .post-content h2 { font-size: 26px; }
    .post-content h3 { font-size: 20px; }
    .post-content h4 { font-size: 18px; }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
}

/* Responsive - Mobile Portrait */
@media (max-width: 480px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 { font-size: 24px; }
    .post-content h3 { font-size: 20px; }
    .post-content h4 { font-size: 18px; }
    
    .post-content blockquote {
        padding: 10px 15px;
    }
    
    .post-content pre {
        font-size: 13px;
        padding: 12px;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        width: 38px;
        height: 38px;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .back-link {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .post-title {
        font-size: 24px;
    }
    
    .container-fluid {
        padding: 0 12px;
    }
}

/* Print Styles */
@media print {
    .single-blog-page {
        padding: 20px 0;
    }
    
    .post-share,
    .back-to-blog {
        display: none;
    }
    
    .post-content a {
        text-decoration: none;
        color: #000;
    }
}