﻿/*
 * Blog archive and single article styles rebuilt from the approved
 * design reference and adapted to the plugin token system.
 */

.blog-layout,
.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2.5rem;
}

body.rtl .blog-layout,
body.rtl .blog-single-layout {
    display: flex !important;
    flex-direction: row !important; /* Normal row in RTL means First on Right */
    gap: 2.5rem;
}

body.rtl .blog-sidebar {
    width: 350px;
    flex-shrink: 0;
    order: 1 !important;
    position: sticky;
    top: 120px; /* Matches sticky header + margin */
    height: fit-content;
}

body.rtl .blog-content,
body.rtl .blog-single,
body.rtl .blog-main {
    flex: 1;
    min-width: 0;
    order: 2 !important; /* Force Content to be SECOND (on the left in RTL) */
}

/* â”€â”€ Reading Progress Bar â”€â”€ */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9999999 !important; /* Even higher index */
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: #0d9488 !important; /* Changed from red to teal */
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.4);
}

.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-tabs__btn {
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-tabs__btn:hover {
    background: #ffffff;
    border-color: var(--dch-accent);
    color: var(--dch-primary);
}

.blog-tabs__btn.active {
    background: var(--dch-primary);
    border-color: var(--dch-primary);
    color: #ffffff;
}


/* â”€â”€ Hero Banner â”€â”€ */
.blog-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--dch-shadow-card);
    margin-bottom: 2.5rem;
}

.blog-featured__image {
    position: relative;
    min-height: 350px;
    background: #eef2f7;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--blog-category-bg, var(--dch-accent));
    color: var(--blog-category-color, #ffffff);
    opacity: var(--blog-category-opacity, 1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
}

.blog-featured__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured__meta,
.blog-card__meta,
.blog-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-meta__category,
.blog-card__badge,
.blog-single__badge {
    padding: 0.25rem 0.75rem;
    background: var(--blog-category-bg, var(--dch-accent));
    color: var(--blog-category-color, #ffffff);
    opacity: var(--blog-category-opacity, 1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}

.blog-meta__date,
.blog-meta__read,
.blog-single__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--dch-text-muted);
}

.blog-featured__title {
    font-size: var(--text-2xl);
    font-weight: var(--dch-font-bold);
    color: var(--dch-primary);
    margin-bottom: 1rem;
    line-height: var(--dch-leading-tight);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-featured__title a,
.blog-card__title a {
    color: inherit;
    transition: color 0.2s ease;
}

.blog-featured__title a:hover,
.blog-card__title a:hover {
    color: var(--dch-accent);
}

.blog-featured__excerpt {
    font-size: var(--text-base);
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: var(--dch-leading-relaxed);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-featured .btn {
    border-radius: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--dch-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dch-shadow-hover);
}

.blog-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2f7;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card__body {
    padding: 1.25rem;
}

.blog-card__meta {
    justify-content: space-between;
}

.blog-card__title {
    font-size: var(--text-lg);
    font-weight: var(--dch-font-bold);
    color: var(--dch-primary);
    margin-bottom: 0.75rem;
    line-height: var(--dch-leading-snug);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: var(--text-sm);
    color: #475569;
    margin-bottom: 1rem;
    line-height: var(--dch-leading-relaxed);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dch-accent);
    transition: color 0.2s ease;
}

.blog-card__link:hover {
    color: var(--dch-primary);
}

.blog-card__link i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__link i {
    transform: translateX(4px);
}

.blog-single {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--dch-shadow-card);
}

.blog-single__content {
    font-size: var(--text-lg);
    color: #475569;
    line-height: var(--dch-leading-relaxed);
}

.blog-single__content > :first-child {
    margin-top: 0;
}

.blog-single__content > :last-child {
    margin-bottom: 0;
}

.blog-single__content h2 {
    font-size: 1.5rem;
    color: var(--dch-primary);
    margin: 2rem 0 1rem;
}

.blog-single__content h3 {
    font-size: 1.25rem;
    color: var(--dch-primary);
    margin: 1.5rem 0 0.75rem;
}

.blog-single__content p {
    margin-bottom: 1rem;
}

.blog-single__content ul,
.blog-single__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-single__content li {
    margin-bottom: 0.5rem;
}

.blog-single__content blockquote {
    border-left: 4px solid var(--dch-accent);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #eef2f7;
    border-radius: 0 16px 16px 0;
    font-style: italic;
}

.blog-single__share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.blog-single__share h4 {
    font-size: var(--text-base);
    font-weight: var(--dch-font-bold);
    color: var(--dch-primary);
    margin-bottom: 1rem;
}

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

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

.share-btn--linkedin {
    background: #0a66c2;
    color: #ffffff;
}

.share-btn--whatsapp {
    background: #25d366;
    color: #ffffff;
}

.share-btn--facebook:hover,
.share-btn--twitter:hover,
.share-btn--linkedin:hover,
.share-btn--whatsapp:hover {
    color: #ffffff;
    opacity: 0.9;
    transform: translateY(-2px);
}

.blog-single__author {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #eef2f7;
    border-radius: 24px;
    display: flex;
    gap: 1.25rem;
}

.blog-single__author-image {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-single__author-image img,
.blog-single__author-image .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.blog-single__author-info h4 {
    font-size: var(--text-lg);
    font-weight: var(--dch-font-bold);
    color: var(--dch-primary);
    margin-bottom: 0.25rem;
}

.blog-single__author-info span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--dch-accent);
}

.blog-single__author-info p {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
}

.blog-single__meta--hero {
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1rem;
}

.blog-single__meta--hero span {
    color: rgba(255, 255, 255, 0.92);
}

.blog-single__meta--hero .blog-meta__category {
    background: rgba(191, 37, 39, 0.95);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .blog-layout,
    .blog-single-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured__image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .blog-tabs {
        justify-content: center;
    }

    .blog-grid,
    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-single {
        padding: 1.5rem;
    }

    .blog-single__author {
        flex-direction: column;
        text-align: center;
    }

    .blog-single__author-image {
        margin: 0 auto;
    }
}

/* --- Sidebar Newsletter Widget --- */
.sidebar-widget--newsletter {
    background: var(--dch-primary);
    color: #ffffff;
    padding: 2rem;
}

.sidebar-widget--newsletter .sidebar-widget__title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-newsletter p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-weight: 400;
}

.sidebar-newsletter__form .form-group {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 6px;
    transition: all 0.3s ease;
}

.sidebar-newsletter__form .form-group:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-newsletter__form input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: #ffffff;
    background: transparent;
    font-family: var(--font-primary);
}

.sidebar-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-newsletter__form .btn {
    padding: 0 1.5rem;
    border-radius: 10px;
    height: 48px;
    min-width: 60px;
    background: #ffffff;
    color: var(--dch-primary);
    border: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-newsletter__form .btn:hover {
    background: var(--dch-accent);
    color: #ffffff;
    transform: translateX(-3px); /* RTL awareness */
}

/* â”€â”€ Reading Progress Bar â”€â”€ */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--dch-accent);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(191, 37, 39, 0.5);
}

/* â”€â”€ Article Content Refinement â”€â”€ */
.blog-single {
    padding: 40px !important;
    line-height: 1.8 !important;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--dch-shadow-card);
}

.blog-single__content h2 {
    margin-top: 2.5rem !important;
    border-right: 4px solid #0d9488 !important;
    padding-right: 15px;
    font-size: 1.6rem !important;
    color: var(--dch-primary);
}

/* â”€â”€ Sidebar Widget Cards â”€â”€ */
.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 24px;
}

.sidebar-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dch-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget__title i {
    color: var(--dch-accent);
}

/* â”€â”€ Sidebar Posts (Related) â”€â”€ */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-item__title {
    color: var(--dch-accent);
}

.sidebar-post-item__image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-post-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-item__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dch-primary);
    line-height: 1.4;
    margin: 0;
}

.sidebar-post-item__date {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

/* â”€â”€ Sidebar TOC (Timeline Style) â”€â”€ */
.sidebar-widget--toc {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.sidebar-widget--toc .sidebar-widget__title {
    padding: 0 0 20px 0;
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 800;
}

.sidebar-toc__container {
    position: relative;
    padding-right: 25px; /* RTL space for line and dots */
}

.sidebar-toc__line {
    position: absolute;
    right: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.sidebar-toc__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.sidebar-toc__list li {
    position: relative;
    margin: 0 !important;
}

.sidebar-toc__list a {
    text-decoration: none !important;
    color: var(--dch-primary) !important;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    transition: all 0.3s ease;
    padding-right: 15px;
}

/* Dots */
.sidebar-toc__list li::after {
    content: '';
    position: absolute;
    right: -24px; /* Align with line */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

/* Active State */
.sidebar-toc__list li.active a {
    color: #0d9488 !important; /* Emerald/Teal from image */
    font-size: 1.05rem;
}

.sidebar-toc__list li.active::after {
    background: #0d9488;
    width: 14px;
    height: 14px;
    right: -27px;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.sidebar-toc__list a:hover {
    color: #0d9488 !important;
}

@media (max-width: 991px) {
    .sidebar-widget--toc {
        display: none !important; /* Hide TOC on mobile sidebar usually, or stack it */
    }
}

/* â”€â”€ Post Navigation â”€â”€ */
.blog-single__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.blog-nav-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.blog-nav-item:hover {
    border-color: var(--dch-accent);
    box-shadow: var(--dch-shadow-soft);
}

.blog-nav-item a {
    text-decoration: none;
    display: block;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--dch-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dch-primary);
    line-height: 1.4;
}

.blog-nav-item--next {
    text-align: left;
}

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

/* â”€â”€ Sidebar Newsletter â”€â”€ */
.sidebar-widget--newsletter {
    background: linear-gradient(135deg, var(--dch-primary) 0%, var(--dch-primary-dark) 100%);
    color: #ffffff;
    border: none !important;
    padding: 30px 25px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    position: relative;
    z-index: 1;
}

.sidebar-widget--newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="white" stroke-width="0.5" fill="none" opacity="0.05"/></svg>');
    background-size: 80px;
    z-index: -1;
    opacity: 0.5;
}

.sidebar-widget--newsletter .sidebar-widget__title {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.sidebar-newsletter p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-newsletter__form .form-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
}

.sidebar-newsletter__form input {
    flex: 1;
    background: transparent;
    border: none !important;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-newsletter__form .btn--primary {
    background: #ffffff !important;
    color: var(--dch-primary) !important;
    border: none;
    width: 45px;
    height: 42px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* â”€â”€ Author Box â”€â”€ */
.blog-single__author {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    margin-top: 50px;
    border: 1px solid #edf2f7;
    position: relative;
}

.blog-single__author-image {
    flex-shrink: 0;
}

.blog-single__author-image img {
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-single__author-info {
    flex: 1;
}

.author-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.blog-single__author-info h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dch-primary);
    margin: 0 0 4px 0;
}

.author-role {
    font-size: 0.85rem;
    color: var(--dch-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dch-text-main);
    margin: 0;
}

.author-more-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dch-primary);
    text-decoration: none;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.author-more-link:hover {
    background: var(--dch-primary);
    color: #ffffff;
    border-color: var(--dch-primary);
}

.author-more-link i {
    font-size: 0.75rem;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .blog-single__author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }
    
    .author-info-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* â”€â”€ Breadcrumbs Enhancement â”€â”€ */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex !important;
    margin-bottom: 20px !important;
}

.breadcrumb a, 
.breadcrumb span {
    color: #ffffff !important;
    opacity: 0.8;
    font-size: 0.85rem;
    font-weight: 600;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--dch-accent) !important;
}

/* â”€â”€ Post Tags â”€â”€ */
.blog-single__tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-single__tags i {
    color: var(--dch-text-muted);
    margin-left: 5px;
    font-size: 1.1rem;
}

.tag-link {
    background: #f1f5f9;
    color: var(--dch-text-main);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-link:hover {
    background: var(--dch-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 37, 39, 0.2);
}

/* â”€â”€ Related Posts Section â”€â”€ */
.related-posts-section {
    background: #f8fafc;
    padding: 40px 0 20px 0 !important; /* Reduced vertical padding */
    border-top: 1px solid #edf2f7;
}

.related-posts-section .section-header {
    margin-bottom: 35px !important;
    text-align: center;
}

.related-posts-section .section-title {
    font-size: 1.6rem !important;
    font-weight: 800;
    color: var(--dch-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.related-posts-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0d9488; /* Teal Accent */
    border-radius: 2px;
}

.related-posts-section .section-subtitle {
    font-size: 1rem !important;
    color: var(--dch-text-main);
    max-width: 600px;
    margin: 0 auto !important;
    opacity: 0.85;
}

.blog-grid--related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px !important;
    margin-top: 20px !important;
}

@media (max-width: 991px) {
    .blog-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* â”€â”€ Mobile Responsive Adjustments â”€â”€ */
/* â”€â”€ Mobile TOC (Specific to Single Post) â”€â”€ */
.blog-single__toc--mobile {
    display: none !important; /* Strictly hidden on desktop */
}

@media (max-width: 991px) {
    /* Restore Layout Columns */
    .blog-layout,
    .blog-single-layout,
    body.rtl .blog-layout,
    body.rtl .blog-single-layout {
        flex-direction: column !important;
        display: flex !important;
        gap: 2rem;
    }

    .blog-sidebar,
    body.rtl .blog-sidebar {
        width: 100% !important;
        order: 2 !important;
        position: static !important;
        padding: 0 15px !important; /* Add padding to contain the CTA */
    }

    .blog-content,
    .blog-single,
    .blog-main,
    body.rtl .blog-content,
    body.rtl .blog-single,
    body.rtl .blog-main {
        width: 100% !important;
        order: 1 !important;
        padding: 20px !important;
    }

    .blog-sidebar__cta {
        margin-left: 15px !important;
        margin-right: 15px !important;
        width: calc(100% - 30px) !important; /* Adjust width to account for margins */
    }

    .blog-single__header {
        padding: 30px 15px !important;
    }

    .blog-single__title {
        font-size: 1.8rem !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Mobile TOC Styling */
    .blog-single__toc--mobile {
        display: block !important;
        background: #f0fdfa;
        border: 1px solid #ccfbf1;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .blog-single__toc--mobile .blog-toc__header {
        margin-bottom: 15px;
        font-weight: 800;
        color: #0d9488;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .blog-single__toc--mobile .blog-toc__list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .blog-single__toc--mobile .blog-toc__list li {
        margin-bottom: 8px;
        padding-right: 15px;
        position: relative;
    }

    .blog-single__toc--mobile .blog-toc__list li::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #0d9488;
        border-radius: 50%;
    }

    .blog-single__toc--mobile .blog-toc__list a {
        text-decoration: none;
        color: var(--dch-primary);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .sidebar-widget--toc {
        display: none !important;
    }
}

/* â”€â”€ Sidebar Smart CTA â”€â”€ */
.sidebar-smart-cta {
    background: #ffffff;
    border: 2px solid var(--cta-theme);
    border-radius: 20px;
    padding: 30px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.smart-cta__icon {
    width: 60px;
    height: 60px;
    background: var(--cta-theme);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 16px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.smart-cta__title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--dch-primary) !important;
    margin-bottom: 12px !important;
    border: none !important;
    padding: 0 !important;
}

.smart-cta__desc {
    font-size: 0.9rem;
    color: var(--dch-text-main);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn--smart-cta {
    background: var(--cta-theme) !important;
    color: #ffffff !important;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--smart-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn--smart-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn--smart-cta:hover i {
    transform: translateX(-5px);
}
/* â”€â”€ Comments Section â”€â”€ */
.blog-single__comments {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #edf2f7;
}

#comments {
    margin-bottom: 40px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dch-primary);
    margin-bottom: 30px;
}

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

.comment-body {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.comment-body:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-color: #0d9488;
}

.comment-author img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-author .fn {
    font-weight: 800;
    color: var(--dch-primary);
    font-style: normal;
}

.comment-metadata a {
    font-size: 0.85rem;
    color: var(--dch-text-muted);
    text-decoration: none;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dch-text-main);
}

.reply a {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d9488;
    text-decoration: none;
    text-transform: uppercase;
}

/* Comment Form */
#respond {
    background: #f8fafc;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #edf2f7;
}

.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dch-primary);
    margin-bottom: 25px;
}

.comment-form {
    display: grid;
    gap: 12px; /* Reduced gap */
}

.comment-form p {
    margin-bottom: 0 !important; /* Remove bottom margin of paragraphs */
}

.comment-form label {
    display: none; /* Hide labels for main fields */
}

/* Exception for the cookies checkbox label */
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.logged-in-as {
    font-size: 0.9rem;
    color: var(--dch-text-main);
    margin-bottom: 15px;
}

.logged-in-as a {
    color: #0d9488 !important;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.logged-in-as a:hover {
    border-bottom-color: #0d9488;
}

.comment-form .comment-form-cookies-consent label {
    display: inline-block !important; /* Show this specific label */
    font-size: 0.85rem;
    color: var(--dch-text-main);
    cursor: pointer;
    font-weight: 500;
}

.comment-form .comment-form-cookies-consent input {
    width: auto;
    margin: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--dch-primary);
    outline: none;
    transition: all 0.3s ease;
}

.comment-form textarea {
    min-height: 100px; /* Reduced from 150px */
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.05);
}

.form-submit .submit {
    background: #0d9488 !important;
    color: #ffffff !important;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit .submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.2);
}

@media (max-width: 768px) {
    .comment-body {
        flex-direction: column;
        padding: 20px;
    }
}

/* â”€â”€ Disclaimer Box â”€â”€ */
.blog-single__disclaimer {
    display: flex;
    gap: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.disclaimer-icon {
    color: #3b82f6; /* Information Blue */
    font-size: 1.2rem;
    margin-top: 2px;
}

.disclaimer-content p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    .blog-single__disclaimer {
        padding: 15px;
        gap: 10px;
    }
}

/* â”€â”€ Post Ratings â”€â”€ */
.dch-post-rating {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px 15px; /* Ø£Ù†Ø­Ù Ø¨ÙƒØ«ÙŠØ± */
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.dch-post-rating__stars-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dch-post-rating__stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: flex-end;
}

.dch-post-rating__stars input {
    display: none;
}

.dch-post-rating__stars label {
    font-size: 1.4rem; /* ØªØµØºÙŠØ± Ø­Ø¬Ù… Ø§Ù„Ù†Ø¬Ù…Ø© */
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px; /* ØªÙ‚Ù„ÙŠÙ„ Ù…Ø³Ø§Ø­Ø© Ø§Ù„Ø­Ø´Ùˆ */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dch-post-rating__stars label:hover,
.dch-post-rating__stars label:hover ~ label,
.dch-post-rating__stars input:checked ~ label {
    color: #f6ad55;
    transform: scale(1.1);
}

.dch-post-rating__stars label:active {
    transform: scale(0.9);
}

.dch-post-rating__average {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
}

body.rtl .dch-post-rating__average {
    text-align: right;
}

.dch-post-rating__average .avg-val {
    font-size: 1.15rem; /* ØªØµØºÙŠØ± Ø¥Ø¶Ø§ÙÙŠ */
    font-weight: 800;
    color: var(--dch-primary);
    line-height: 1;
}

.dch-post-rating__average .count-val {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 1px;
}

.dch-post-rating__message {
    margin-top: 0; 
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.dch-post-rating__message:not(:empty) {
    margin-top: 5px;
}

.dch-post-rating__message.success { color: #10b981; }
.dch-post-rating__message.error { color: var(--dch-accent); }

@media (max-width: 576px) {
    .dch-post-rating__stars-container {
        flex-direction: column;
        text-align: center;
    }
    .dch-post-rating__average {
        align-items: center;
        text-align: center;
    }
}


