/* ====================================================
   Single Blog Details Page - Juniors Children's Clinic
   ==================================================== */

.blog-details-section {
    padding: 50px 0;
    background-color: var(--body-bg);
}

.blog-details-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
    align-items: start;
}

/* ==========================================
   Left Main Article Area
   ========================================== */
.article-container {
    background: var(--card-bg);
}

.article-header {
    margin-bottom: 25px;
}

.article-category-badge {
    display: inline-block;
    background: rgba(240, 79, 78, 0.1);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

/* Global 5rem heading override */
.blog-details-section h1.article-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem) !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 18px;
    font-weight: 700;
}

.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--gray-500);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 25px 0 35px 0;
    border: 1px solid var(--border-color);
}

/* Article Body Typography */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 22px;
}

.article-lead {
    font-size: 1.18rem;
    color: var(--heading-color);
    line-height: 1.8;
    font-weight: 500;
}

.blog-details-section .article-content h2 {
    font-size: 1.8rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin: 38px 0 16px 0;
    line-height: 1.35;
}

.blog-details-section .article-content h3 {
    font-size: 1.4rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin: 28px 0 14px 0;
    line-height: 1.4;
}

/* Stylized List */
.article-checklist {
    list-style: none;
    margin: 20px 0 30px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.article-checklist li svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--primary-color);
    margin-top: 4px;
}

/* Doctor's Callout / Tip Box */
.doctor-callout-box {
    background: linear-gradient(135deg, rgba(160, 0, 0, 0.04) 0%, rgba(240, 79, 78, 0.08) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 26px 28px;
    margin: 35px 0;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--primary-font);
}

.callout-header svg {
    width: 22px;
    height: 22px;
}

.doctor-callout-box p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Social Share Bar */
.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.share-label {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-round);
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Author Info Box */
.author-card {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.author-avatar {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.author-details h4 {
    font-size: 1.25rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.author-bio {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Right Sticky Sidebar
   ========================================== */
.blog-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.blog-details-section h3.sidebar-heading {
    font-size: 1.3rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* Search Box */
.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 13px 48px 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--gray-50);
    font-size: 0.92rem;
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(160, 0, 0, 0.08);
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-submit-btn:hover {
    color: var(--primary-color);
}

.search-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Category List */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.sidebar-category-link span.cat-count {
    font-size: 0.78rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    transition: var(--transition);
}

.sidebar-category-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-category-link:hover span.cat-count {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.recent-post-thumb {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 0.95rem !important;
    font-family: var(--primary-font);
    color: var(--heading-color);
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 700;
    transition: var(--transition);
}

.recent-post-item:hover .recent-post-info h5 {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* Help Box Widget */
.sidebar-help-card {
    background: linear-gradient(145deg, #181818, #111111);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}

.sidebar-help-card h4 {
    font-size: 1.35rem !important;
    color: var(--white);
    margin-bottom: 10px;
}

.sidebar-help-card p {
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sidebar-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-cta-btn:hover {
    background: var(--secondary-color);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {
    .blog-details-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .blog-sidebar {
        position: static;
    }

    .article-featured-image {
        height: 340px;
    }
}

@media (max-width: 640px) {
    .blog-details-section {
        padding: 55px 0;
    }

    .article-featured-image {
        height: 230px;
        margin: 20px 0 25px 0;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }

    .article-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}












table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    table-layout: auto;
}

table th,
table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

table th {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--primary-font);
}

table tbody tr:nth-child(even) {
    background: #f8fafc;
}

table tbody tr:hover {
    background: #f1f5f9;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Tablet */
@media (max-width: 768px) {
    table th,
    table td {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 10px;
        font-size: 13px;
        line-height: 1.5;
    }
}

