/* ---------------------------------------------------------
   SINGLE ARTICLE PAGE STYLES (ADDED FOR PROFESSIONAL LOOK)
--------------------------------------------------------- */

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #666;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 5px;
    color: #ccc;
}

/* Page Layout (Sidebar + Content) */
.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 40px;
    margin-top: 40px;
}

/* Tablet/Mobile Responsive */
@media (max-width: 991px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    /* Order sidebar below content on mobile */
    .article-sidebar {
        order: 2;
    }
}

/* Typography & Content */
.article-content {
    background: #fff;
    padding: 0;
    /* Clean look, no box initially */
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-meta i {
    color: var(--primary-color);
    margin-left: 5px;
}

.article-body p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.article-body h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-right: 15px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.article-body ul {
    margin-bottom: 25px;
    padding-right: 20px;
}

.article-body ul li {
    position: relative;
    margin-bottom: 10px;
    padding-right: 25px;
    font-size: 1.1rem;
    color: #555;
}

.article-body ul li::before {
    content: '\f058';
    /* FontAwesome Check Circle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 3px;
    color: var(--primary-color);
}

/* Quote Box */
.article-quote {
    background: #fdf8eb;
    /* Very light primary color tint */
    border-right: 5px solid var(--primary-color);
    padding: 20px 30px;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin: 30px 0;
    border-radius: 5px;
    position: relative;
}

.article-quote i {
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.05);
}

/* Table of Contents Bar (Reference Style) */
.toc-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 30px 0;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toc-bar i {
    font-size: 1.2rem;
}

/* Featured Image with Date Badge */
.featured-image-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.date-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Sidebar List Styles (Reference Style) */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    transition: var(--transition);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.sidebar-list li a::after {
    content: '\f104';
    /* FontAwesome Chevron Left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #ccc;
    font-size: 0.8rem;
    transition: var(--transition);
}

.sidebar-list li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.sidebar-list li a:hover::after {
    color: var(--primary-color);
}

/* Tag Cloud (Topics) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 5px 12px;
    border-radius: 4px;
    color: #666;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Table of Contents Box */
.toc-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-right: 4px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.toc-box h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-box ul li {
    margin-bottom: 10px;
    padding-right: 0 !important;
    /* Override article body li styles */
}

.toc-box ul li::before {
    content: none !important;
}

.toc-box ul li a {
    color: #555;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
}

.toc-box ul li a:hover {
    background-color: #eee;
    color: var(--primary-color);
    padding-right: 15px;
}

/* Read Also Box */
.read-also-box {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.read-also-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.read-also-box a {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.read-also-box a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Author Box */
.author-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.author-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Sidebar Widgets */
.article-sidebar {
    position: sticky;
    top: 100px;
    /* Check header height */
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 70px;
    height: 60px;
    background: #eee;
    border-radius: 5px;
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-post-info h5 a {
    color: #444;
    transition: var(--transition);
}

.recent-post-info h5 a:hover {
    color: var(--primary-color);
}

.recent-post-info span {
    font-size: 0.8rem;
    color: #999;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--secondary-color), #000);
    color: #fff;
    text-align: center;
}

.cta-widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-widget p {
    margin-bottom: 25px;
    color: #ddd;
}

.cta-widget .btn-primary {
    width: 100%;
}

/* =============================================
   ARTICLE SUMMARY BOX - Premium Design
============================================= */
.article-summary-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #fdf8eb 100%);
    border: 1px solid #d4e6f1;
    border-right: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.article-summary-box:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 196, 161, 92), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.summary-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #d4a84b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 3px 10px rgba(196, 161, 92, 0.3);
}

.summary-content {
    flex: 1;
}

.summary-title {
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.summary-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.summary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.summary-cta:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.summary-cta i {
    font-size: 1.1rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .article-summary-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .summary-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .summary-title {
        font-size: 1.05rem;
    }

    .summary-content p {
        font-size: 0.95rem;
    }

    .summary-cta {
        font-size: 0.9rem;
        padding: 9px 18px;
        width: 100%;
        justify-content: center;
    }
}