/* Blog Detail Page Styles */
.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.blog-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #0056b3;
}

.blog-breadcrumb i {
    font-size: 12px;
    color: #999;
}

.blog-breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* Blog Detail Header */
.blog-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

/* Blog Detail Image */
.blog-detail-image {
    margin-bottom: 40px;
    text-align: center;
}

.blog-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.blog-featured-image:hover {
    transform: scale(1.02);
}

/* Blog Detail Content */
.blog-detail-content {
    margin-bottom: 40px;
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-content-wrapper h1,
.blog-content-wrapper h2,
.blog-content-wrapper h3,
.blog-content-wrapper h4,
.blog-content-wrapper h5,
.blog-content-wrapper h6 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-content-wrapper h1 {
    font-size: 2rem;
}

.blog-content-wrapper h2 {
    font-size: 1.75rem;
}

.blog-content-wrapper h3 {
    font-size: 1.5rem;
}

.blog-content-wrapper p {
    margin-bottom: 20px;
}

.blog-content-wrapper ul,
.blog-content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-content-wrapper li {
    margin-bottom: 8px;
}

.blog-content-wrapper blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.blog-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-content-wrapper a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-content-wrapper a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Blog Detail Footer */
.blog-detail-footer {
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.blog-post-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.blog-info-item i {
    color: #667eea;
    width: 16px;
}

/* Related Posts */
.related-posts-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}

.related-post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-date {
    color: #666;
}

.related-post-title {
    margin-bottom: 12px;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Blog Navigation */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.blog-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-nav-button:not(.primary) {
    color: #666;
    border-color: #ddd;
    background: #fff;
}

.blog-nav-button:not(.primary):hover {
    color: #333;
    border-color: #999;
    background: #f8f9fa;
}

.blog-nav-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.blog-nav-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Blog Not Found */
.blog-not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.blog-not-found h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.blog-not-found p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-detail-container {
        padding: 15px;
        margin: 10px;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-content-wrapper {
        font-size: 15px;
    }

    .blog-post-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-nav-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-detail-title {
        font-size: 1.75rem;
    }

    .blog-content-wrapper {
        font-size: 14px;
    }

    .related-post-content {
        padding: 15px;
    }
}
