/* ================================================
   WisualIT Blog Detail - Dedicated Stylesheet
   ================================================ */

/* ---- Blog Hero Header ---- */
.blog-hero-header {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.3s ease;
}

.blog-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(15, 23, 42, 0.85) 60%,
        rgba(15, 23, 42, 0.98) 100%
    );
}

/* Breadcrumb in hero */
.blog-breadcrumb .breadcrumb-item a {
    color: var(--accent);
    font-size: 14px;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
}

/* Category Badge in hero */
.blog-hero-category {
    margin-bottom: 20px;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.cat-badge:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Title */
.blog-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 32px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Hero Meta */
.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.blog-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-meta-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.author-name {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.author-role {
    display: block;
    color: var(--accent);
    font-size: 12px;
}

.blog-meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-meta-info span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-info span i {
    color: var(--accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce-slow 2s infinite;
}

.scroll-mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ---- Reading Progress Bar ---- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---- Article Lead ---- */
.article-lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--dark-3);
    border-left: 4px solid var(--accent);
    padding-left: 24px;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ---- Table of Contents ---- */
.toc-box {
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.toc-header i {
    font-size: 20px;
    color: var(--accent);
}

.toc-header h5 {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
}

.toc-toggle {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text);
    border-radius: 4px;
    transition: var(--transition);
}

.toc-toggle:hover {
    background: var(--light-3);
}

.toc-toggle.collapsed i {
    transform: rotate(180deg);
}

.toc-list ol {
    margin: 0;
    padding-left: 20px;
}

.toc-list ol li {
    margin-bottom: 8px;
}

.toc-list ol ol {
    margin-top: 6px;
}

.toc-list a {
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.toc-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

/* ---- Article Sections ---- */
.article-section {
    margin-bottom: 48px;
}

.blog-article h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-3);
    color: var(--dark);
    position: relative;
}

.blog-article h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient);
}

.blog-article h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--dark);
}

.blog-article p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 20px;
}

.blog-article mark {
    background: rgba(6, 182, 212, 0.2);
    color: var(--dark);
    padding: 2px 4px;
    border-radius: 3px;
}

/* ---- Info Boxes ---- */
.info-box {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 28px 0;
    border: 1px solid;
}

.info-box-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box-content h6 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-box-content p {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Primary Info Box */
.info-primary {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.info-primary .info-box-icon { color: #3b82f6; }
.info-primary .info-box-content h6 { color: #1d4ed8; }

/* Warning Info Box */
.info-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-warning .info-box-icon { color: #f59e0b; }
.info-warning .info-box-content h6 { color: #b45309; }

/* Success Info Box */
.info-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.info-success .info-box-icon { color: #10b981; }
.info-success .info-box-content h6 { color: #065f46; }

/* Danger Info Box */
.info-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.info-danger .info-box-icon { color: #ef4444; }
.info-danger .info-box-content h6 { color: #991b1b; }

/* ---- Article Figure ---- */
.article-figure {
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-figure img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.5s ease;
}

.article-figure:hover img {
    transform: scale(1.02);
}

.article-figure figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---- Icon List ---- */
.article-icon-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.article-icon-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.7;
}

.icon-bullet {
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- Blockquote ---- */
.article-blockquote {
    background: var(--dark);
    color: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.article-blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.blockquote-icon {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.article-blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.article-blockquote footer {
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-blockquote footer img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.article-blockquote footer cite {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    font-style: normal;
}

.article-blockquote footer span {
    color: var(--accent);
    font-size: 13px;
}

/* ---- Code Block ---- */
.code-block-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 28px 0;
    box-shadow: var(--shadow-lg);
}

.code-block-header {
    background: #1a1a2e;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-lang {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-code-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-code-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.code-block-wrapper pre {
    margin: 0;
    border-radius: 0;
}

.code-block-wrapper code {
    font-size: 14px;
    font-family: 'Fira Code', 'Courier New', monospace;
    line-height: 1.7;
}

/* ---- Article Stats Grid ---- */
.article-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.article-stat-card {
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.article-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.article-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--white);
}

.article-stat-card h3 {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.article-stat-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* ---- Article Table ---- */
.article-table-wrapper {
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-table {
    margin: 0;
    font-size: 14px;
}

.article-table thead th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.article-table tbody td {
    padding: 14px 16px;
    border-color: var(--light-3);
    vertical-align: middle;
}

.article-table tbody tr:hover {
    background: var(--light);
}

.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.risk-critical {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.3);
}

.risk-high {
    background: rgba(245,158,11,0.1);
    color: #b45309;
    border: 1px solid rgba(245,158,11,0.3);
}

.risk-limited {
    background: rgba(6,182,212,0.1);
    color: #0e7490;
    border: 1px solid rgba(6,182,212,0.3);
}

.risk-minimal {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.3);
}

/* ---- Article Steps ---- */
.article-steps {
    position: relative;
    margin: 28px 0;
}

.article-step {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

.article-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 52px;
    width: 2px;
    height: calc(100% + 2px);
    background: var(--light-3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-accent);
}

.step-content {
    flex: 1;
    background: var(--light);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--light-3);
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* ---- Case Study Cards ---- */
.case-study-card {
    display: flex;
    gap: 20px;
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
    align-items: flex-start;
}

.case-study-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.case-study-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    flex-shrink: 0;
}

.case-study-content {
    flex: 1;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.case-study-header h5 {
    font-size: 1.05rem;
    margin: 0;
}

.case-study-badge {
    background: rgba(6,182,212,0.1);
    color: var(--accent);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.case-study-content p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.7;
}

.case-study-results {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

/* ---- Article Tags ---- */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--light-3);
    border-bottom: 1px solid var(--light-3);
    margin: 40px 0;
}

.article-tags span {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.article-tags span i {
    color: var(--accent);
}

.article-tags a {
    padding: 6px 16px;
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ---- Share Buttons ---- */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.share-label i {
    color: var(--accent);
    font-size: 18px;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.share-facebook {
    background: #1877f2;
    color: white;
}
.share-facebook:hover { background: #1558b0; color: white; }

.share-twitter {
    background: #000;
    color: white;
}
.share-twitter:hover { background: #333; color: white; }

.share-linkedin {
    background: #0a66c2;
    color: white;
}
.share-linkedin:hover { background: #084e96; color: white; }

.share-whatsapp {
    background: #25d366;
    color: white;
}
.share-whatsapp:hover { background: #1ead52; color: white; }

.share-copy {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--light-3);
}
.share-copy:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ---- Author Bio ---- */
.author-bio-card {
    display: flex;
    gap: 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--light-3);
    margin-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

.author-bio-avatar {
    position: relative;
    flex-shrink: 0;
}

.author-bio-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.author-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: var(--accent);
    font-size: 18px;
    background: var(--white);
    border-radius: 50%;
    line-height: 1;
}

.author-bio-content {
    flex: 1;
}

.author-bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.author-bio-header h5 {
    font-size: 1.2rem;
    margin: 0 0 2px 0;
}

.author-bio-role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.author-social-links {
    display: flex;
    gap: 8px;
}

.author-social-links a {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--light-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.author-social-links a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.author-bio-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.btn-view-posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-view-posts:hover {
    color: var(--primary);
    gap: 10px;
}

/* ---- Post Navigation ---- */
.post-navigation {
    display: flex;
    gap: 0;
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--light-3);
    margin-bottom: 60px;
}

.post-nav-item {
    flex: 1;
    padding: 20px 24px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-nav-item:hover {
    background: rgba(6, 182, 212, 0.05);
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
    border-left: 1px solid var(--light-3);
}

.post-nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-next .post-nav-direction {
    justify-content: flex-end;
}

.post-nav-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-nav-next .post-nav-info {
    flex-direction: row-reverse;
}

.post-nav-info img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.post-nav-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
    transition: var(--transition);
}

.post-nav-item:hover .post-nav-info h6 {
    color: var(--accent);
}

.post-nav-divider {
    width: 0;
}

/* ---- Comments Section ---- */
.comments-section {
    border-top: 2px solid var(--light-3);
    padding-top: 48px;
}

.comments-header {
    margin-bottom: 32px;
}

.comments-header h4 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-header h4 i {
    color: var(--accent);
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* ---- Comment Items ---- */
.comment-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.comment-reply {
    margin-left: 40px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--light-3);
}

.comment-avatar {
    position: relative;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-3);
}

.author-reply-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    color: var(--accent);
    font-size: 14px;
    background: var(--white);
    border-radius: 50%;
}

.comment-body {
    flex: 1;
    background: var(--light);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--light-3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid transparent;
}

.comment-like-btn:hover,
.comment-like-btn.liked {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.05);
}

.comment-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.comment-reply-btn:hover {
    color: var(--primary);
}

.comment-replies {
    margin-top: 4px;
}

.load-more-comments {
    margin: 32px 0;
}

/* ---- Comment Form ---- */
.comment-form-section {
    margin-top: 48px;
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--light-3);
}

.comment-form-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-title i {
    color: var(--accent);
}

.comment-form-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.comment-form .form-control,
.comment-form .form-select {
    border: 1px solid var(--light-3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    background: var(--white);
    transition: var(--transition);
}

.comment-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.char-counter {
    font-size: 12px;
    color: var(--text-light);
}

.comment-save-check .form-check-label {
    font-size: 14px;
    color: var(--text);
}

.comment-submit-btn {
    min-width: 180px;
}

/* Reply Form (inline) */
.inline-reply-form {
    margin-top: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-3);
}

/* ---- Sidebar Widgets ---- */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-3);
}

.sidebar-widget h5 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Search Sidebar */
.sidebar-search .search-input-wrapper {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--light-3);
}

.sidebar-search .form-control {
    border: none;
    border-radius: 0;
    font-size: 14px;
}

.sidebar-search .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-submit-btn {
    background: var(--gradient);
    border: none;
    color: var(--white);
    padding: 0 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.search-submit-btn:hover {
    opacity: 0.85;
}

/* Author Sidebar */
.sidebar-author-card {
    text-align: center;
}

.sidebar-author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 12px;
}

.sidebar-author-card h6 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.sidebar-author-card span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.sidebar-author-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}

.sidebar-author-social {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sidebar-author-social a {
    width: 34px;
    height: 34px;
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
}

.sidebar-author-social a:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Related Posts Sidebar */
.related-post-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
    align-items: center;
}

.related-post-item:hover {
    background: var(--light);
}

.related-post-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.related-post-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.4;
    transition: var(--transition);
}

.related-post-item:hover .related-post-content h6 {
    color: var(--accent);
}

.related-post-content span {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Categories Sidebar */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li {
    border-bottom: 1px solid var(--light-3);
}

.sidebar-cat-list li:last-child {
    border: none;
}

.sidebar-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-cat-list a:hover {
    padding-left: 8px;
}

.cat-icon {
    width: 32px;
    height: 32px;
    background: rgba(6,182,212,0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition);
}

.sidebar-cat-list a:hover .cat-icon {
    background: var(--accent);
    color: var(--white);
}

.cat-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-cat-list a:hover .cat-name {
    color: var(--accent);
}

.cat-count {
    background: var(--light-3);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 5px 14px;
    background: var(--light);
    border: 1px solid var(--light-3);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.tags-cloud a:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Newsletter Sidebar */
.sidebar-newsletter {
    background: linear-gradient(135deg, var(--dark), var(--dark-2)) !important;
    text-align: center;
    border: none !important;
}

.newsletter-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 12px;
}

.sidebar-newsletter h5 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.2) !important;
}

.sidebar-newsletter p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form .input-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 14px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    box-shadow: none;
    color: var(--white);
}

.newsletter-form small {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    display: block;
    margin-top: 8px;
}

/* CTA Widget */
.sidebar-cta-widget {
    background: var(--gradient) !important;
    text-align: center;
    border: none !important;
    overflow: hidden;
    position: relative;
}

.sidebar-cta-widget::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-widget-icon {
    font-size: 40px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.sidebar-cta-widget h5 {
    color: var(--white);
    font-size: 1.1rem;
    border-bottom: none !important;
    margin-bottom: 8px;
    padding-bottom: 0;
    display: block;
}

.sidebar-cta-widget p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Related Posts Swiper */
.relatedPostsSwiper .swiper-button-next,
.relatedPostsSwiper .swiper-button-prev {
    color: var(--accent);
    background: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.relatedPostsSwiper .swiper-button-next::after,
.relatedPostsSwiper .swiper-button-prev::after {
    font-size: 16px;
}

.relatedPostsSwiper .swiper-pagination-bullet {
    background: var(--light-3);
    opacity: 1;
}

.relatedPostsSwiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 24px;
    border-radius: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .blog-hero-title { font-size: 2rem; }
    .blog-hero-header { min-height: 60vh; padding-bottom: 60px; }
    .blog-hero-meta { flex-direction: column; gap: 16px; }
    .blog-meta-divider { display: none; }
    .author-bio-card { flex-direction: column; align-items: center; text-align: center; }
    .author-bio-header { flex-direction: column; align-items: center; }
    .post-navigation { flex-direction: column; }
    .post-nav-next { border-left: none; border-top: 1px solid var(--light-3); text-align: left; align-items: flex-start; }
    .post-nav-next .post-nav-direction { justify-content: flex-start; }
    .post-nav-next .post-nav-info { flex-direction: row; }
    .blog-sidebar { position: static; }
    .article-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .blog-hero-title { font-size: 1.6rem; }
    .blog-hero-header { min-height: 55vh; }
    .article-lead { font-size: 1rem; }
    .blog-article h2 { font-size: 1.4rem; }
    .blog-article h3 { font-size: 1.2rem; }
    .article-stats-grid { grid-template-columns: 1fr 1fr; }
    .share-buttons { gap: 6px; }
    .share-btn { padding: 7px 12px; font-size: 12px; }
    .case-study-card { flex-direction: column; }
    .comment-form-section { padding: 20px; }
    .article-step { gap: 12px; }
    .step-content { padding: 14px; }
    .article-blockquote { padding: 24px; }
    .article-blockquote p { font-size: 1rem; }
}

@media (max-width: 575px) {
    .blog-hero-meta { gap: 10px; }
    .blog-meta-info { gap: 10px; }
    .blog-meta-info span { font-size: 12px; }
    .article-stats-grid { grid-template-columns: 1fr; }
    .post-navigation { display: block; }
    .post-nav-next { border-top: 1px solid var(--light-3); border-left: none; }
}