:root {
    --hr-primary: #0B6EFD;
    --hr-primary-dark: #0852CC;
    --hr-accent: #00C6A7;
    --hr-text: #1A1D2E;
    --hr-text-muted: #6B7280;
    --hr-text-light: #9CA3AF;
    --hr-bg: #FFFFFF;
    --hr-bg-soft: #F7F9FC;
    --hr-bg-card: #FFFFFF;
    --hr-border: #E5E9F0;
    --hr-border-soft: #F0F3F8;
    --hr-hero-bg: #0D1B3E;
    --hr-hero-text: #FFFFFF;
    --hr-radius: 12px;
    --hr-radius-sm: 8px;
    --hr-radius-lg: 16px;
    --hr-shadow: 0 2px 12px rgba(11, 110, 253, 0.08);
    --hr-shadow-md: 0 4px 24px rgba(11, 110, 253, 0.12);
    --hr-font-body: 'Segoe UI', system-ui, sans-serif;
    --hr-transition: 0.2s ease;
}

/* -- Reading Progress Bar ------------------------------------------ */
#hr-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--hr-primary), var(--hr-accent)); width: 0%; z-index: 9999; transition: width 0.1s linear; }
/* ------- HERO ------- */
.hr-hero-section { background: var(--hr-hero-bg); color: var(--hr-hero-text); padding: 40px 0 48px; position: relative; overflow: hidden; }
.hr-hero-section::before { content: ''; position: absolute; top: -60px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 110, 253, 0.18) 0%, transparent 70%); pointer-events: none; }.hr-sidebar
.hr-hero-inner { max-width: 860px; }
.hr-content-area { text-align: justify; }
/* -- Breadcrumb ---------------------------------------------------- */
.hr-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.hr-breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color var(--hr-transition); }
.hr-breadcrumb a:hover { color: #fff; }
.hr-sep { opacity: 0.5; }
.hr-breadcrumb-current { color: rgba(255, 255, 255, 0.9); }
/* -- Meta Pills ---------------------------------------------------- */
.hr-meta-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.hr-tag-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(11, 110, 253, 0.25); color: #93C5FD; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; transition: background var(--hr-transition); }
.hr-tag-pill:hover { background: rgba(11, 110, 253, 0.45); color: #fff; }
.hr-date-reading { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
/* -- Blog Title ---------------------------------------------------- */
.hr-blog-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; color: #FFFFFF; margin: 0 0 24px; letter-spacing: -0.02em; }
/* -- Author Row ---------------------------------------------------- */
.hr-author-info-wrap { display: flex; align-items: center; gap: 10px; }
.hr-author-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.2); flex-shrink: 0; }
.hr-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hr-author-initials { width: 40px; height: 40px; border-radius: 50%; background: var(--hr-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.hr-author-details { display: flex; flex-direction: column; gap: 1px; }
.hr-author-name { color: #fff; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.hr-author-name:hover { text-decoration: underline; }
.hr-author-role { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }
/* ------- CONTENT LAYOUT (Two-Column) ------- */
.hr-blog-row { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0 60px; }
@media (max-width: 1024px) {
    .hr-blog-row { grid-template-columns: 1fr; }
    .hr-sidebar { display: none; }
}

/* -- Featured Image ------------------------------------------------ */
.hr-featured-image { border-radius: var(--hr-radius-lg); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--hr-border); }
.hr-hero-img { width: 100%; height: auto; display: block; object-fit: cover; }
/* ------- MOBILE TOC ------- */
.hr-toc-mobile { background: var(--hr-bg-soft); border: 1px solid var(--hr-border); border-radius: var(--hr-radius); margin-bottom: 32px; overflow: hidden; }
@media (min-width: 1025px) {
    .hr-toc-mobile { display: none; }
}

.hr-toc-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 18px; background: none; border: none; cursor: pointer; font-family: var(--hr-font-body); font-size: 0.9rem; font-weight: 600; color: var(--hr-text); text-align: left; }
.hr-toc-icon { color: var(--hr-primary); flex-shrink: 0; }
.hr-toc-chevron { margin-left: auto; transition: transform var(--hr-transition); }
.hr-toc-toggle[aria-expanded="true"] .hr-toc-chevron { transform: rotate(180deg); }
.hr-toc-nav { padding: 0 18px; transition: max-height 0.3s ease, opacity 0.3s ease; }
.hr-toc-nav:not(.hr-toc-collapsed) { padding: 0 18px 14px; }
.hr-toc-collapsed { max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; }
/* ------- TOC SHARED STYLES ------- */
.hr-toc-list { list-style: none; margin: 0; padding: 0; }
.hr-toc-item { margin: 0; }
.hr-toc-h3 { padding-left: 16px; }
.hr-toc-link { display: flex; align-items: baseline; gap: 6px; padding: 6px 0; font-size: 0.85rem; color: var(--hr-text-muted); text-decoration: none; border-left: 2px solid transparent; padding-left: 8px; transition: color var(--hr-transition), border-color var(--hr-transition); border-radius: var(--hr-radius-sm); margin: 4px 0; }
.hr-toc-link:hover,
.hr-toc-link.hr-toc-active { color: var(--hr-primary); border-left-color: var(--hr-primary); background: var(--hr-bg-soft); }
.hr-toc-num { font-size: 0.75rem; color: currentColor; flex-shrink: 0; min-width: 18px; }
/* ------- POST CONTENT ------- */
.hr-post-content { font-size: 1.02rem; line-height: 1.8; color: var(--hr-text); text-align: justify; }
.hr-post-content h2,
.hr-post-content h3,
.hr-post-content h4 { font-weight: 700; color: var(--hr-primary-color); margin: 2rem 0 0.75rem; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.hr-post-content h2 { font-size: 1.55rem; }
.hr-post-content h3 { font-size: 1.25rem; }
.hr-post-content h4 { font-size: 1.05rem; }
.hr-post-content p { margin: 0 0 1.2rem; }
.hr-post-content a { font-size: inherit; color: var(--hr-primary); }
.hr-post-content a:hover { color: var(--hr-primary-dark); }
.hr-post-content ul,
.hr-post-content ol { border: 1px solid #dfdfdf; padding: 20px 40px; border-radius: 16px; background: #FCFBFE; margin: 0 0 1rem 0; }
.hr-post-content li:not(:last-child) { margin-bottom: 0.4rem; }
.hr-post-content blockquote { margin: 1.8rem 0; padding: 16px 20px; border-left: 4px solid var(--hr-primary); background: var(--hr-bg-soft); border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0; font-style: italic; color: var(--hr-text-muted); }
.hr-post-content figure.wp-block-image { border: 1px solid var(--hr-border); border-radius: var(--hr-radius); overflow: hidden; }
.hr-post-content img { max-width: 100%; height: auto; }
.hr-post-content .wp-block-table { border-radius: 10px; overflow: hidden; border: 1px solid #c5cfe8; }
.hr-post-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.hr-post-content .wp-block-table thead th,
.hr-post-content .wp-block-table tr:first-child td,
.hr-post-content .wp-block-table tr:first-child th { background: #0D2B6E; color: #ffffff; padding: 13px 16px; font-weight: 600; border-right: 1px solid rgba(255, 255, 255, 0.15); }
.hr-post-content .wp-block-table tr td:last-child { border-right: 0; }
.hr-post-content .wp-block-table :is(td, th) { padding: 8px 12px; border-right: 1px solid #eaecf4; border-bottom: 1px solid #eaecf4; color: #1a1a2e; vertical-align: top; line-height: 1.55; }
.hr-post-content .wp-block-table :is(td, th):last-child { border-right: 0; }
.hr-post-content .wp-block-table tr:last-child td { border-bottom: 0; }
.hr-post-content .wp-block-table td:first-child { font-weight: 600; color: #0D2B6E; }
.hr-post-content .wp-block-table tr:nth-child(even) { background: #f4f6fc; }
.hr-post-content .wp-block-table tr:hover { background: #e8ecf8; }
.hr-post-content code { background: var(--hr-bg-soft); border: 1px solid var(--hr-border); border-radius: 4px; padding: 2px 6px; font-size: 0.88em; font-family: 'JetBrains Mono', monospace; }
.hr-post-content pre { background: #0D1B3E; color: #E2E8F0; border-radius: var(--hr-radius-sm); padding: 16px; overflow-x: auto; margin: 1.5rem 0; }
.hr-post-content pre code { background: none; border: none; padding: 0; color: inherit; }
.hr-post-faqs { margin: 40px 0; padding-top: 32px; border-top: 1px solid var(--hr-border); }
.hr-faqs-heading { font-size: 1.45rem; font-weight: 700; color: var(--hr-text); margin: 0 0 24px; letter-spacing: -0.01em; }
.hr-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--hr-border); border-bottom: 1px solid var(--hr-border); }
.hr-nav-prev,
.hr-nav-next { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 14px 16px; border-radius: var(--hr-radius-sm); background: var(--hr-bg-soft); border: 1px solid var(--hr-border); transition: all var(--hr-transition); }
.hr-nav-prev:hover,
.hr-nav-next:hover { background: #fff; border-color: var(--hr-primary); box-shadow: var(--hr-shadow); }
.hr-nav-next { text-align: right; align-items: flex-end; }
.hr-nav-dir { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--hr-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.hr-nav-title { font-size: 0.88rem; color: var(--hr-text); font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-author-bio-box { display: flex; gap: 20px; padding: 28px; border-radius: var(--hr-radius-lg); background: var(--hr-bg-soft); border: 1px solid var(--hr-border); margin: 32px 0 0; }
.hr-bio-avatar { flex-shrink: 0; }
.hr-bio-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hr-border); }
.hr-bio-initials { width: 80px; height: 80px; border-radius: 50%; background: var(--hr-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.hr-bio-heading { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hr-primary); margin: 0 0 4px; }
.hr-bio-name { font-size: 1.1rem; font-weight: 700; color: var(--hr-text); margin-bottom: 8px; }
.hr-bio-desc { font-size: 0.9rem; color: var(--hr-text-muted); line-height: 1.65; margin-bottom: 10px; }
.hr-bio-desc p { margin: 0; }
.hr-bio-link { font-size: 0.85rem; font-weight: 600; color: var(--hr-primary); text-decoration: none; }
.hr-bio-link:hover { text-decoration: underline; }
.hr-comments-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--hr-border); }
/* ------- SIDEBAR ------- */
.hr-sidebar { display: flex; flex-direction: column; gap: 24px; }
.hr-sidebar-card { background: var(--hr-bg-card); border: 1px solid var(--hr-border); border-radius: var(--hr-radius-lg); padding: 22px; box-shadow: var(--hr-shadow); }
.hr-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 40px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.hr-toc-heading { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hr-text); margin: 0 0 14px; }
/* CTA Box */
.hr-cta-title { font-size: 1rem; font-weight: 700; color: var(--hr-text); margin: 0 0 12px; }
.hr-cta-list { list-style: none; margin: 0 0 18px; padding: 0; }
.hr-cta-list li { font-size: 0.85rem; color: var(--hr-text-muted); padding: 4px 0 4px 18px; position: relative; }
.hr-cta-list li::before { content: '✓'; position: absolute; left: 0; color: var(--hr-accent); font-weight: 700; }
.hr-cta-btn { display: block; width: 100%; padding: 11px 16px; background: linear-gradient(135deg, var(--hr-primary), var(--hr-primary-dark)); color: #fff; font-size: 0.9rem; font-weight: 700; text-align: center; text-decoration: none; border-radius: var(--hr-radius-sm); transition: opacity var(--hr-transition), transform var(--hr-transition); }
.hr-cta-btn:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
/* Recent Posts Widget */
.hr-sidebar-widget-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--hr-text); margin: 0 0 14px; }
.hr-recent-post-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hr-border-soft); text-decoration: none; color: inherit; transition: opacity var(--hr-transition); }
.hr-recent-post-item:last-child { border-bottom: none; }
.hr-recent-post-item:hover { opacity: 0.75; }
.hr-recent-thumb { width: 56px; height: 56px; border-radius: var(--hr-radius-sm); overflow: hidden; flex-shrink: 0; }
.hr-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hr-recent-info { display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.hr-recent-title { font-size: 0.83rem; font-weight: 600; color: var(--hr-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-recent-date { font-size: 0.75rem; color: var(--hr-text-light); }
.hr-related-section { background: var(--hr-bg-soft); padding: 60px 0; border-top: 1px solid var(--hr-border); }
.hr-related-header { text-align: center; margin-bottom: 36px; }
.hr-related-title { font-size: 1.6rem; font-weight: 700; color: var(--hr-text); margin: 0 0 8px; }
.hr-related-sub { font-size: 0.95rem; color: var(--hr-text-muted); margin: 0; }
.hr-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
@media (max-width: 900px) {
    .hr-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .hr-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hr-sidebar { overflow: visible; max-height: none; }
}

/* -- Post Card ----------------------------------------------------─ */
.hr-post-card { background: var(--hr-bg-card); border: 1px solid var(--hr-border); border-radius: var(--hr-radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--hr-transition), transform var(--hr-transition); }
.hr-post-card:hover { box-shadow: var(--hr-shadow-md); transform: translateY(-3px); }
.hr-card-img-wrap { display: block; overflow: hidden; }
.hr-card-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hr-post-card:hover .hr-card-img { transform: scale(1.03); }
.hr-card-img-placeholder { background: linear-gradient(135deg, #E8F0FE 0%, #DBEAFE 100%); height: 200px; }
.hr-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.hr-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hr-card-cat-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: rgba(11, 110, 253, 0.08); color: var(--hr-primary); font-size: 0.75rem; font-weight: 600; text-decoration: none; transition: background var(--hr-transition); }
.hr-card-cat-pill:hover { background: rgba(11, 110, 253, 0.16); }
.hr-card-date { font-size: 0.78rem; color: var(--hr-text-light); }
.hr-card-body .hr-card-title { font-size: 1rem; font-weight: 700; color: var(--hr-text); line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hr-card-body .hr-card-title a { color: inherit; text-decoration: none; transition: color var(--hr-transition); }
.hr-card-body .hr-card-title a:hover { color: var(--hr-primary); }
.hr-card-excerpt { font-size: 0.86rem; color: var(--hr-text-muted); line-height: 1.6; margin: 0 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hr-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hr-border-soft); }
.hr-card-author { display: flex; align-items: center; gap: 8px; }
.hr-card-author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--hr-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.hr-card-author span { font-size: 0.8rem; font-weight: 500; color: var(--hr-text-muted); }
/* -- View All ------------------------------------------------------ */
.hr-related-view-all { text-align: center; }
.hr-view-all-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 2px solid var(--hr-primary); border-radius: var(--hr-radius-sm); color: var(--hr-primary); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all var(--hr-transition); }
.hr-view-all-btn:hover { background: var(--hr-primary); color: #fff; }
/* ------- RESPONSIVE ------- */
@media (max-width: 768px) {
    .hr-container { padding: 0 16px; }
    .hr-blog-row { padding: 24px 0 40px; }
    .hr-toc-sticky { display: none; }
    .hr-hero-section { padding: 28px 0 36px; }
    .hr-post-navigation { grid-template-columns: 1fr; }
    .hr-author-bio-box { flex-direction: column; align-items: flex-start; }
    .hr-sidebar { display: flex; }
}