body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar styling */
.navbar-custom {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5B7CFF !important;
}

.navbar-brand i {
    color: #5B7CFF;
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #5B7CFF !important;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #5B7CFF;
}

/* Hero section with gradient */
.hero-section {
    background: linear-gradient(135deg, #2F7AF7 0%, #7b68ee 100%);
    padding: 60px 0 80px 0;
    color: white;
    margin-bottom: -40px;
    margin-top: 50px;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* Main content container */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-header {
    padding: 40px 40px 0 40px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #667eea;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #667eea;
}

.post-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.post-content {
    padding: 40px;
}

.post-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.post-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
}

.post-body h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.post-body h4 {
    color: #764ba2;
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-body code {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 4px;
    color: #d63384;
    font-size: 0.9em;
}

.post-body pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    overflow-x: auto;
    margin: 20px 0;
}

/* Tags */
.post-tags {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
}

.tag-item {
    display: inline-block;
    background: #f1f3f5;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}

.tag-item:hover {
    background: #667eea;
    color: white;
}

/* Action buttons */
.post-actions {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-action.liked {
    background: #667eea;
    color: white;
}

.share-text {
    color: #666;
    font-weight: 500;
}

/* Related posts */
.related-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.related-post {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-post:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-info h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.related-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 60px 0;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-header, .post-content, .post-tags, .post-actions {
        padding: 20px;
    }

    .post-image {
        height: 250px;
    }

    .post-meta {
        gap: 15px;
    }

    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-post {
        flex-direction: column;
    }

    .related-img {
        width: 100%;
        height: 150px;
    }
}