:root {
    --blog-primary: #5B9BD5;
    --blog-accent: #857CFF;
    --blog-gradient: linear-gradient(135deg, #5B9BD5 0%, #857CFF 100%);
    --blog-gradient-hover: linear-gradient(135deg, #4a8bc4 0%, #7369e6 100%);
    --blog-text-dark: #1a1a2e;
    --blog-text-light: #6c757d;
    --blog-bg-light: #f8f9fa;
    --blog-card-shadow: 0 4px 20px rgba(91, 155, 213, 0.1);
    --blog-card-shadow-hover: 0 12px 40px rgba(91, 155, 213, 0.2);
    --header-height: 60px;
}

/* Предотвращение горизонтальной прокрутки */
body {
    overflow-x: hidden;
    max-width: 100%;
}

.blog-content-container {
    max-width: 100%;
    overflow-x: hidden;
}

.categories-ovals {
    padding: 0;
    margin-top: calc(-1 * var(--header-height));
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.categories-ovals .container {
    padding-top: 0;
    padding-bottom: 0;
}

.categories-ovals-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
}

.category-oval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #383a3f;
    border: 1px solid #383a3f;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-oval:hover {
    background: #383a3f;
    color: white;
    text-decoration: none;
}

.category-oval-active {
    color: #5b9bd5 !important;
    border-color: #5b9bd5 !important;
}

.category-oval-active:hover {
    background: #5b9bd5 !important;
    color: white !important;
}

.blog-content-container {
    padding-top: 40px;
}

.featured-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--blog-gradient);
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--blog-card-shadow-hover);
    text-decoration: none;
    color: inherit;
}

.featured-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--blog-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

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

.featured-card:hover .featured-card-image img {
    transform: scale(1.1);
}

.featured-card-content {
    padding: 25px;
}

.featured-card-category {
    display: inline-block;
    background: var(--blog-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blog-text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card p {
    color: var(--blog-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--blog-text-light);
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

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

.posts-list {
    margin-bottom: 50px;
}

/* Второй ряд новостей - 3 плитки */
.posts-grid-row-wrapper {
    width: 100%;
    margin: 0 auto 50px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.posts-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.post-card-grid {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.post-card-grid:hover {
    box-shadow: 0 8px 24px rgba(91, 155, 213, 0.15);
    text-decoration: none;
    color: inherit;
}

.post-card-grid-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--blog-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

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

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

.post-card-grid-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-grid-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.post-card-grid:hover .post-card-grid-title {
    color: var(--blog-primary);
}

.post-card-grid-excerpt {
    color: var(--blog-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-grid-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--blog-text-light);
}

.post-card-grid-date,
.post-card-grid-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card-grid-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-grid-tag {
    color: #5b9bd5;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Первая статья - растянутая на всю ширину */
.post-card-featured-wrapper {
    width: 100%;
    margin: 20px 0 30px 0;
    padding: 0 15px;
}

.post-card-featured {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    transition: box-shadow 0.3s ease;
    display: block;
}

.post-card-featured:hover {
    box-shadow: 0 8px 24px rgba(91, 155, 213, 0.15);
}

.post-card-featured-link {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    align-items: stretch;
}

.post-card-featured-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-featured-image-link:hover {
    text-decoration: none;
}

.post-card-featured-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-featured-title-link:hover {
    text-decoration: none;
}

.post-card-featured-title-link:hover .post-card-featured-title {
    color: var(--blog-primary);
    text-decoration: none;
}

.post-card-featured-excerpt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card-featured-excerpt-link:hover {
    text-decoration: none;
}

.post-card-featured-image-link {
    flex-shrink: 0;
    margin: 10px;
}

.post-card-featured-image {
    width: 400px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--blog-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-card-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-featured-content {
    flex: 1;
    padding: 30px 30px 30px 20px;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
    min-width: 0;
}

.post-card-featured-date {
    color: var(--blog-text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    flex-shrink: 0;
}

.post-card-featured-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blog-text-light);
}

.post-card-featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.post-card-featured-title-link {
    width: 100%;
}

.post-card-featured-excerpt {
    color: var(--blog-text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.post-card-featured-excerpt-link {
    width: 100%;
}

.post-card-featured-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-items: center;
}

.post-card-featured-tag {
    color: #5b9bd5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #5b9bd5;
    background: transparent;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.post-card-featured-tag:hover {
    background: #5b9bd5;
    color: white;
    text-decoration: none;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-card-shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-card-shadow-hover);
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    width: 300px;
    min-width: 300px;
    height: 100%;
    object-fit: cover;
    background: var(--blog-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

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

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

.post-card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-category {
    background: var(--blog-gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-date {
    color: var(--blog-text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-card-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blog-text-light);
}

.post-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card-excerpt {
    color: var(--blog-text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.post-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-tag {
    background: #f0f0f0;
    color: var(--blog-text-dark);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-card-tag:hover {
    background: var(--blog-primary);
    color: white;
    text-decoration: none;
}

.post-card-stats {
    display: flex;
    gap: 20px;
    color: var(--blog-text-light);
    font-size: 0.9rem;
}

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

.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--blog-card-shadow);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--blog-gradient);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    padding-left: 10px;
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--blog-text-dark);
    font-weight: 500;
}

.category-item a:hover {
    color: var(--blog-primary);
}

.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}

.category-count {
    background: var(--blog-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #f0f0f0;
    color: var(--blog-text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.tag-cloud a:hover {
    background: var(--blog-gradient);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.stat-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blog-gradient);
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
}

.stat-item span {
    font-weight: 600;
    color: var(--blog-text-dark);
}

.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-modern .page-link {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: var(--blog-text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    background: white;
}

.pagination-modern .page-link:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: var(--blog-gradient);
    border-color: transparent;
    color: white;
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--blog-card-shadow);
}

.no-posts i {
    color: var(--blog-text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts h3 {
    color: var(--blog-text-dark);
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--blog-text-light);
}

@media (max-width: 768px) {
    .categories-ovals {
        padding: 15px 0;
    }
    
    .category-oval {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card-featured-link {
        flex-direction: column !important;
    }
    
    .post-card-featured-image-link {
        width: 100%;
        margin: 10px;
    }
    
    .post-card-featured-image {
        width: 100%;
        height: 250px;
    }
    
    .post-card-featured-content {
        padding: 20px;
        flex-direction: column !important;
    }
    
    .post-card-featured-title {
        font-size: 1.5rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-card-image {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .posts-grid-row-wrapper {
        padding: 0 15px;
    }
    
    .posts-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-grid-image {
        height: 180px;
    }
    
    .post-card-grid-content {
        padding: 15px;
    }
    
    .post-card-grid-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .posts-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Стили для страницы просмотра статьи */
.blog-breadcrumb {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.blog-breadcrumb .breadcrumb-item a {
    color: #5b9bd5;
    text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #5b9bd5;
    text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #383a3f;
}

.blog-post-container {
    padding: 0.5rem 0 2rem 0;
}

.blog-post-wrapper {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.blog-post-content {
    max-width: 800px !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.post-featured-image img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для блоков кода в стиле PyCharm */
.post-content pre {
    background: #2b2b2b !important;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #5b9bd5;
}

.post-content pre code {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
    display: block;
    overflow-x: auto;
    /* Не переопределяем цвет - пусть highlight.js сам управляет */
}

.post-content code:not(pre code) {
    background: #f4f4f4;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Стили highlight.js - не переопределяем, только базовые настройки */
.post-content pre.hljs {
    background: #2b2b2b !important;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #5b9bd5;
}

.post-content pre code.hljs {
    background: transparent !important;
    padding: 0;
    /* Переопределяем стили из _rfs.scss для самого code */
    font-size: inherit !important;
    word-break: normal !important;
    /* НЕ задаем color здесь - пусть highlight.js управляет через дочерние элементы */
}

/* Специфичные стили для всех классов highlight.js - переопределяем _rfs.scss */
.post-content pre code.hljs,
.post-content pre code.hljs *,
.post-content .hljs,
.post-content .hljs * {
    font-size: inherit !important;
    word-break: normal !important;
}

/* Базовый цвет для hljs - переопределяем _rfs.scss */
.post-content .hljs {
    color: #a9b7c6 !important; /* базовый цвет текста в darcula */
}

/* Специфичные стили для классов highlight.js - цвета из темы darcula */
.post-content .hljs-keyword,
.post-content .hljs-selector-tag,
.post-content .hljs-literal,
.post-content .hljs-section,
.post-content .hljs-link {
    color: #cc7832 !important; /* оранжевый для ключевых слов */
}

.post-content .hljs-string,
.post-content .hljs-title,
.post-content .hljs-name,
.post-content .hljs-type,
.post-content .hljs-attribute,
.post-content .hljs-symbol,
.post-content .hljs-bullet,
.post-content .hljs-addition,
.post-content .hljs-variable,
.post-content .hljs-template-tag,
.post-content .hljs-template-variable {
    color: #6a8759 !important; /* зеленый для строк */
}

.post-content .hljs-comment,
.post-content .hljs-quote,
.post-content .hljs-deletion,
.post-content .hljs-meta {
    color: #808080 !important; /* серый для комментариев */
    font-style: italic !important;
}

.post-content .hljs-number,
.post-content .hljs-regexp,
.post-content .hljs-selector-attr,
.post-content .hljs-selector-pseudo {
    color: #6897bb !important; /* голубой для чисел */
}

.post-content .hljs-function,
.post-content .hljs-title.function_,
.post-content .hljs-built_in {
    color: #ffc66d !important; /* желтый для функций */
}

.post-content .hljs-operator,
.post-content .hljs-punctuation {
    color: #a9b7c6 !important; /* светлый для операторов */
}

.post-content .hljs-property,
.post-content .hljs-attr {
    color: #9876aa !important; /* фиолетовый для свойств */
}

.post-content .hljs-class,
.post-content .hljs-title.class_ {
    color: #ffc66d !important; /* желтый для классов */
}

.post-content .hljs-params {
    color: #a9b7c6 !important; /* светлый для параметров */
}

/* Стили для кнопок в блоге - одинаковые обводка (1px) и тень */
.post-actions .btn-outline-danger,
.post-actions .btn-outline-primary {
    border-width: 1px !important;
    -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.post-actions .btn-outline-danger:hover,
.post-actions .btn-outline-primary:hover {
    border-width: 1px !important;
}

/* Общие стили для всех кнопок outline */
.btn-outline-danger,
.btn-outline-primary {
    border-width: 1px !important;
}

.btn-outline-danger:hover,
.btn-outline-primary:hover {
    border-width: 1px !important;
}

/* Стили для отключенной кнопки лайка */
#like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Убеждаемся, что все стили highlight.js применяются */
.post-content .hljs {
    display: block;
    overflow-x: auto;
}

/* Важно: не переопределяем стили highlight.js для дочерних элементов */
.post-content .hljs-keyword,
.post-content .hljs-string,
.post-content .hljs-comment,
.post-content .hljs-number,
.post-content .hljs-function,
.post-content .hljs-built_in,
.post-content .hljs-title,
.post-content .hljs-params,
.post-content .hljs-operator,
.post-content .hljs-punctuation {
    /* Позволяем highlight.js и теме darcula управлять всеми цветами */
    /* Не задаем color здесь */
}

.blog-post-sidebar {
    padding: 2rem 0;
    background: #f8f9fa;
}

.blog-post-sidebar .blog-post-wrapper {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.blog-post-sidebar .blog-post-content {
    max-width: 800px !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

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

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
