/* ========== BLOG STYLES - FROM SCRATCH BASED ON SEARCH PAGE ========== */

@font-face {
    font-family: Stapel;
    font-style: normal;
    font-weight: 700;
    src: url(/selene-static/spa/f5d62647aa878849.woff2) format("woff2");
    font-display: swap;
}

:root {
    --brand_primary_500: #0c73fe;
    --white: #ffffff;
    --ink_800: #1a1a1a;
    --general-text-color: #0c131d;
    --page-header-color: #0c73fe;
    --text-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========== RESET & OVERRIDE SITE.CSS ========== */
body {
    font-family: "Stapel", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f2f4f5;
    color: var(--general-text-color);
    font-size: 100%;
    line-height: 1.75;
}

main.flex-shrink-0 {
    background: #f2f4f5;
    padding-top: 0;
}

main > .container {
    padding: 0px 20px 20px;
    max-width: 1280px;
}

/* ========== PAGE CONTENT ========== */
.page-content {
    background: #f2f4f5;
    min-height: 50vh;
    padding-top: 20px;
}

/* ========== BLOG INDEX PAGE ========== */
.blog-index {
    background: #f2f4f5;
    padding: 0px 0;
}

.blog-index .text-center {
    margin-bottom: 2rem;
}

.blog-index h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--general-text-color);
}

.blog-index .lead {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ========== CATEGORY FILTER ========== */
/* ========== BLOG LAYOUT ========== */
.blog-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.blog-main-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    flex-shrink: 0;
    width: 240px;
    position: sticky;
    top: 20px;
}

.blog-right-sidebar {
    flex-shrink: 0;
    width: 280px;
    position: sticky;
    top: 20px;
}

.blog-right-sidebar .sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.blog-right-sidebar .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-right-sidebar .card-title i {
    color: var(--brand_primary_500);
}

.blog-right-sidebar .card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-right-sidebar .btn-add-service {
    width: 100%;
    text-align: center;
    display: block;
}

.author-card p {
    margin-bottom: 16px;
}

.popular-articles-card .card-title {
    margin-bottom: 12px;
}

.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn-vertical {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.share-btn-vertical i {
    font-size: 18px;
}

.share-btn-vertical.facebook {
    background: #1877f2;
}

.share-btn-vertical.facebook:hover {
    background: #145dbf;
}

.share-btn-vertical.twitter {
    background: #1da1f2;
}

.share-btn-vertical.twitter:hover {
    background: #0d8bd9;
}

.share-btn-vertical.telegram {
    background: #0088cc;
}

.share-btn-vertical.telegram:hover {
    background: #006da8;
}

.sidebar-widget {
    /* background: white; */
    border-radius: 12px;
    /* padding: 20px; */
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-item i {
    font-size: 16px;
    color: #999;
}

.category-item:hover {
    background: var(--brand_primary_500);
    color: #0b73fe;
}

.category-item:hover i {
    color: white;
}

.category-item.active {
    background: #dedede;
    color: #000000;
    font-weight: 800;
}

.category-item.active i {
    color: #000000;
}

@media (max-width: 992px) {
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
        position: static;
    }

    .blog-right-sidebar {
        width: 100%;
        position: static;
    }
    
    .categories-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .blog-article-layout {
        flex-direction: column;
    }

    .blog-article-layout .blog-sidebar {
        width: 100%;
        position: static;
    }

    .blog-article-layout .blog-right-sidebar {
        width: 100%;
        position: static;
    }
}

/* ========== BLOG CATEGORIES FILTER (OLD - REMOVE IF NOT USED) ========== */
.blog-categories-filter {
    display: none;
}

/* ========== ARTICLE CARDS ========== */
.blog-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-image {
    flex-shrink: 0;
    /* width: 280px; */
    /* height: 200px; */
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.article-content-preview {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.article-category-tag {
    margin-bottom: 8px;
}

.category-link {
    display: inline-block;
    /* padding: 4px 12px; */
    /* background: #f0f0f0; */
    color: #666;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.category-link:hover {
    background: var(--brand_primary_500);
    color: white;
}

.article-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.article-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover {
    color: var(--brand_primary_500);
}

.article-excerpt-text {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    /* margin: 0 0 auto 0; */
}

.article-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 16px; */
    /* padding-top: 16px; */
    /* border-top: 1px solid #e8e8e8; */
}

.article-meta-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

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

.article-meta-info i {
    font-size: 14px;
}

.read-more-link {
    color: var(--brand_primary_500);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.read-more-link:hover {
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .article-meta-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: none;
}

.blog-index .btn-sm:hover,
.blog-index .btn.btn-sm:hover,
.blog-index a.btn-sm:hover {
    background: #e86624;
    color: white;
    transform: translateX(3px);
}

/* ========== BREADCRUMBS ========== */
.breadcrumb {
    background: transparent;
    padding: 12px 0px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    font-size: 13px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #999;
    padding: 0 8px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--brand_primary_500);
}

.breadcrumb-item.active {
    color: var(--general-text-color);
    font-weight: 500;
}

/* ========== PAGINATION ========== */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    padding: 8px 16px;
    margin: 0 4px;
    color: var(--general-text-color);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.pagination .page-link:hover {
    background: var(--brand_primary_500);
    color: white;
    border-color: var(--brand_primary_500);
}

.pagination .page-item.active .page-link {
    background: var(--brand_primary_500);
    color: white;
    border-color: var(--brand_primary_500);
}

/* ========== BLOG ARTICLE VIEW PAGE ========== */
.blog-article-page {
    background: #f2f4f5;
    padding: 0px 0;
}

.blog-article-page .container {
    max-width: 1280px;
}

.blog-article-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-article-main {
    flex: 1;
    min-width: 0;
}

article.blog-article {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--brand_primary_500);
    z-index: 9999;
}

/* ========== ARTICLE HEADER ========== */
.article-header {
    /* background: white; */
    /* padding: 15px 20px; */
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

.article-category {
    margin-bottom: 1rem;
}

.article-category .badge-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--brand_primary_500);
    color: white;
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
}

.article-category .badge-category:hover {
    background: #0b65d9;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 5px 0 10px;
    line-height: 1.4;
}

/* ========== ARTICLE META & SHARE COMBINED ========== */
.article-meta-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    /* padding: 16px 20px; */
    /* background: white; */
    /* border-radius: 12px; */
    /* margin-bottom: 1.5rem; */
    /* border: 1px solid #e8e8e8; */
}

.article-meta-share .meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.meta-item i {
    color: #999;
    font-size: 14px;
}

/* ========== SOCIAL SHARE ========== */
.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
    border: none;
}

.share-label {
    font-weight: 400;
    font-size: 13px;
    color: #666;
    margin-right: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #0088cc; }
.share-copy { background: #6c757d; }

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

/* ========== ARTICLE IMAGE ========== */
.article-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* ========== ARTICLE EXCERPT ========== */
.article-excerpt {
    /* padding: 20px 20px 20px 24px; */
    /* margin: 1.5rem 0; */
    /* background: #f8f9fa; */
    /* border-left: 3px solid var(--brand_primary_500); */
    /* border-radius: 0; */
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
    margin: 1rem 0;
}

.article-excerpt i {
    display: none;
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
    /* background: white; */
    /* padding: 15px 20px; */
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 2rem;
    border-radius: 12px;
}

/* Параграфи */
.article-content p {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Заголовки */
.article-content h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.5rem 0 0.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
}

/* Списки */
.article-content ul,
.article-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    position: relative;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    line-height: 1.7;
}

.article-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand_primary_500);
    font-weight: bold;
    font-size: 1.2em;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    line-height: 1.7;
    counter-increment: item;
}

.article-content ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--brand_primary_500);
    font-weight: 600;
}

/* Виділення тексту */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.article-content em,
.article-content i {
    font-style: italic;
}

/* Цитати */
.article-content blockquote {
    margin: 1rem 0;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    /* border-left: 3px solid var(--brand_primary_500); */
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Посилання */
.article-content a {
    color: var(--brand_primary_500);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.article-content a:hover {
    border-bottom-color: var(--brand_primary_500);
}

/* Код */
.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #2c3e50;
}

/* Зображення */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Таблиці */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content table th,
.article-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.article-content table th {
    font-weight: 600;
    background: #f8f9fa;
    color: #1a1a1a;
}

/* Горизонтальна лінія */
.article-content hr {
    border: none;
    height: 1px;
    background: #e8e8e8;
    margin: 3rem 0;
}

/* ========== ARTICLE FOOTER ========== */
.article-footer {
    margin-top: 3rem;
    background: white;
    border-radius: 12px;
}

.article-tags {
    margin-bottom: 1.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: var(--general-text-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 8px;
}

.tag-link:hover {
    background: var(--brand_primary_500);
    color: white;
    border-color: var(--brand_primary_500);
}

/* ========== ARTICLE NAVIGATION ========== */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 2rem 0;
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.nav-article {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    max-width: 48%;
}

.nav-article:hover {
    background: var(--brand_primary_500);
    transform: translateY(-2px);
}

.nav-article.prev-article {
    align-items: flex-start;
}

.nav-article.next-article {
    align-items: flex-end;
    text-align: right;
}

.nav-article .nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-article:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-article .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--general-text-color);
    line-height: 1.4;
}

.nav-article:hover .nav-title {
    color: white;
}

.nav-article-placeholder {
    flex: 1;
    max-width: 48%;
}

@media (max-width: 768px) {
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-article,
    .nav-article-placeholder {
        max-width: 100%;
    }
    
    .nav-article.next-article {
        align-items: flex-start;
        text-align: left;
    }
}

.back-to-blog {
    margin-top: 2rem;
    text-align: center;
}

.back-to-blog .btn,
.back-to-blog a.btn {
    padding: 8px 16px;
    background: var(--brand_primary_500);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-blog .btn:hover,
.back-to-blog a.btn:hover {
    background: #0b65d9;
    color: white;
}

/* ========== SIDEBAR ========== */
.article-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

.sidebar-card .card-title,
.sidebar-card h3.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--general-text-color);
    margin-bottom: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card .card-title i {
    font-size: 18px;
    color: var(--brand_primary_500);
}

.sidebar-card .card-text,
.sidebar-card p.card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 0;
}

.sidebar-card .btn,
.sidebar-card a.btn {
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    background: #fa742d;
    border: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.sidebar-card .btn:hover,
.sidebar-card a.btn:hover {
    background: #e86624;
    color: white;
    opacity: 0.9;
}

/* Filter sections in sidebar */
.sidebar-card .filter-section {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sidebar-card .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 16px;
}

.sidebar-card .filter-section:first-child {
    padding-top: 8px;
}

.sidebar-card .filter-title,
.sidebar-card h3.card-title {
    font-family: var(--text-font-family, inherit);
    font-weight: 600;
    font-size: 13px;
    line-height: 17px;
    margin-bottom: 8px;
    margin-left: 10px;
}

/* Action links */
.action-links {
    display: flex;
    flex-direction: column;
}

.action-link,
.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    min-height: 36px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--general-text-color);
    margin-bottom: 0;
}

.action-link span,
.category-item {
    font-family: var(--text-font-family, inherit);
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
}

.action-link:hover,
.category-item:hover {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.category-item.active {
    background: #dedede;
    color: #000000;
    font-weight: 800;
}

.action-link i {
    font-size: 20px;
}

/* Categories list */
.categories-list {
    display: flex;
    flex-direction: column;
}

/* Related Articles Reddit Style */
.related-articles-card {
    margin-bottom: 20px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-article-item {
    display: block;
    padding: 12px;
    background: #ffffff;
    /* border: 1px solid #edeff1; */
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-article-item:hover {
    background: #ffffff;
    border-color: #898989;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-article-header {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #7c7c7c;
    margin-bottom: 6px;
}

.related-subreddit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.related-subreddit i {
    font-size: 12px;
}

.related-time {
    font-weight: 400;
}

.related-article-title {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1c;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #7c7c7c;
    font-weight: 600;
}

.related-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-stat i {
    font-size: 14px;
}

/* Orange gradient button */
.btn-add-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    height: 48px;
    background-color: #fa742d;
    background-image: linear-gradient(to top, #e8651a 0%, #fa742d 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: inset 0px 1px 0px #ff9a5e, 0px 4px 0px 0px #c5541a, 0px 8px 5px rgba(0, 0, 0, 0.2);
}

.btn-add-service:hover {
    transform: translateY(2px);
    box-shadow: inset 0px 1px 0px #ff9a5e, 0px 2px 0px 0px #c5541a, 0px 4px 3px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.btn-add-service:active {
    transform: translateY(4px);
    box-shadow: inset 0px 1px 0px #ff9a5e, 0px 0px 0px 0px #c5541a, 0px 2px 2px rgba(0, 0, 0, 0.1);
}

/* Share buttons vertical */
.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

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

.share-btn-vertical.facebook { background: #1877f2; }
.share-btn-vertical.twitter { background: #1da1f2; }
.share-btn-vertical.telegram { background: #0088cc; }

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--brand_primary_500);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0b65d9;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .article-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-index h1 {
        font-size: 1.75rem;
    }
    
    .article-meta-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-meta-share .meta-items {
        width: 100%;
    }
    
    .article-meta-share .article-share {
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid #e8e8e8;
    }
}

/* ========== COMMENTS SECTION ========== */
.article-comments {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-title i {
    display: none;
}

.comments-count {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

/* Comment Form */
.comment-form {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 60px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-form textarea.form-control:focus {
    border-color: var(--brand_primary_500);
    box-shadow: none;
    outline: none;
}

.comment-form .btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
}

.comment-login-notice {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-login-notice i {
    font-size: 16px;
    color: var(--brand_primary_500);
}

.comment-login-notice a {
    color: var(--brand_primary_500);
    text-decoration: none;
    font-weight: 500;
}

.comment-login-notice a:hover {
    text-decoration: underline;
}
    color: #ffc107;
}

.comment-login-notice a {
    color: #0b73fe;
    font-weight: 600;
    text-decoration: none;
}

.comment-login-notice a:hover {
    text-decoration: underline;
}

/* Comment Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.comment-form-title {
    display: none;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form .form-group {
    margin-bottom: 0;
}

.comment-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-form .form-control:focus {
    border-color: var(--brand_primary_500);
    outline: none;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.comment-form textarea.form-control:focus {
    border-color: var(--brand_primary_500);
    box-shadow: none;
}

.comment-form .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
}
    gap: 8px;
}

/* Comments List */
.comments-list {
    margin-top: 2rem;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar i {
    font-size: 48px;
    color: #999;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #1c1c1c;
    font-size: 14px;
}

.comment-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-text {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

/* Comment Actions */
.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-reply {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.2s;
}

.btn-reply:hover {
    color: var(--brand_primary_500);
}

.btn-reply i {
    display: none;
}

/* Nested Replies */
.comment-replies {
    margin-top: 1.5rem;
    padding-left: 30px;
    border-left: 2px solid #e8e8e8;
}

.comment-reply {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-reply:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-reply .comment-avatar i {
    font-size: 36px;
}

/* Reply Form */
.reply-form-container {
    margin-top: 1rem;
}

.comment-reply-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
}

.reply-form-title {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 12px;
}

.reply-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    resize: vertical;
}

.reply-form .form-control:focus {
    border-color: #0b73fe;
    outline: none;
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reply-form-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cancel-reply {
    background: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-cancel-reply:hover {
    background: #5a6268;
}

.reply-message {
    margin-bottom: 10px;
}

.no-comments {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #999;
}

.no-comments i {
    display: none;
}

.no-comments p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comment-avatar i {
        font-size: 36px;
    }
    
    .comment-item {
        gap: 10px;
    }
}

/* ========== REDDIT-STYLE CARDS ========== */
.reddit-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reddit-card {
    display: flex;
    background: white;
    /* border: 1px solid #ccc; */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
    align-items: center;
}

.reddit-card:hover {
    border-color: #898989;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Left votes section */
.reddit-votes {
    flex-shrink: 0;
    width: 48px;
    /* background: #f8f9fa; */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vote-btn {
    background: none;
    border: none;
    color: #878a8c;
    font-size: 20px;
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s;
}

.vote-btn:hover.vote-up {
    color: #ff4500;
}

.vote-btn:hover.vote-down {
    color: #7193ff;
}

.vote-count {
    font-size: 12px;
    font-weight: 700;
    color: #1c1c1c;
}

/* Middle content section */
.reddit-content {
    flex: 1;
    padding: 12px 6px;
    min-width: 0;
}

.reddit-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #787c7e;
    flex-wrap: wrap;
}

.reddit-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reddit-category .category-link {
    /* color: #1c1c1c; */
    text-decoration: none;
    /* font-weight: 700; */
    font-size: 12px;
    transition: color 0.2s;
}

.reddit-category .category-link:hover {
    color: var(--brand_primary_500);
}

.reddit-category i {
    font-size: 14px;
    color: #787c7e;
}

.reddit-dot {
    color: #787c7e;
}

.reddit-date {
    color: #787c7e;
}

.reddit-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.reddit-title a {
    color: #1c1c1c;
    text-decoration: none;
    transition: color 0.1s;
}

.reddit-title a:hover {
    color: var(--brand_primary_500);
}

.reddit-excerpt {
    color: #7c7c7c;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reddit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reddit-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: #878a8c;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.reddit-action-btn:hover {
    background: #f6f7f8;
    color: #1c1c1c;
}

.reddit-action-btn i {
    font-size: 16px;
}

/* Right thumbnail section */
.reddit-thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f8;
    border-left: 1px solid #edeff1;
    margin: 8px 8px 8px 0;
    border-radius: 4px;
    overflow: hidden;
}

.reddit-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.reddit-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reddit-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f8ff 0%, #eaeaea 100%);
}

.reddit-placeholder i {
    font-size: 48px;
    color: rgb(156 156 156 / 50%);
}

/* Responsive Reddit cards */
@media (max-width: 768px) {
    .reddit-card {
        flex-direction: row;
    }
    
    .reddit-votes {
        width: 40px;
        padding-top: 8px;
    }
    
    .vote-btn {
        font-size: 18px;
    }
    
    .reddit-content {
        padding: 8px 12px;
    }
    
    .reddit-title {
        font-size: 16px;
    }
    
    .reddit-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .reddit-thumbnail {
        width: 96px;
        height: 96px;
        margin: 4px;
    }
    
    .reddit-placeholder i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .reddit-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .reddit-title {
        font-size: 15px;
    }
    
    .reddit-actions {
        gap: 4px;
    }
    
    .reddit-action-btn {
        padding: 3px 6px;
        font-size: 11px;
    }
}
