/* ==========================================================================
   HEMOECO - Corporate Blog Post Stylesheet
   Design: Professional, Corporate, Clean, High-impact Construction Brand
   ========================================================================== */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
/* CSS Variables */
:root {
    --primary: #0a2540;          /* Deep Corporate Navy */
    --primary-light: #1e3a5f;    /* Lighter Navy for hovers */
    --primary-ultra-light: #f0f5fa; /* Navy tint for cards & callouts */
    --accent: #F6C000;           /* Industrial Safety Orange */
    --accent-hover: #c39904f1;     /* Darker Safety Orange */
    --text-main: #1e293b;        /* Slate 800 (very readable body text) */
    --text-muted: #64748b;       /* Slate 500 */
    --bg-main: #f8fafc;          /* Slate 50 background */
    --bg-card: #ffffff;          /* White cards */
    --border: #e2e8f0;           /* Slate 200 border */
    
    /* Layout & Spacing */
    --font-headings: 'Outfit', sans-serif;
    /*--font-body: 'Inter', sans-serif;*/
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
/* Typography Selection */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Navigation Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}
.reading-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    transition: width 0.1s ease-out;
}
/* Header */
/*.hdr {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.hdr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hdr-logo img {
    height: 40px;
    width: auto;
}
.hdr-logo-text {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.hdr-logo-text span {
    color: var(--accent);
}
.hdr-cta {
    background-color: var(--primary);
    color: var(--bg-card);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary);
}
.hdr-cta:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}*/

/* Single Article Layout */
.hemo-single-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
/* Hero Head */
.hemo-single-header {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headings);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.back-to-blog i {
    font-size: 12px;
    transition: var(--transition);
}
.back-to-blog:hover {
    color: var(--accent);
}
.back-to-blog:hover i {
    transform: translateX(-4px);
}
.hemo-categories {
    margin-bottom: 16px;
}
.hemo-categories a {
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.hemo-categories a:hover {
    background-color: var(--accent);
    color: var(--bg-card);
}
.hemo-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
@media (max-width: 768px) {
    .hemo-title {
        font-size: 1.85rem;
    }
}
.hemo-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.hemo-meta span:not(.posted-date):not(.reading-time) {
    opacity: 0.5;
}
.hemo-excerpt {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}
/* Featured Image */
.hemo-featured-image {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hemo-featured-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .hemo-featured-image img {
        height: 280px;
    }
}
/* Article Grid Structure */
.hemo-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 992px) {
    .hemo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* Sidebar & Table of Contents */
.hemo-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
@media (max-width: 992px) {
    .hemo-sidebar {
        position: static;
        order: -1;
    }
}
.hemo-toc {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.hemo-toc-title {
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}
.hemo-toc ul {
    list-style: none;
}
.hemo-toc li {
    margin-bottom: 10px;
}
.hemo-toc li:last-child {
    margin-bottom: 0;
}
.hemo-toc a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    transition: var(--transition);
}
.hemo-toc a:hover,
.hemo-toc a.active {
    color: var(--accent);
    padding-left: 4px;
    border-left: 2px solid var(--accent);
}
/* Social Share Links */
.hemo-share {
    display: flex;
    align-items: center;
    gap: 12px;
}
/*.share-label {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}*/
.hemo-share-title {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.share-buttons {
    display: flex;
    gap: 8px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}
.share-btn:hover {
    background-color: var(--primary);
    color: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Main Content Body */
.hemo-content {
    font-size: 17px;
    color: var(--text-main);
    line-height: 1.8;
}
.hemo-content p {
    margin-bottom: 24px;
}
.hemo-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
}
.hemo-content h3 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
}

/* Social Share Links */
.hemo-share {
    display: flex;
    align-items: center;
    gap: 12px;
}
.share-label {
    font-family: var(--font-headings);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.hemo-share-buttons {
    display: flex;
    gap: 8px;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

/* Inline callout / Tip cards */
.hemo-content blockquote {
    background-color: var(--primary-ultra-light);
    border-left: 4px solid var(--accent);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--primary-light);
}
.hemo-content blockquote p:last-child {
    margin-bottom: 0;
}
.hemo-content ul, 
.hemo-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.hemo-content li {
    margin-bottom: 8px;
}
/* Custom Call To Action Banner */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--bg-card);
    text-align: center;
    margin: 48px auto;
    max-width: 1000px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.08);
    pointer-events: none;
}
.article-cta h2 {
    color: var(--bg-card);
    font-size: 28px;
    margin-bottom: 12px;
}
.article-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 28px;
}
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-card);
    padding: 14px 32px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}
.cta-button:hover {
    background-color: var(--accent-hover);
    color: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}
/* Author Section */
.hemo-author {
    max-width: 1000px;
    margin: 48px auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.hemo-author-box {
    display: flex;
    gap: 24px;
    align-items: center;
}
@media (max-width: 576px) {
    .hemo-author-box {
        flex-direction: column;
        text-align: center;
    }
}
.hemo-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-ultra-light);
}
.hemo-author-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}
.hemo-author-info .hemo-author-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.hemo-author-info p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Comments Section */
/*#comments{
    margin: 48px;
    font-family: var(--font-body);
}

#respond .comment-form-url, #respond input{
  float: left;
  width: 100%;
  margin: 30px 0 0;
  background-color: var(--accent);
  color: var(--text-main); 
}*/

.hemo-comments {
    margin-top: 60px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

.comment-form-container {
    margin-top: 40px;
}

.comment-submit-btn {
    background: black;
    color: white;
    padding: 12px 20px;
    border: 0;
    cursor: pointer;
}

/* Related Posts Section */
.related-posts {
    max-width: 1000px;
    margin: 140px auto 0;
}
.related-posts h2 {
    font-size: 24px;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}
.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}
.related-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 0, 0.2);
}
.related-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.related-card:hover img {
    transform: scale(1.05);
}
.related-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.related-card-content h3 {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
/* Footer Copyright */
/*.page-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.page-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}*/