/* ================================================================
   BLOG & POST STYLES — Dr. Consultant
   ================================================================ */

/* --- Blog Page specific styles --- */
.blog-header {
    padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 5vw, 60px);
    background-color: var(--bg-light);
    text-align: center;
}
.blog-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--primary);
    margin-bottom: 1rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem) 0;
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.blog-img {
    width: 100%;
    height: 200px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}
.blog-content {
    padding: 2rem;
}
.blog-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}
.blog-cat-badge {
    display: inline-block;
    background: var(--primary-light, #e0f2fe);
    color: var(--primary, #0284c7);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================================================
   SINGLE POST — Blog Content Typography
   ================================================================ */
.post-body-text {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.85;
    font-family: 'Inter', sans-serif;
}

/* Paragraphs */
.post-body-text p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.85;
}

/* Headings */
.post-body-text h1,
.post-body-text h2,
.post-body-text h3,
.post-body-text h4,
.post-body-text h5,
.post-body-text h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}
.post-body-text h2 { font-size: 1.65rem; }
.post-body-text h3 { font-size: 1.35rem; }
.post-body-text h4 { font-size: 1.15rem; }
.post-body-text h5 { font-size: 1rem; }
.post-body-text h6 { font-size: 0.9rem; color: var(--text-muted); }

/* First heading after article start — less top margin */
.post-body-text > h2:first-child,
.post-body-text > h3:first-child {
    margin-top: 0;
}

/* Unordered & Ordered Lists */
.post-body-text ul,
.post-body-text ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.6rem;
}
.post-body-text ul {
    list-style: disc;
}
.post-body-text ol {
    list-style: decimal;
}
.post-body-text li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    font-size: 1.02rem;
    color: var(--text-main);
}
.post-body-text ul ul,
.post-body-text ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

/* Links inside content */
.post-body-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.post-body-text a:hover {
    color: var(--primary-dark, #0369a1);
}

/* Strong / Bold */
.post-body-text strong,
.post-body-text b {
    font-weight: 700;
    color: var(--text-main);
}

/* Italic */
.post-body-text em,
.post-body-text i {
    font-style: italic;
}

/* Blockquote */
.post-body-text blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-light, #f8fafc);
    border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
}
.post-body-text blockquote p {
    margin-bottom: 0;
}

/* Images inside content */
.post-body-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 10px);
    margin: 1.5rem 0;
    display: block;
    box-shadow: var(--shadow-sm);
}

/* Inline code */
.post-body-text code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
}

/* Code block */
.post-body-text pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md, 10px);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
}
.post-body-text pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Horizontal rule */
.post-body-text hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2.5rem 0;
}

/* Tables */
.post-body-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.post-body-text th {
    background: var(--primary-light, #e0f2fe);
    color: var(--primary);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}
.post-body-text td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    vertical-align: top;
}
.post-body-text tr:nth-child(even) td {
    background: #f8fafc;
}

/* WP figure / figcaption */
.post-body-text figure {
    margin: 1.5rem 0;
}
.post-body-text figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* WP Alignment classes */
.post-body-text .alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.post-body-text .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.post-body-text .aligncenter { display: block; margin: 1rem auto; }

/* Clearfix */
.post-body-text::after {
    content: "";
    display: table;
    clear: both;
}

/* ================================================================
   BLOG RESPONSIVE OVERRIDES
   ================================================================ */
@media screen and (max-width: 768px) {
    /* Blog Image Responsiveness */
    .blog-img {
        height: auto !important;
        background-color: transparent !important;
    }
    .blog-img img {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }
}
