/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #718096;
}

.breadcrumb a {
    color: #4a5568;
    text-decoration: none;
}

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

/* Blog Detail Styles */
.blog-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 100px 30px 0 30px;
}

.blog-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-header {
    margin-bottom: 25px;
}

.blog-title {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-body {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body h2 {
    font-size: 24px;
    color: #2d3748;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.blog-body h3 {
    font-size: 20px;
    color: #2d3748;
    margin: 25px 0 15px;
}

.blog-body h4 {
    font-size: 18px;
    color: #2d3748;
    margin: 20px 0 15px;
}

.blog-body blockquote {
    border-left: 4px solid #2c5aa0;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #4a5568;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.blog-body ul, .blog-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body code {
    background-color: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e53e3e;
}

.blog-body pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.blog-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Blog Actions */
.blog-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.action-btn {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 15px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.action-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.action-btn i {
    margin-right: 8px;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2d3748;
}

.author-details p {
    font-size: 14px;
    color: #718096;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #4a5568;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s;
}

.category-list a:hover {
    color: #2c5aa0;
    padding-left: 5px;
}

.popular-posts {
    list-style: none;
}

.popular-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-post:hover .popular-post-img img {
    transform: scale(1.05);
}

.popular-post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-content h4 a:hover {
    color: #2c5aa0;
}

.popular-post-content span {
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
}

.popular-post-content span i {
    margin-right: 5px;
}

/* Related Posts */
.related-posts {
    margin: 50px 0;
}

.section-title {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-card-img {
    height: 180px;
    overflow: hidden;
}

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

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

.post-card-content {
    padding: 20px;
}

.post-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-content h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-content h3 a:hover {
    color: #2c5aa0;
}

.post-card-meta {
    font-size: 12px;
    color: #718096;
    display: flex;
    gap: 15px;
}

.post-card-meta span {
    display: flex;
    align-items: center;
}

.post-card-meta i {
    margin-right: 5px;
}

/* Responsive Styles untuk Blog Detail */
@media (max-width: 992px) {
    .blog-detail {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 26px;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-meta span {
        margin-right: 15px;
    }
    
    .blog-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 22px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}