/*
Theme Name: HumanityCare
Theme URI: https://humanitycare.com.au
Author: Humanity Care Australia
Author URI: https://humanitycare.com.au
Description: Custom WordPress theme for Humanity Care Australia — an Adelaide NDIS & aged care provider. Built for Elementor Free compatibility with brand colours (#1D4783 / #41A2D7), Bricolage Grotesque + Hanken Grotesk typography, a custom mega menu, manageable custom post types, and a dedicated world-class Theme Options panel in wp-admin.
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: humanitycare
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, elementor, ndis, accessibility-ready
*/

/* ============================================
   CSS VARIABLES (Typography + Colors)
   ============================================ */
:root {
  /* ---- Humanity Care brand palette (logo #1D4783 / #41A2D7) ----
     Note: the historical accent variable is named "green" but now carries
     the brand SKY BLUE so existing rules stay on-brand without renaming. */
  --humanitycare-navy: #1D4783;          /* logo navy — primary */
  --humanitycare-navy-light: #264F8E;
  --humanitycare-navy-deep: #15335E;     /* darker navy for footers / dark sections */
  --humanitycare-green: #41A2D7;         /* logo sky blue — primary accent (icons, links, highlights) */
  --humanitycare-green-light: #7CC0E6;
  --humanitycare-blue: #1D4783;
  --humanitycare-primary: #1D4783;
  --humanitycare-secondary: #41A2D7;
  --humanitycare-secondary-deep: #2E84B8;
  --humanitycare-cta: #D2541C;           /* warm conversion accent — CTA buttons only */
  --humanitycare-cta-hover: #B64515;
  --humanitycare-tint: #EEF5FB;          /* light blue section background */
  --humanitycare-text: #16243A;
  --humanitycare-text-light: #475670;
  --humanitycare-border: #D6E3F0;
  --humanitycare-bg: #FFFFFF;
  --humanitycare-bg-light: #F7FAFD;
  
  /* Typography - controlled via Theme Options */
  --humanitycare-font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --humanitycare-body-size: 16px;
  --humanitycare-body-weight: 400;
  --humanitycare-body-line-height: 1.6;
  --humanitycare-body-letter-spacing: 0;
  
  --humanitycare-h1-size: 2.5rem;
  --humanitycare-h1-weight: 700;
  --humanitycare-h1-line-height: 1.2;
  --humanitycare-h1-letter-spacing: 0;
  
  --humanitycare-h2-size: 2rem;
  --humanitycare-h2-weight: 700;
  --humanitycare-h2-line-height: 1.2;
  --humanitycare-h2-letter-spacing: 0;
  
  --humanitycare-h3-size: 1.5rem;
  --humanitycare-h3-weight: 700;
  --humanitycare-h3-line-height: 1.2;
  --humanitycare-h3-letter-spacing: 0;
  
  --humanitycare-h4-size: 1.125rem;
  --humanitycare-h4-weight: 700;
  --humanitycare-h4-line-height: 1.3;
  --humanitycare-h4-letter-spacing: 0;
  
  --humanitycare-h5-size: 1rem;
  --humanitycare-h5-weight: 700;
  --humanitycare-h5-line-height: 1.3;
  --humanitycare-h5-letter-spacing: 0;
  
  --humanitycare-h6-size: 0.875rem;
  --humanitycare-h6-weight: 700;
  --humanitycare-h6-line-height: 1.3;
  --humanitycare-h6-letter-spacing: 0;
}

/* ============================================
   BASE & RESET
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--humanitycare-body-size); scroll-behavior: smooth; }
body {
  font-family: var(--humanitycare-font);
  color: var(--humanitycare-text);
  line-height: var(--humanitycare-body-line-height);
  letter-spacing: var(--humanitycare-body-letter-spacing);
  background: var(--humanitycare-bg);
  font-weight: var(--humanitycare-body-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s, background 0.2s; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--humanitycare-font);
  color: var(--humanitycare-navy);
  line-height: var(--humanitycare-h1-line-height);
  margin: 0 0 1rem;
}
h1 { font-size: var(--humanitycare-h1-size); font-weight: var(--humanitycare-h1-weight); line-height: var(--humanitycare-h1-line-height); letter-spacing: var(--humanitycare-h1-letter-spacing); }
h2 { font-size: var(--humanitycare-h2-size); font-weight: var(--humanitycare-h2-weight); line-height: var(--humanitycare-h2-line-height); letter-spacing: var(--humanitycare-h2-letter-spacing); }
h3 { font-size: var(--humanitycare-h3-size); font-weight: var(--humanitycare-h3-weight); line-height: var(--humanitycare-h3-line-height); letter-spacing: var(--humanitycare-h3-letter-spacing); }
h4 { font-size: var(--humanitycare-h4-size); font-weight: var(--humanitycare-h4-weight); line-height: var(--humanitycare-h4-line-height); letter-spacing: var(--humanitycare-h4-letter-spacing); }
h5 { font-size: var(--humanitycare-h5-size); font-weight: var(--humanitycare-h5-weight); line-height: var(--humanitycare-h5-line-height); letter-spacing: var(--humanitycare-h5-letter-spacing); margin: 0 0 0.75rem; }
h6 { font-size: var(--humanitycare-h6-size); font-weight: var(--humanitycare-h6-weight); line-height: var(--humanitycare-h6-line-height); letter-spacing: var(--humanitycare-h6-letter-spacing); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-content { min-height: 60vh; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--humanitycare-cta);
  color: #fff;
  border-color: var(--humanitycare-cta);
}
.btn-primary:hover {
  background: var(--humanitycare-cta-hover);
  border-color: var(--humanitycare-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(210, 84, 28, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--humanitycare-navy);
  border-color: var(--humanitycare-navy);
}
.btn-outline:hover {
  background: var(--humanitycare-navy);
  color: white;
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: white;
  color: var(--humanitycare-navy);
  border-color: white;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--humanitycare-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-branding img,
.site-branding svg {
  max-height: 36px;
  width: auto;
}
.site-branding .custom-logo-link {
  display: inline-flex;
}
.site-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Desktop Nav */
.main-navigation {
  display: none;
}
@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 1.5rem 0;
  transition: color 0.2s;
}
.nav-menu > li > a:hover {
  color: white;
}
.nav-menu .arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  display: inline-block;
  margin-top: -2px;
}
.nav-menu > li:hover .arrow,
.nav-menu > li.menu-open .arrow {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Sub-menu (non-mega dropdowns) */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li.menu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--humanitycare-text);
  font-weight: 500;
}
.sub-menu li a:hover {
  color: var(--humanitycare-green);
  background: var(--humanitycare-bg-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-phone {
  color: var(--humanitycare-green);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--humanitycare-green-light);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* ============================================
   MEGA MENU (DESKTOP)
   ============================================ */
.has-mega-menu { position: static !important; }
.has-mega-menu .mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 90vw;
  max-width: 1280px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 2.5rem;
  margin-top: 0;
  pointer-events: none;
}
.has-mega-menu:hover .mega-menu,
.has-mega-menu.menu-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Mega Menu Scrollbar */
.mega-menu::-webkit-scrollbar {
  width: 6px;
}
.mega-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.mega-menu::-webkit-scrollbar-thumb {
  background: var(--humanitycare-border);
  border-radius: 3px;
}
.mega-menu::-webkit-scrollbar-thumb:hover {
  background: var(--humanitycare-text-light);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.mega-menu-heading {
  color: var(--humanitycare-green);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.mega-menu-list li {
  margin-bottom: 1.25rem;
}
.mega-menu-list a {
  display: flex;
  gap: 0.875rem;
  color: var(--humanitycare-text);
  align-items: flex-start;
}
.mega-menu-list a:hover {
  color: var(--humanitycare-green);
}
.mega-menu-list a:hover .mega-icon {
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy);
}
.mega-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--humanitycare-bg-light);
  border-radius: 0.5rem;
  font-size: 1.25rem;
  transition: all 0.2s;
}
.mega-content strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  color: var(--humanitycare-navy);
}
.mega-content span {
  display: block;
  font-size: 0.8125rem;
  color: var(--humanitycare-text-light);
  line-height: 1.4;
}

/* Separator line under mega titles */
.mega-content strong::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--humanitycare-border);
  border-radius: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Resources Mega Menu */
.mega-resources-inner {
  grid-template-columns: 1fr 1fr 220px;
}
.mega-featured-post .mega-featured-image {
  display: block;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
.mega-featured-post .mega-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.mega-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.mega-post-label {
  color: var(--humanitycare-text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mega-post-date {
  color: var(--humanitycare-text-light);
  font-size: 0.75rem;
}
.mega-post-title {
  margin: 0.5rem 0;
  color: var(--humanitycare-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.mega-post-title a:hover {
  color: var(--humanitycare-green);
}
.mega-post-excerpt {
  color: var(--humanitycare-text-light);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.mega-popular-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mega-popular-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.mega-popular-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}
.mega-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-popular-content .mega-post-meta {
  margin-bottom: 0.25rem;
}
.mega-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mega-category-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--humanitycare-text);
  font-size: 0.875rem;
  padding: 0.25rem 0;
}
.mega-category-list a:hover {
  color: var(--humanitycare-green);
}
.mega-category-list .mega-icon {
  width: 24px;
  height: 24px;
  background: none;
  border-radius: 0;
  font-size: 1rem;
}

/* Company Mega Menu — 2 column with image */
.mega-company-inner {
  grid-template-columns: 1fr 1fr;
}
.mega-company-image {
  position: relative;
  min-height: 300px;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--humanitycare-navy), var(--humanitycare-navy-light));
}
.mega-company-image-text {
  color: white;
  text-align: center;
  padding: 2rem;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.mobile-menu-overlay.active {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--humanitycare-navy);
  flex-shrink: 0;
}
.mobile-menu-header .site-branding img {
  max-height: 32px;
}
.mobile-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.mobile-close:hover {
  border-color: white;
}
.mobile-menu-gradient {
  height: 4px;
  background: linear-gradient(90deg, var(--humanitycare-green), var(--humanitycare-blue));
  flex-shrink: 0;
}
.mobile-menu-content {
  flex: 1;
  position: relative;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Mobile Main Nav */
.mobile-nav-list {
  margin-bottom: 2rem;
}
.mobile-nav-list > li {
  border-bottom: 1px solid var(--humanitycare-border);
}
.mobile-nav-list > li > button,
.mobile-nav-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--humanitycare-navy);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mobile-nav-list .arrow-right {
  color: var(--humanitycare-green);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Mobile Submenu */
.mobile-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 20;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-submenu.active {
  display: block;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.mobile-submenu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--humanitycare-border);
}
.mobile-back {
  background: none;
  border: 1px solid var(--humanitycare-border);
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--humanitycare-navy);
  transition: all 0.2s;
}
.mobile-back:hover {
  background: var(--humanitycare-bg-light);
  border-color: var(--humanitycare-navy);
}
.mobile-submenu-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--humanitycare-navy);
}

/* Mobile Mega Content */
.mobile-submenu-content .mega-menu-inner {
  grid-template-columns: 1fr;
  gap: 0;
}
.mobile-submenu-content .mega-menu-column {
  margin-bottom: 1.5rem;
}
.mobile-submenu-content .mega-menu-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.mobile-submenu-content .mega-menu-list li {
  margin-bottom: 0.25rem;
}
.mobile-submenu-content .mega-menu-list a {
  padding: 0.875rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.mobile-submenu-content .mega-menu-list a:hover,
.mobile-submenu-content .mega-menu-list a:focus {
  background: var(--humanitycare-bg-light);
}
.mobile-submenu-content .mega-content span {
  display: none;
}
.mobile-submenu-content .mega-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

/* Mobile regular children */
.mobile-children-list {
  margin-top: 0.5rem;
}
.mobile-children-list li {
  margin-bottom: 0.25rem;
}
.mobile-children-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--humanitycare-navy);
  transition: background 0.15s;
}
.mobile-children-list a:hover {
  background: var(--humanitycare-bg-light);
}

/* ============================================
   BLOG ARCHIVE
   ============================================ */
.blog-archive {
  padding: 3rem 0 5rem;
}

/* Featured Post */
.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 3rem;
  background: var(--humanitycare-bg-light);
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr 1fr;
  }
}
.featured-post-image {
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.featured-post-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  color: var(--humanitycare-green);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.featured-post-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.featured-post-content p {
  color: var(--humanitycare-text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Filter Tabs */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--humanitycare-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--humanitycare-text);
  background: white;
  transition: all 0.2s;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--humanitycare-green);
  border-color: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-weight: 600;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--humanitycare-border);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: transparent;
}
.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-card-content {
  padding: 1.5rem;
}
.blog-card-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--humanitycare-navy);
}
.blog-card-content h3 a:hover {
  color: var(--humanitycare-green);
}
.blog-card-content p {
  font-size: 0.875rem;
  color: var(--humanitycare-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--humanitycare-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.read-more::after {
  content: '→';
  transition: transform 0.2s;
}
.read-more:hover {
  color: var(--humanitycare-green);
}
.read-more:hover::after {
  transform: translateX(4px);
}

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--humanitycare-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--humanitycare-text);
  min-width: 40px;
  text-align: center;
}
.pagination a:hover {
  border-color: var(--humanitycare-navy);
  background: var(--humanitycare-navy);
  color: white;
}
.pagination .current {
  background: var(--humanitycare-green);
  border-color: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-weight: 700;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
  padding: 3rem 0 2rem;
}
.post-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--humanitycare-green);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.post-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--humanitycare-green);
  border-radius: 2px;
}
.single-post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 850px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--humanitycare-navy);
}
.single-post-title .highlight,
.single-post-title .text-green {
  color: var(--humanitycare-green);
}
.single-post-excerpt {
  font-size: 1.125rem;
  color: var(--humanitycare-text-light);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Post Meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--humanitycare-border);
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--humanitycare-navy);
}
.post-date {
  font-size: 0.875rem;
  color: var(--humanitycare-text-light);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}
.post-tag {
  padding: 0.375rem 0.875rem;
  background: var(--humanitycare-bg-light);
  border-radius: 2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--humanitycare-text-light);
  border: 1px solid var(--humanitycare-border);
}

/* Featured Image */
.post-featured-image {
  margin-bottom: 3rem;
}
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Post Content */
.post-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--humanitycare-text);
}
.post-content h2 {
  font-size: 1.375rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.875rem;
  color: var(--humanitycare-navy);
}
.post-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--humanitycare-green);
  border-radius: 2px;
}
.post-content h3 {
  font-size: 1.125rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--humanitycare-navy);
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content a {
  color: var(--humanitycare-green);
  text-decoration: underline;
  font-weight: 600;
}
.post-content a:hover {
  color: var(--humanitycare-navy);
}
.post-content blockquote {
  border-left: 4px solid var(--humanitycare-green);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  background: var(--humanitycare-bg-light);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}
.post-content blockquote p {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}
.post-content blockquote cite,
.post-content blockquote .attribution {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  font-style: normal;
  color: var(--humanitycare-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}
.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}
.post-content li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}
.post-content li::marker {
  color: var(--humanitycare-green);
}
.post-content li strong {
  color: var(--humanitycare-navy);
  font-weight: 700;
}

/* Intro Quote */
.intro-quote {
  border-left: 4px solid var(--humanitycare-green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--humanitycare-text-light);
  font-size: 1.125rem;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--humanitycare-bg-light);
  border-radius: 0.75rem;
  text-align: center;
}
@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--humanitycare-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number span,
.stat-number sup {
  font-size: 1rem;
  color: var(--humanitycare-green);
  font-weight: 700;
}
.stat-label {
  font-size: 0.6875rem;
  color: var(--humanitycare-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.4;
}

/* Info Box */
.info-box {
  background: #F0FDF4;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--humanitycare-green);
}
.info-box-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--humanitycare-green);
  margin-bottom: 0.75rem;
}
.info-box p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--humanitycare-text);
}

/* CTA Box */
.cta-box {
  background: var(--humanitycare-navy);
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin: 3rem 0;
  color: white;
}
.cta-box-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--humanitycare-green);
  margin-bottom: 0.75rem;
}
.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  max-width: 600px;
}
.cta-box h3 .highlight,
.cta-box h3 .text-green {
  color: var(--humanitycare-green);
}
.cta-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  max-width: 600px;
  font-size: 0.9375rem;
}
.cta-box-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Related Posts */
.related-posts {
  padding: 2rem 0 4rem;
}
.related-posts-title {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--humanitycare-navy);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.related-card {
  display: block;
}
.related-card-image {
  aspect-ratio: 16/10;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-card:hover .related-card-image img {
  transform: scale(1.05);
}
.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--humanitycare-navy);
  line-height: 1.3;
}
.related-card h4 .highlight,
.related-card h4 .text-green {
  color: var(--humanitycare-green);
}
.related-card-meta {
  font-size: 0.8125rem;
  color: var(--humanitycare-text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.related-card-excerpt {
  font-size: 0.875rem;
  color: var(--humanitycare-text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   PRE-FOOTER CTA
   ============================================ */
.pre-footer-cta {
  background: var(--humanitycare-navy-light);
  padding: 4rem 0;
  color: white;
}
.pre-footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.pre-footer-cta-content {
  max-width: 600px;
}
.pre-footer-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--humanitycare-green);
  margin-bottom: 1rem;
  display: block;
}
.pre-footer-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.pre-footer-cta h2 .highlight,
.pre-footer-cta h2 .text-green {
  color: var(--humanitycare-green);
}
.pre-footer-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.6;
}
.pre-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--humanitycare-navy);
  color: white;
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
  }
}
.footer-brand .site-title,
.footer-brand .custom-logo-link {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: inline-block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer-brand .btn {
  margin-top: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  transform: translateY(-2px);
}
.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--humanitycare-green);
  margin-bottom: 1.25rem;
}
.footer-column ul {
  margin: 0;
  padding: 0;
}
.footer-column li {
  margin-bottom: 0.625rem;
}
.footer-column a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  display: inline-block;
  line-height: 1.4;
}
.footer-column a:hover {
  color: var(--humanitycare-green);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: white;
}

/* ============================================
   UTILITIES & MISC
   ============================================ */
.text-green { color: var(--humanitycare-green); }
.bg-navy { background: var(--humanitycare-navy); }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Elementor Compatibility */
.elementor-page .site-main > .container {
  max-width: 100%;
  padding: 0;
}
.elementor-page .entry-content {
  margin: 0;
}

/* Gutenberg Alignments */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Responsive Visibility */
@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
}

/* Archive Title */
.archive-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--humanitycare-navy);
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 4rem 0;
}
.no-posts h3 {
  margin-bottom: 1rem;
}

/* Remove unwanted top gap on Elementor-built pages */
body.elementor-page .entry-content {
    padding-top: 0 !important;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY + MENU/FOOTER CONTROLS
   Added in v1.0.4
   ============================================ */
body {
  font-family: var(--humanitycare-body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--humanitycare-body-color, var(--humanitycare-text));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--humanitycare-heading-font, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--humanitycare-heading-color, var(--humanitycare-navy));
}

.nav-menu > li > a {
  font-family: var(--humanitycare-menu-font, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: var(--humanitycare-menu-size-desktop, 0.9375rem);
  font-weight: var(--humanitycare-menu-weight, 500);
  line-height: var(--humanitycare-menu-line-height, 1.4);
  letter-spacing: var(--humanitycare-menu-letter-spacing, 0);
  color: var(--humanitycare-menu-color, rgba(255,255,255,0.9));
}
.nav-menu > li > a:hover,
.nav-menu > li.menu-open > a {
  color: var(--humanitycare-menu-hover-color, #ffffff);
}

.mega-menu-heading,
.mega-post-title,
.mega-content strong,
.mobile-submenu-title {
  font-family: var(--humanitycare-heading-font, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.mobile-nav-list > li > button,
.mobile-nav-list > li > a,
.mobile-submenu-content .mega-menu-list a,
.mobile-children-list a {
  font-family: var(--humanitycare-mobile-menu-font, var(--humanitycare-menu-font, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  font-size: var(--humanitycare-mobile-menu-size-tablet, 1.25rem);
  font-weight: var(--humanitycare-mobile-menu-weight, 600);
  line-height: var(--humanitycare-mobile-menu-line-height, 1.35);
  letter-spacing: var(--humanitycare-mobile-menu-letter-spacing, 0);
  color: var(--humanitycare-mobile-menu-color, var(--humanitycare-navy));
}
.mobile-nav-list > li > button:hover,
.mobile-nav-list > li > a:hover,
.mobile-submenu-content .mega-menu-list a:hover,
.mobile-children-list a:hover {
  color: var(--humanitycare-mobile-menu-hover-color, var(--humanitycare-navy));
}

.site-footer {
  background: var(--humanitycare-footer-bg, var(--humanitycare-navy));
  color: var(--humanitycare-footer-text-color, #ffffff);
  font-family: var(--humanitycare-footer-font, var(--humanitycare-body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  font-size: var(--humanitycare-footer-font-size, 0.875rem);
}
.site-footer .custom-logo {
  width: var(--humanitycare-footer-logo-width, auto);
  height: var(--humanitycare-footer-logo-height, auto);
  max-width: 100%;
  object-fit: contain;
}
.footer-brand .site-title,
.footer-brand .custom-logo-link {
  color: var(--humanitycare-footer-heading-color, #ffffff);
}
.footer-brand p,
.site-footer p,
.footer-bottom {
  color: var(--humanitycare-footer-text-color, rgba(255,255,255,0.7));
}
.footer-column h4 {
  font-family: var(--humanitycare-footer-heading-font, var(--humanitycare-heading-font, 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  font-size: var(--humanitycare-footer-heading-size, 0.8125rem);
  font-weight: var(--humanitycare-footer-heading-weight, 800);
  color: var(--humanitycare-footer-heading-color, var(--humanitycare-green));
  letter-spacing: var(--humanitycare-footer-heading-letter-spacing, 0.08em);
}
.footer-column a,
.footer-bottom a {
  font-family: var(--humanitycare-footer-font, var(--humanitycare-body-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif));
  font-size: var(--humanitycare-footer-link-size, 0.875rem);
  font-weight: var(--humanitycare-footer-link-weight, 400);
  color: var(--humanitycare-footer-link-color, rgba(255,255,255,0.75));
}
.footer-column a:hover,
.footer-bottom a:hover {
  color: var(--humanitycare-footer-link-hover-color, var(--humanitycare-green));
}
.footer-social a {
  color: var(--humanitycare-footer-social-color, #ffffff);
  background: var(--humanitycare-footer-social-bg, rgba(255,255,255,0.1));
}
.footer-social a:hover {
  color: var(--humanitycare-footer-social-hover-color, var(--humanitycare-navy));
  background: var(--humanitycare-footer-social-hover-bg, var(--humanitycare-green));
}

@media (max-width: 1024px) {
  :root {
    --humanitycare-body-size: var(--humanitycare-body-size-tablet, 15px);
    --humanitycare-h1-size: var(--humanitycare-h1-size-tablet, 2.125rem);
    --humanitycare-h2-size: var(--humanitycare-h2-size-tablet, 1.75rem);
    --humanitycare-h3-size: var(--humanitycare-h3-size-tablet, 1.375rem);
    --humanitycare-h4-size: var(--humanitycare-h4-size-tablet, 1.0625rem);
    --humanitycare-h5-size: var(--humanitycare-h5-size-tablet, 1rem);
    --humanitycare-h6-size: var(--humanitycare-h6-size-tablet, 0.875rem);
  }
}

@media (max-width: 767px) {
  :root {
    --humanitycare-body-size: var(--humanitycare-body-size-mobile, 15px);
    --humanitycare-h1-size: var(--humanitycare-h1-size-mobile, 1.875rem);
    --humanitycare-h2-size: var(--humanitycare-h2-size-mobile, 1.5rem);
    --humanitycare-h3-size: var(--humanitycare-h3-size-mobile, 1.25rem);
    --humanitycare-h4-size: var(--humanitycare-h4-size-mobile, 1rem);
    --humanitycare-h5-size: var(--humanitycare-h5-size-mobile, 0.9375rem);
    --humanitycare-h6-size: var(--humanitycare-h6-size-mobile, 0.8125rem);
  }
  .mobile-nav-list > li > button,
  .mobile-nav-list > li > a,
  .mobile-submenu-content .mega-menu-list a,
  .mobile-children-list a {
    font-size: var(--humanitycare-mobile-menu-size-mobile, 1.125rem);
  }
}


/* ============================================
   SINGLE POST LAYOUT + ARTICLE COMPONENTS
   Added in v1.0.8
   ============================================ */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.humanitycare-single-post {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #ffffff;
}

.humanitycare-single-post * {
  box-sizing: border-box;
}

.humanitycare-single-post img,
.humanitycare-single-post svg,
.humanitycare-single-post iframe,
.humanitycare-single-post video,
.humanitycare-single-post table {
  max-width: 100%;
}

.humanitycare-single-post .container,
.humanitycare-single-post .single-post-layout,
.humanitycare-single-post .single-post-main-content,
.humanitycare-single-post .single-post-sidebar,
.humanitycare-single-post .single-post-sticky-system,
.humanitycare-single-post .single-post-toc {
  min-width: 0;
}

.humanitycare-single-post .single-post-hero {
  padding: clamp(2.75rem, 4.8vw, 5rem) 0 1.5rem;
}

.humanitycare-single-post .single-post-hero-inner {
  max-width: 1280px;
}

.humanitycare-single-post .post-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.45rem;
  color: var(--humanitycare-green);
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.humanitycare-single-post .post-label::before {
  content: '';
  width: 1.65rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.humanitycare-single-post .single-post-title {
  max-width: 100%;
  margin: 0 0 1.55rem;
  color: #050505;
  font-family: 'Inter', var(--humanitycare-body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.humanitycare-single-post .single-post-title .text-green,
.humanitycare-single-post .single-post-title .highlight {
  color: var(--humanitycare-green) !important;
}

.humanitycare-single-post .single-post-excerpt,
.humanitycare-single-post .post-meta,
.humanitycare-single-post .post-tags {
  display: none !important;
}

.single-post-quick-answer {
  position: relative;
  max-width: 100%;
  margin: 1.55rem 0 2rem;
  padding: 2rem 1.65rem 1.35rem;
  border: 2px solid var(--humanitycare-green);
  border-radius: 16px;
  background: #ffffff;
  color: var(--humanitycare-body-color, var(--humanitycare-text));
}

.single-post-quick-answer .quick-answer-label {
  position: absolute;
  top: -1.05rem;
  left: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.38rem 1.2rem;
  border-radius: 999px;
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.single-post-quick-answer p {
  margin: 0;
  color: var(--humanitycare-body-color, var(--humanitycare-text));
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px) !important;
  font-weight: var(--humanitycare-body-weight, 400);
  line-height: var(--humanitycare-body-line-height, 1.6);
  letter-spacing: var(--humanitycare-body-letter-spacing, 0);
  overflow-wrap: break-word;
}

.single-post-quick-answer strong,
.single-post-quick-answer b {
  font-weight: 700;
}

.single-post-author-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  margin: 0 0 1.75rem;
  border-top: 1px solid #dfe5ee;
  border-bottom: 1px solid #dfe5ee;
  color: var(--humanitycare-body-color, var(--humanitycare-text));
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px);
  line-height: var(--humanitycare-body-line-height, 1.6);
}

.single-author-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.single-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 999px;
  background: var(--humanitycare-navy);
  color: var(--humanitycare-green);
  font-family: 'Inter', var(--humanitycare-body-font, sans-serif);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.single-author-details {
  min-width: 0;
}

.single-author-name {
  margin-bottom: 0.15rem;
  color: var(--humanitycare-navy);
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 1em;
  font-weight: 800;
  line-height: 1.28;
}

.single-author-description {
  color: #6e788a;
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.single-author-facts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.single-author-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: #f4f5f7;
  color: #6e788a;
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.single-author-readtime {
  background: #f3faeb;
  color: #4f7b20;
  border: 1px solid rgba(65,162,215,0.30);
}

.single-author-reviewed {
  background: #eef5ff;
  color: #3d5f9b;
}

.single-post-featured-full {
  width: min(1280px, calc(100% - 3rem));
  max-width: 100%;
  margin: 0 auto clamp(2.75rem, 5vw, 4.75rem);
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.single-post-featured-img,
.single-post-featured-full img {
  display: block;
  width: 100%;
  height: clamp(300px, 32vw, 520px);
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
}

.humanitycare-single-post .single-post-layout {
  display: grid;
  align-items: start;
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 5rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.humanitycare-single-post .single-post-layout.has-sidebar {
  grid-template-columns: minmax(0, 820px) minmax(250px, 320px);
}

.humanitycare-single-post .single-post-layout.no-sidebar {
  display: block;
}

.humanitycare-single-post .single-post-main-content {
  width: 100%;
  max-width: 820px;
  margin: 0 0 3rem;
  color: var(--humanitycare-body-color, var(--humanitycare-text));
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px);
  line-height: var(--humanitycare-body-line-height, 1.6);
}

.humanitycare-single-post .single-post-layout.no-sidebar .single-post-main-content {
  max-width: 860px;
}

.humanitycare-single-post .single-post-main-content > *:first-child {
  margin-top: 0;
}

.humanitycare-single-post .single-post-main-content p,
.humanitycare-single-post .single-post-main-content li,
.humanitycare-single-post .single-post-main-content blockquote,
.humanitycare-single-post .single-post-main-content td,
.humanitycare-single-post .single-post-main-content th {
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: inherit;
  line-height: var(--humanitycare-body-line-height, 1.6);
  overflow-wrap: break-word;
}

.humanitycare-single-post .single-post-main-content p,
.humanitycare-single-post .single-post-main-content ul,
.humanitycare-single-post .single-post-main-content ol,
.humanitycare-single-post .single-post-main-content blockquote,
.humanitycare-single-post .single-post-main-content table,
.humanitycare-single-post .single-post-main-content figure {
  margin-bottom: 1.35rem;
}

.humanitycare-single-post .single-post-main-content ul,
.humanitycare-single-post .single-post-main-content ol {
  padding-left: 1.35rem;
}

.humanitycare-single-post .single-post-main-content ul {
  list-style: disc;
}

.humanitycare-single-post .single-post-main-content ol {
  list-style: decimal;
}

.humanitycare-single-post .single-post-main-content li + li {
  margin-top: 0.45rem;
}

.humanitycare-single-post .single-post-main-content h2,
.humanitycare-single-post .single-post-main-content h3,
.humanitycare-single-post .single-post-main-content h4 {
  color: var(--humanitycare-heading-color, var(--humanitycare-navy));
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
  scroll-margin-top: 120px;
  overflow-wrap: break-word;
}

.humanitycare-single-post .single-post-main-content h2 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--humanitycare-green);
  font-size: var(--humanitycare-h2-size, 2rem);
  font-weight: var(--humanitycare-h2-weight, 700);
  line-height: var(--humanitycare-h2-line-height, 1.2);
}

.humanitycare-single-post .single-post-main-content h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.85rem;
  font-size: var(--humanitycare-h3-size, 1.5rem);
  font-weight: var(--humanitycare-h3-weight, 700);
  line-height: var(--humanitycare-h3-line-height, 1.2);
}

.humanitycare-single-post .single-post-main-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
}

.humanitycare-single-post .single-post-main-content a {
  color: var(--humanitycare-navy);
  text-decoration: underline;
  text-decoration-color: rgba(65,162,215,0.30);
  text-underline-offset: 0.18em;
}

.humanitycare-single-post .single-post-main-content blockquote {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--humanitycare-green);
  border-radius: 0 10px 10px 0;
  background: #EEF5FB;
  color: var(--humanitycare-navy);
}

.humanitycare-single-post .single-post-main-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
}

.humanitycare-single-post .single-post-main-content th,
.humanitycare-single-post .single-post-main-content td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.humanitycare-single-post .single-post-main-content th {
  background: var(--humanitycare-navy);
  color: #ffffff;
  font-weight: 700;
}

.single-post-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  z-index: 4;
  width: 100%;
  min-width: 0;
  color: var(--humanitycare-body-color, var(--humanitycare-text));
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px);
  line-height: var(--humanitycare-body-line-height, 1.6);
}

.single-post-sticky-system,
.single-post-toc {
  position: static;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  background: transparent;
}

.single-post-sticky-system::-webkit-scrollbar,
.single-post-toc::-webkit-scrollbar {
  display: none;
}

.mobile-toc-toggle {
  display: none;
}

.single-post-toc,
.single-post-share {
  width: 100%;
  background: transparent;
}

.single-post-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--humanitycare-navy);
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.single-post-sidebar-heading::after {
  content: '';
  height: 2px;
  flex: 1;
  background: var(--humanitycare-green);
}

.single-post-toc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 2rem;
  border-bottom: 1px solid #e7eaf0;
}

.single-post-toc li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.45rem;
}

.single-post-toc li + li {
  margin-top: 0.62rem;
}

.single-post-toc li::before {
  content: '';
  position: absolute;
  top: 0.72em;
  left: 0.28rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2937;
  opacity: .9;
}

.single-post-toc a {
  position: relative;
  display: block;
  padding: 0.1rem 0;
  color: #8d95a3;
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.95em;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none !important;
  transition: color .18s ease, font-weight .18s ease;
  overflow-wrap: break-word;
}

.single-post-toc a:hover,
.single-post-toc a.active {
  color: var(--humanitycare-navy);
  font-weight: 750;
}

.single-post-toc a.active::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--humanitycare-green);
  border-radius: 999px;
}

.single-post-share {
  display: block;
  margin-top: 1.75rem;
  padding-top: 0;
}

.single-share-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0;
  border: 0;
  border-bottom: 1px solid #e7eaf0;
  background: transparent;
  color: #8d95a3;
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .18s ease;
}

.single-share-link:hover,
.single-share-link.copied {
  color: var(--humanitycare-navy);
}

.share-icon {
  width: 1.15rem;
  flex: 0 0 1.15rem;
  text-align: center;
  color: currentColor;
  font-size: 0.95em;
  opacity: .9;
}

/* Optional article blocks used inside posts. These are theme-owned styles,
   so posts do not break when external/temporary Claude CSS is removed. */
.single-post-main-content .pxblog-post {
  max-width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.single-post-main-content .pxb-answer,
.single-post-main-content .pxb-callout,
.single-post-main-content .pxb-takeaways,
.single-post-main-content .pxb-cta,
.single-post-main-content .pxb-card,
.single-post-main-content .pxb-svg-wrap {
  max-width: 100%;
  border-radius: 12px;
  overflow-wrap: break-word;
}

.single-post-main-content .pxb-answer {
  position: relative;
  margin: 1.5rem 0 1.8rem;
  padding: 1.6rem 1.4rem 1.2rem;
  border: 2px solid var(--humanitycare-green);
  background: rgba(65,162,215,0.30);
}

.single-post-main-content .pxb-answer::before {
  content: 'Quick Answer';
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-post-main-content .pxb-answer p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.single-post-main-content .pxb-stats,
.single-post-main-content .pxb-cards-2,
.single-post-main-content .pxb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.single-post-main-content .pxb-stat,
.single-post-main-content .pxb-takeaways,
.single-post-main-content .pxb-cta {
  background: var(--humanitycare-navy);
  color: rgba(255,255,255,.82);
  border-radius: 12px;
  padding: 1.35rem;
}

.single-post-main-content .pxb-stat {
  text-align: center;
}

.single-post-main-content .pxb-stat-num {
  color: var(--humanitycare-green);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.single-post-main-content .pxb-stat-label,
.single-post-main-content .pxb-stat-src {
  font-size: 0.85em;
  color: rgba(255,255,255,.68);
}

.single-post-main-content .pxb-card {
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--humanitycare-green);
  background: #fff;
}

.single-post-main-content .pxb-card h4 {
  margin-top: 0;
}

.single-post-main-content .pxb-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--humanitycare-green);
  background: #EEF5FB;
}

.single-post-main-content .pxb-callout-label,
.single-post-main-content .pxb-section-label,
.single-post-main-content .pxb-toc-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--humanitycare-green) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-post-main-content .pxb-takeaways ul,
.single-post-main-content .pxb-takeaways ol {
  margin: 0;
  padding-left: 1.2rem;
}

.single-post-main-content .pxb-table-wrap {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.single-post-main-content .pxb-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.single-post-main-content .pxb-table th,
.single-post-main-content .pxb-table td {
  padding: 0.75rem 0.9rem;
}

.single-post-main-content .pxb-btn,
.single-post-main-content .pxb-related-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy) !important;
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 1199px) {
  .humanitycare-single-post .single-post-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 285px);
    gap: 2.5rem;
  }

  .single-post-author-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .single-author-facts {
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) {
  .humanitycare-single-post .single-post-title {
    font-size: 42px;
    line-height: 1.08;
  }

  .humanitycare-single-post .single-post-layout,
  .humanitycare-single-post .single-post-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .single-post-sidebar {
    order: -1;
    position: sticky;
    top: 74px;
    z-index: 80;
    width: 100%;
  }

  .single-post-sticky-system {
    max-height: none !important;
    overflow: visible !important;
  }

  .mobile-toc-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'label icon' 'current icon';
    align-items: center;
    width: 100%;
    gap: 0.2rem 1rem;
    padding: 0.88rem 1rem;
    border: 1px solid rgba(65,162,215,0.30);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .11);
    color: var(--humanitycare-navy);
    font-family: var(--humanitycare-body-font, var(--humanitycare-font));
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(12px);
  }

  .mobile-toc-label {
    grid-area: label;
    color: var(--humanitycare-green);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-current-heading {
    grid-area: current;
    overflow: hidden;
    color: var(--humanitycare-navy);
    font-size: var(--humanitycare-body-size-tablet, var(--humanitycare-body-size, 16px));
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-toc-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f2faeb;
    color: var(--humanitycare-navy);
    font-size: 1.05rem;
    font-weight: 900;
    transition: transform .18s ease;
  }

  .single-post-sidebar.is-open .mobile-toc-icon {
    transform: rotate(180deg);
  }

  /* Toggle bar: dark background when open */
  .single-post-sidebar.is-open .mobile-toc-toggle {
    background: #15335E;
    border-color: rgba(65,162,215,0.30);
    box-shadow: 0 12px 32px rgba(15,23,42,.3);
  }
  .single-post-sidebar.is-open .mobile-toc-label {
    color: var(--humanitycare-green);
  }
  .single-post-sidebar.is-open .mobile-current-heading {
    color: rgba(255,255,255,.9);
  }
  .single-post-sidebar.is-open .mobile-toc-icon {
    background: rgba(65,162,215,0.30);
    color: var(--humanitycare-green);
  }

  .single-post-toc {
    display: none;
    max-height: min(58vh, 460px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.55rem;
    padding: 0.95rem 1rem !important;
    border: 1px solid rgba(65,162,215,0.30);
    border-radius: 14px;
    /* Dark theme when open */
    background: #15335E;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .35);
  }

  .single-post-sidebar.is-open .single-post-toc {
    display: block;
  }

  /* Dark theme: link colours */
  .single-post-sidebar.is-open .single-post-toc a {
    color: rgba(255,255,255,.6) !important;
  }
  .single-post-sidebar.is-open .single-post-toc a:hover,
  .single-post-sidebar.is-open .single-post-toc a.active {
    color: #ffffff !important;
    font-weight: 700;
  }
  /* Active left-bar stays green */
  .single-post-sidebar.is-open .single-post-toc a.active::before {
    background: var(--humanitycare-green);
  }
  /* Bullet dots → green */
  .single-post-sidebar.is-open .single-post-toc li::before {
    background: var(--humanitycare-green);
    opacity: 1;
  }
  /* Border between items */
  .single-post-sidebar.is-open .single-post-toc ul {
    border-bottom: 0;
  }

  .single-post-toc .single-post-sidebar-heading {
    display: none;
  }

  .single-post-toc ul {
    padding: 0;
    border-bottom: 0;
  }

  .single-post-share {
    display: none !important;
  }

  .humanitycare-single-post .single-post-main-content h2 {
    font-size: var(--humanitycare-h2-size-tablet, 1.75rem);
  }

  .humanitycare-single-post .single-post-main-content h3 {
    font-size: var(--humanitycare-h3-size-tablet, 1.375rem);
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .humanitycare-single-post .single-post-hero {
    padding-top: 2rem;
  }

  .humanitycare-single-post .single-post-title {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .single-post-quick-answer {
    margin-top: 1.35rem;
    padding: 1.85rem 1rem 1.15rem;
    border-radius: 14px;
  }

  .single-post-quick-answer .quick-answer-label {
    left: 0.9rem;
    min-height: 1.9rem;
    padding: 0.32rem 0.85rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .single-post-author-card {
    gap: 0.9rem;
    padding: 1rem 0;
  }

  .single-author-left {
    width: 100%;
    align-items: flex-start;
  }

  .single-author-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 0.92rem;
  }

  /* Mobile: all three pills in one compact row */
  .single-author-facts {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .single-author-pill {
    flex: 1;
    min-height: 26px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7em;
    white-space: nowrap;
    justify-content: center;
    border-radius: 999px;
  }

  .single-post-featured-full {
    width: calc(100% - 2rem);
    margin-bottom: 2rem;
    border-radius: 12px;
  }

  .single-post-featured-img,
  .single-post-featured-full img {
    height: 250px;
    border-radius: 12px;
  }

  .single-post-sidebar {
    top: 66px;
  }

  .mobile-current-heading {
    font-size: var(--humanitycare-body-size-mobile, var(--humanitycare-body-size, 16px));
  }

  .humanitycare-single-post .single-post-main-content {
    font-size: var(--humanitycare-body-size-mobile, var(--humanitycare-body-size, 16px));
  }

  .humanitycare-single-post .single-post-main-content h2 {
    font-size: var(--humanitycare-h2-size-mobile, 1.5rem);
  }

  .humanitycare-single-post .single-post-main-content h3 {
    font-size: var(--humanitycare-h3-size-mobile, 1.25rem);
  }

  .single-post-main-content .pxb-table {
    min-width: 520px;
  }
}


/* ============================================================
   HUMANITYCARE BLOG POST COMPONENTS — v2
   Integrated into theme style.css (v1.0.8+)
   
   REMOVED (handled by single.php / theme):
     - Breadcrumb (.pxb-bc)
     - Post meta bar (.pxb-meta, .pxb-avatar, .pxb-author-*)
     - Inline table of contents (.pxb-toc)
   
   These are now output by the theme's single-post-hero,
   single-post-author-card, and single-post-sidebar (TOC).
   ============================================================ */

/* ── Reading progress bar ── */
.px-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: #41A2D7;
  z-index: 99999;
  width: 0%;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Post wrapper: reset max-width when nested in theme layout ── */
.pxblog-post {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.single-post-main-content .pxblog-post {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* ── Section label (eyebrow / subsection intro) ── */
.pxblog-post .pxb-section-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #2E84B8 !important;
  margin-bottom: 10px;
}

/* ── Featured answer box ── */
.pxblog-post .pxb-answer {
  border: 2px solid #41A2D7;
  border-radius: 10px;
  padding: 22px 26px;
  background: rgba(65,162,215,0.30);
  margin: 0 0 2em;
  position: relative;
}
.pxblog-post .pxb-answer::before {
  content: 'Quick Answer';
  position: absolute; top: -12px; left: 18px;
  background: #41A2D7;
  color: #15335E;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 100px;
}
.pxblog-post .pxb-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Key takeaways ── */
.pxblog-post .pxb-takeaways {
  background: #15335E;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 0 0 2em;
}
.pxblog-post .pxb-takeaways ul {
  list-style: none;
  margin: 0; padding: 0;
}
.pxblog-post .pxb-takeaways li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 9px;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.pxblog-post .pxb-takeaways li::before {
  content: '✓';
  color: #41A2D7; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ── Callout boxes ── */
.pxblog-post .pxb-callout {
  border-radius: 8px;
  padding: 18px 22px;
  margin: 1.6em 0;
  border-left: 4px solid;
}
.pxblog-post .pxb-callout p:last-child { margin-bottom: 0; }
.pxblog-post .pxb-callout-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 7px;
}
.pxblog-post .pxb-callout-info    { background: #E6F1FB; border-color: #2E84B8; }
.pxblog-post .pxb-callout-info    .pxb-callout-label { color: #0C447C !important; }
.pxblog-post .pxb-callout-info    p { color: #2E84B8; font-size: 15px; }
.pxblog-post .pxb-callout-warning { background: #FAEEDA; border-color: #BA7517; }
.pxblog-post .pxb-callout-warning .pxb-callout-label { color: #633806 !important; }
.pxblog-post .pxb-callout-warning p { color: #854F0B; font-size: 15px; }
.pxblog-post .pxb-callout-success { background: rgba(65,162,215,0.30); border-color: #2E84B8; }
.pxblog-post .pxb-callout-success .pxb-callout-label { color: #27500A !important; }
.pxblog-post .pxb-callout-success p { color: #185F8C; font-size: 15px; }

/* ── SVG / diagram wrapper ── */
.pxblog-post .pxb-svg-wrap {
  background: #f5f6f7;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 1.8em 0;
  overflow: hidden;
}
.pxblog-post .pxb-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Stats grid ── */
.pxblog-post .pxb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 1.8em 0;
}
.pxblog-post .pxb-stat {
  background: #15335E;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
}
.pxblog-post .pxb-stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: #41A2D7;
  line-height: 1;
  margin-bottom: 6px;
}
.pxblog-post .pxb-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}
.pxblog-post .pxb-stat-src {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  margin-top: 5px;
}

/* ── Card grids ── */
.pxblog-post .pxb-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 1.6em 0;
}
.pxblog-post .pxb-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #41A2D7;
  border-radius: 10px;
  padding: 22px 20px;
}
.pxblog-post .pxb-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.pxblog-post .pxb-card p {
  font-size: 14px;
  color: #6b7a8d;
  line-height: 1.65;
  margin: 0 0 8px;
}
.pxblog-post .pxb-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

/* ── Inline tags / colour badges ── */
.pxblog-post .pxb-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
  margin: 2px;
}
.pxblog-post .pxb-tag-green { background: rgba(65,162,215,0.30); color: #185F8C; border: 1px solid rgba(65,162,215,0.30); }
.pxblog-post .pxb-tag-blue  { background: #E6F1FB; color: #2E84B8; }
.pxblog-post .pxb-tag-navy  { background: #15335E; color: rgba(255,255,255,.7); }

/* ── Tables ── */
.pxblog-post .pxb-table-wrap {
  overflow-x: auto;
  margin: 1.8em 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.pxblog-post .pxb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
.pxblog-post .pxb-table thead tr { background: #15335E; }
.pxblog-post .pxb-table th {
  padding: 13px 15px;
  color: rgba(255,255,255,.75) !important;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  white-space: nowrap;
}
.pxblog-post .pxb-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  color: #3A567E;
  vertical-align: top;
  line-height: 1.5;
}
.pxblog-post .pxb-table tr:last-child td { border-bottom: none; }
.pxblog-post .pxb-table tr:hover td { background: #f5f6f7; }
.pxblog-post .pxb-table .pxb-yes     { color: #185F8C; font-weight: 700; font-size: 15px; }
.pxblog-post .pxb-table .pxb-no      { color: #c0c8d4; font-size: 15px; }
.pxblog-post .pxb-table .pxb-partial { color: #854F0B; font-weight: 600; }

/* ── Buttons ── */
.pxblog-post .pxb-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: #41A2D7 !important;
  color: #15335E !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin: 4px;
}
.pxblog-post .pxb-btn:hover {
  background: #2E84B8 !important;
  color: #15335E !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}
.pxblog-post .pxb-btn::after { content: ' →'; }
.pxblog-post .pxb-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.4) !important;
}
.pxblog-post .pxb-btn-outline:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* ── CTA block ── */
.pxblog-post .pxb-cta {
  background: linear-gradient(135deg, #15335E 0%, #15335E 100%);
  border-radius: 12px;
  padding: 32px;
  margin: 2.2em 0;
  text-align: center;
  border: 1px solid rgba(65,162,215,0.30);
}
.pxblog-post .pxb-cta h3 {
  color: #fff !important;
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.pxblog-post .pxb-cta p {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ── FAQ accordion (HTML5 details/summary — no JS, WordPress-safe) ── */
.pxblog-post .pxb-faq { margin: 1.6em 0; }

/* Borders */
.pxblog-post .pxb-faq-item {
  border-bottom: 1px solid #e2e8f0;
  display: block;
}
.pxblog-post .pxb-faq-item:first-of-type { border-top: 1px solid #e2e8f0; }

/* Strip native details/summary triangle in all browsers */
.pxblog-post details.pxb-faq-item > summary { list-style: none; }
.pxblog-post details.pxb-faq-item > summary::-webkit-details-marker { display: none; }

/* Summary row — flex so icon sits flush right */
.pxblog-post .pxb-faq-q {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  width: 100% !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
}

/* Question text */
.pxblog-post .pxb-faq-q-text {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a2430 !important;
  line-height: 1.45 !important;
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* ── Toggle icon via ::after on summary ──
   CSS-generated — never saved in post HTML, never stripped by WordPress.
   + sign (closed): two SVG lines crossing
   − sign (open):   one SVG horizontal line                              */
.pxblog-post .pxb-faq-q::after {
  content: '' !important;
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #f0f1f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%236b7a8d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border: 1px solid #dde2ea;
  transition: background-color .2s, border-color .2s, background-image .15s;
}
/* Open state — minus icon, green tint */
.pxblog-post details[open] > .pxb-faq-q::after {
  background-color: rgba(65,162,215,0.30);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%233B6D11' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  border-color: rgba(99,191,17,.4);
}

/* Answer panel */
.pxblog-post .pxb-faq-a {
  padding: 2px 0 18px;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #3A567E !important;
  display: block !important;
}
.pxblog-post .pxb-faq-a p {
  font-size: 15px !important;
  color: #3A567E !important;
  margin-bottom: .75em !important;
}
.pxblog-post .pxb-faq-a p:last-child { margin-bottom: 0 !important; }

/* ── Related posts ── */
.pxblog-post .pxb-related {
  border-top: 1px solid #e2e8f0;
  padding-top: 2em;
  margin-top: 2.5em;
}
.pxblog-post .pxb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pxblog-post .pxb-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f5f6f7;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: all .2s;
}
.pxblog-post .pxb-related-card:hover {
  border-color: #41A2D7;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.pxblog-post .pxb-related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #2E84B8;
}
.pxblog-post .pxb-related-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2430;
  line-height: 1.4;
}

/* ── Responsive overrides for blog components ── */
@media (max-width: 720px) {
  .pxblog-post .pxb-stats        { grid-template-columns: 1fr 1fr; }
  .pxblog-post .pxb-cards-2      { grid-template-columns: 1fr; }
  .pxblog-post .pxb-cta          { padding: 24px 18px; }
  .pxblog-post .pxb-takeaways    { padding: 20px; }
  .pxblog-post .pxb-related-grid { grid-template-columns: 1fr; }
  .pxblog-post .pxb-btn          { width: 100%; justify-content: center; margin: 4px 0; }
}


/* ============================================================
   CPT ARCHIVE PAGES — Services / Solutions / Industries
   ============================================================ */

/* ── Hero ── */
.hc-cpt-hero {
  background: var(--humanitycare-navy);
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hc-cpt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(65,162,215,0.30) 0%, transparent 70%);
  pointer-events: none;
}
.hc-cpt-hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
.hc-cpt-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--humanitycare-green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hc-cpt-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--humanitycare-green);
  border-radius: 2px;
}
.hc-cpt-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hc-cpt-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

/* ── Grid section ── */
.hc-cpt-grid-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--humanitycare-bg-light);
}
.hc-cpt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Card ── */
.hc-cpt-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--humanitycare-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  list-style: none;
}
.hc-cpt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  border-color: var(--humanitycare-green);
}
.hc-cpt-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

/* Card image area */
.hc-cpt-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--humanitycare-navy);
}
.hc-cpt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hc-cpt-card:hover .hc-cpt-card-image img {
  transform: scale(1.05);
}

/* Placeholder when no featured image */
.hc-cpt-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-placeholder-service  { background: linear-gradient(135deg, #15335E 0%, #1a3050 100%); color: var(--humanitycare-green); }
.hc-placeholder-solution { background: linear-gradient(135deg, #15335E 0%, #1e3a5f 100%); color: #60a5fa; }
.hc-placeholder-industry { background: linear-gradient(135deg, #15335E 0%, #243d57 100%); color: #a78bfa; }

/* Badge */
.hc-cpt-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(65,162,215,0.30);
  color: var(--humanitycare-navy);
  backdrop-filter: blur(4px);
}
.hc-badge-solution { background: rgba(96,165,250,.9); color: #0c2340; }
.hc-badge-industry { background: rgba(167,139,250,.9); color: #1e0a40; }

/* Card body */
.hc-cpt-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.hc-cpt-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--humanitycare-navy);
  line-height: 1.3;
  margin: 0;
}
.hc-cpt-card:hover .hc-cpt-card-title {
  color: var(--humanitycare-green);
}
.hc-cpt-card-excerpt {
  font-size: 0.875rem;
  color: var(--humanitycare-text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-cpt-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--humanitycare-navy);
  margin-top: 0.4rem;
  transition: color 0.18s, gap 0.18s;
}
.hc-cpt-card:hover .hc-cpt-card-cta {
  color: var(--humanitycare-green);
  gap: 0.55rem;
}

/* ── Empty state ── */
.hc-cpt-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--humanitycare-text-light);
}
.hc-cpt-empty a { color: var(--humanitycare-green); font-weight: 600; }

/* ── Pagination ── */
.hc-cpt-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hc-cpt-pagination .page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid var(--humanitycare-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--humanitycare-text);
  text-decoration: none;
  transition: all 0.18s;
}
.hc-cpt-pagination .page-numbers:hover,
.hc-cpt-pagination .page-numbers.current {
  background: var(--humanitycare-green);
  border-color: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-weight: 700;
}

/* ── CTA Banner ── */
.hc-cpt-cta-banner {
  background: var(--humanitycare-navy);
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.hc-cpt-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(65,162,215,0.30) 0%, transparent 65%);
  pointer-events: none;
}
.hc-cpt-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hc-cpt-cta-content { max-width: 580px; }
.hc-cpt-cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.hc-cpt-cta-content p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin: 0;
  line-height: 1.65;
}
.hc-cpt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .hc-cpt-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-cpt-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  .hc-cpt-grid { grid-template-columns: 1fr; }
  .hc-cpt-cta-actions { width: 100%; flex-direction: column; }
  .hc-cpt-cta-actions .btn { width: 100%; justify-content: center; }
}


/* ============================================================
   CPT SINGLE PAGES — FULL WIDTH FOR ELEMENTOR
   Removes every width/padding constraint so Elementor has
   a completely clean canvas on service/solution/industry pages.
   ============================================================ */
/* Widen only the main content area — never touch header/footer containers */
body.hc-cpt-single .site-main,
body.hc-cpt-single .entry-content,
body.hc-cpt-single .post-content,
body.hc-cpt-single .single-post-layout,
body.hc-cpt-single .single-post-main-content,
body.hc-cpt-single .single-post-hero {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Only the site-main direct container child — not header/footer containers */
body.hc-cpt-single .site-main > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove any top padding Elementor doesn't need */
body.hc-cpt-single .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Elementor's own sections handle spacing */
body.hc-cpt-single .elementor-section,
body.hc-cpt-single .elementor-container {
  max-width: 100%;
}


/* ============================================================
   CPT SINGLE PAGES — TRANSPARENT HEADER
   On service / solution / industry pages the header overlays
   the Elementor hero section. Becomes solid on scroll.
   ============================================================ */
body.hc-cpt-single .site-header {
  background: transparent;
  position: fixed;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.hc-cpt-single .site-header.scrolled {
  background: var(--humanitycare-navy);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Push page content down so it starts below the fixed header */
body.hc-cpt-single .site-main {
  padding-top: 0 !important;
}



/* ============================================================
   HUMANITYCARE TYPOGRAPHY HARD-CODE FIX
   Added by ChatGPT: force theme-controlled typography variables
   onto theme titles/components that were previously hardcoded.
   Elementor widget overrides can still win because Elementor uses
   per-widget generated selectors.
   ============================================================ */

body {
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px);
  font-weight: var(--humanitycare-body-weight, 400);
  line-height: var(--humanitycare-body-line-height, 1.6);
  letter-spacing: var(--humanitycare-body-letter-spacing, 0);
  color: var(--humanitycare-body-color, var(--humanitycare-text));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
  color: var(--humanitycare-heading-color, var(--humanitycare-navy));
}

h1,
.single-post-title,
.humanitycare-single-post .single-post-title,
.archive-title {
  font-size: var(--humanitycare-h1-size, 2.5rem);
  font-weight: var(--humanitycare-h1-weight, 700);
  line-height: var(--humanitycare-h1-line-height, 1.2);
  letter-spacing: var(--humanitycare-h1-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

h2,
.featured-post-content h2,
.pre-footer-cta h2,
.post-content h2,
.humanitycare-single-post .single-post-main-content h2 {
  font-size: var(--humanitycare-h2-size, 2rem);
  font-weight: var(--humanitycare-h2-weight, 700);
  line-height: var(--humanitycare-h2-line-height, 1.2);
  letter-spacing: var(--humanitycare-h2-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

h3,
.cta-box h3,
.related-posts-title,
.post-content h3,
.humanitycare-single-post .single-post-main-content h3 {
  font-size: var(--humanitycare-h3-size, 1.5rem);
  font-weight: var(--humanitycare-h3-weight, 700);
  line-height: var(--humanitycare-h3-line-height, 1.2);
  letter-spacing: var(--humanitycare-h3-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

h4,
.post-content h4,
.humanitycare-single-post .single-post-main-content h4 {
  font-size: var(--humanitycare-h4-size, 1.125rem);
  font-weight: var(--humanitycare-h4-weight, 700);
  line-height: var(--humanitycare-h4-line-height, 1.3);
  letter-spacing: var(--humanitycare-h4-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

h5,
.post-content h5,
.humanitycare-single-post .single-post-main-content h5 {
  font-size: var(--humanitycare-h5-size, 1rem);
  font-weight: var(--humanitycare-h5-weight, 700);
  line-height: var(--humanitycare-h5-line-height, 1.3);
  letter-spacing: var(--humanitycare-h5-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

h6,
.post-content h6,
.humanitycare-single-post .single-post-main-content h6 {
  font-size: var(--humanitycare-h6-size, 0.875rem);
  font-weight: var(--humanitycare-h6-weight, 700);
  line-height: var(--humanitycare-h6-line-height, 1.3);
  letter-spacing: var(--humanitycare-h6-letter-spacing, 0);
  font-family: var(--humanitycare-heading-font, var(--humanitycare-font));
}

.post-content,
.humanitycare-single-post .single-post-main-content,
.single-post-quick-answer,
.single-post-quick-answer p,
.single-post-author-card,
.single-author-description,
.info-box p,
.featured-post-excerpt,
.related-card-excerpt {
  font-family: var(--humanitycare-body-font, var(--humanitycare-font));
  font-size: var(--humanitycare-body-size, 16px);
  font-weight: var(--humanitycare-body-weight, 400);
  line-height: var(--humanitycare-body-line-height, 1.6);
  letter-spacing: var(--humanitycare-body-letter-spacing, 0);
  color: var(--humanitycare-body-color, var(--humanitycare-text));
}



/* ================================================================
   CASE STUDIES — ARCHIVE & SINGLE
   All classes prefixed hc-cs- (archive) and hc-css- (single)
   ================================================================ */

/* ── Shared variables ──────────────────────────────────────────── */
:root {
  --cs-radius: 12px;
  --cs-card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --cs-card-shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --cs-transition: 0.25s ease;
  --cs-border: 1px solid rgba(0,0,0,0.08);
}


/* ================================================================
   ARCHIVE — HERO
   ================================================================ */
.hc-cs-hero {
  position: relative;
  background: var(--humanitycare-navy, #1D4783);
  color: #fff;
  padding: 100px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hc-cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hc-cs-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65,162,215,0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,162,215,0.30) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hc-cs-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hc-cs-hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--humanitycare-green, #41A2D7);
  top: -100px; right: -80px;
}
.hc-cs-hero-glow-2 {
  width: 300px; height: 300px;
  background: #41A2D7;
  bottom: -60px; left: 10%;
}
.hc-cs-hero-inner {
  max-width: 680px;
}
.hc-cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--humanitycare-green, #41A2D7);
  margin-bottom: 20px;
}
.hc-cs-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
}
.hc-cs-hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 560px;
}
.hc-cs-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hc-cs-stat {
  display: flex;
  flex-direction: column;
  padding: 0 36px 0 0;
}
.hc-cs-stat:first-child { padding-left: 0; }
.hc-cs-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--humanitycare-green, #41A2D7);
  line-height: 1;
}
.hc-cs-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hc-cs-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  margin-right: 36px;
}


/* ================================================================
   ARCHIVE — FILTER TABS
   ================================================================ */
.hc-cs-filters-section {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 72px; /* below fixed header */
  z-index: 80;
}
.hc-cs-filters-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
}
.hc-cs-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.hc-cs-filter-sep {
  color: #d1d5db;
  margin: 0 8px;
  font-size: 1.1rem;
}
.hc-cs-filter-label {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  white-space: nowrap;
}
.hc-cs-filter-btn {
  background: transparent;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all var(--cs-transition);
  white-space: nowrap;
  font-family: inherit;
}
.hc-cs-filter-btn:hover {
  border-color: var(--humanitycare-green, #41A2D7);
  color: #111;
  background: rgba(65,162,215,0.30);
}
.hc-cs-filter-btn.active {
  background: var(--humanitycare-navy, #1D4783);
  border-color: var(--humanitycare-navy, #1D4783);
  color: #fff;
}
.hc-cs-filter-btn--ind.active {
  background: rgba(65,162,215,0.30);
  border-color: var(--humanitycare-green, #41A2D7);
  color: var(--humanitycare-navy, #1D4783);
}
.hc-cs-filter-btn.is-disabled,
.hc-cs-filter-btn:disabled {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.08);
  color: #9ca3af;
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.hc-cs-filter-btn.is-disabled:hover,
.hc-cs-filter-btn:disabled:hover {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.08);
  color: #9ca3af;
}


/* ================================================================
   ARCHIVE — FEATURED CARD
   ================================================================ */
.hc-cs-featured-section {
  padding: 60px 0 0;
  background: #f9fafb;
}
.hc-cs-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--humanitycare-green, #41A2D7);
  margin-bottom: 16px;
}
.hc-cs-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--cs-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  transition: transform var(--cs-transition), box-shadow var(--cs-transition);
  background: var(--humanitycare-navy, #1D4783);
}
.hc-cs-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.hc-cs-featured-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.hc-cs-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  display: block;
  transition: transform 0.4s ease;
}
.hc-cs-featured-card:hover .hc-cs-featured-image img {
  transform: scale(1.04);
}
.hc-cs-featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e2a3d 0%, #15335E 100%);
  min-height: 360px;
}
.hc-cs-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(21,27,43,0.6));
}
.hc-cs-featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hc-cs-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hc-cs-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.hc-cs-tag--ind {
  background: rgba(65,162,215,0.30);
  color: var(--humanitycare-green, #41A2D7);
}
.hc-cs-tag--svc {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.hc-cs-tag--year {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}
.hc-cs-featured-title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
}
.hc-cs-featured-excerpt {
  color: rgba(255,255,255,0.68);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 28px;
}
.hc-cs-featured-metrics {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hc-cs-featured-metric { display: flex; flex-direction: column; }
.hc-cs-featured-metric .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--humanitycare-green, #41A2D7);
  line-height: 1;
}
.hc-cs-featured-metric .lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.hc-cs-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hc-cs-featured-client {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.hc-cs-featured-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--humanitycare-green, #41A2D7);
  transition: gap var(--cs-transition);
}
.hc-cs-featured-card:hover .hc-cs-featured-cta {
  letter-spacing: 0.01em;
}


/* ================================================================
   ARCHIVE — GRID & CARDS
   ================================================================ */
.hc-cs-grid-section {
  padding: 60px 0 80px;
  background: #f9fafb;
}
.hc-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hc-cs-grid .hc-cs-empty {
  grid-column: 1 / -1;
}
.hc-cs-grid--related {
  grid-template-columns: repeat(3, 1fr);
}
.hc-cs-card {
  background: #fff;
  border-radius: var(--cs-radius);
  overflow: hidden;
  box-shadow: var(--cs-card-shadow);
  border: var(--cs-border);
  transition: transform var(--cs-transition), box-shadow var(--cs-transition);
}
.hc-cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-card-shadow-hover);
}
.hc-cs-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.hc-cs-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2235 0%, #15335E 100%);
}
.hc-cs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hc-cs-card:hover .hc-cs-card-image img {
  transform: scale(1.05);
}
.hc-cs-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
}
.hc-cs-card-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(21,27,43,0.85);
  color: #41A2D7;
  border: 1px solid rgba(65,162,215,0.30);
}
.hc-cs-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hc-cs-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hc-cs-card-industry {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--humanitycare-green, #41A2D7);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hc-cs-card-client {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: #9ca3af;
  font-weight: 500;
  margin-left: auto;
}
.hc-cs-card-client.is-confidential {
  color: #9ca3af;
}
.hc-cs-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--humanitycare-navy, #1D4783);
  line-height: 1.4;
  margin: 0 0 10px;
  transition: color var(--cs-transition);
}
.hc-cs-card:hover .hc-cs-card-title {
  color: var(--humanitycare-green, #41A2D7);
}
.hc-cs-card-excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.hc-cs-card-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(65,162,215,0.30);
  border-radius: 6px;
  border: 1px solid rgba(65,162,215,0.30);
  margin-bottom: 14px;
}
.hc-cs-metric-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--humanitycare-green, #41A2D7);
}
.hc-cs-metric-lbl {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}
.hc-cs-card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--humanitycare-navy, #1D4783);
  margin-top: auto;
  transition: color var(--cs-transition);
}
.hc-cs-card:hover .hc-cs-card-cta {
  color: var(--humanitycare-green, #41A2D7);
}

/* Load More */
.hc-cs-load-more-wrap {
  text-align: center;
  margin-top: 48px;
}
.hc-cs-load-more {
  position: relative;
  min-width: 220px;
}
.hc-cs-load-more-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: px-spin 0.7s linear infinite;
}
.hc-cs-load-more.loading .hc-cs-load-more-text { display: none; }
.hc-cs-load-more.loading .hc-cs-load-more-spinner { display: inline-block; }
@keyframes px-spin { to { transform: rotate(360deg); } }

/* Empty state */
.hc-cs-empty {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}
.hc-cs-empty svg {
  display: block;
  margin: 0 auto 16px;
  opacity: 0.3;
}
.hc-cs-empty p { margin-bottom: 24px; font-size: 1rem; }


/* ================================================================
   ARCHIVE — COMPLIANCE STRIP
   ================================================================ */
.hc-cs-compliance-strip {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 32px 0;
  text-align: center;
}
.hc-cs-compliance-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 16px;
}
.hc-cs-compliance-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hc-cs-compliance-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  letter-spacing: 0.04em;
}


/* ================================================================
   SINGLE — HERO
   ================================================================ */
.hc-cs-single .site-main {
  background: #fff;
}
.hc-css-hero {
  position: relative;
  background: var(--humanitycare-navy, #1D4783);
  color: #fff;
  padding: 100px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hc-css-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #15335E 0%, #1e2d3d 50%, #1D4783 100%);
}
.hc-css-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.hc-css-hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--humanitycare-green, #41A2D7);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  top: -200px;
  right: -100px;
}
.hc-css-hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hc-css-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hc-css-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21,27,43,0.95) 50%, rgba(21,27,43,0.7));
}
.hc-css-hero-inner {
  max-width: 720px;
}
.hc-css-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}
.hc-css-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--cs-transition);
}
.hc-css-breadcrumb a:hover {
  color: var(--humanitycare-green, #41A2D7);
}
.hc-css-breadcrumb span:not([aria-hidden]) {
  color: rgba(255,255,255,0.7);
}
.hc-css-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hc-css-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.hc-css-tag--ind {
  background: rgba(65,162,215,0.30);
  color: var(--humanitycare-green, #41A2D7);
}
.hc-css-tag--svc {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.hc-css-tag--year {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
}
.hc-css-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.hc-css-client-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hc-css-client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(65,162,215,0.30);
  border: 1.5px solid rgba(65,162,215,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--humanitycare-green, #41A2D7);
  font-weight: 700;
  font-size: 1rem;
}
.hc-css-client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-css-client-name {
  font-size: var(--humanitycare-breadcrumb-font-size, 0.9375rem);
  font-weight: 600;
  color: #fff;
}
.hc-css-client-type {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}


/* ================================================================
   SINGLE — METRICS STRIP
   ================================================================ */
.hc-css-metrics-strip {
  background: var(--humanitycare-navy, #1D4783);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hc-css-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 0;
  flex-wrap: wrap;
}
.hc-css-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hc-css-metric:last-child { border-right: none; }
.hc-css-metric-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--humanitycare-green, #41A2D7);
  line-height: 1;
}
.hc-css-metric-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}


/* ================================================================
   SINGLE — LAYOUT (main + sidebar)
   ================================================================ */
.hc-css-layout {
  padding: 64px 0 80px;
}
.hc-css-layout-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.hc-css-sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Sections (challenge/solution/outcome) ── */
.hc-css-section {
  display: flex;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.hc-css-section:first-child { padding-top: 0; }
.hc-css-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.hc-css-icon-challenge {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}
.hc-css-icon-solution {
  background: rgba(65,162,215,0.30);
  color: var(--humanitycare-green, #41A2D7);
}
.hc-css-icon-outcome {
  background: rgba(59,130,246,0.1);
  color: #41A2D7;
}
.hc-css-section-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--humanitycare-navy, #1D4783);
  margin: 0 0 12px;
}
.hc-css-section-content p {
  color: #374151;
  line-height: 1.7;
  margin: 0;
  font-size: 0.9375rem;
}

/* ── Main body content (WordPress editor) ── */
.hc-css-body-content {
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.hc-css-body-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--humanitycare-navy, #1D4783);
  margin: 32px 0 14px;
}
.hc-css-body-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--humanitycare-navy, #1D4783);
  margin: 24px 0 10px;
}
.hc-css-body-content p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.hc-css-body-content ul, .hc-css-body-content ol {
  color: #374151;
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.hc-css-body-content li { margin-bottom: 6px; }

/* ── Outcome section ── */
.hc-css-section--outcome {
  background: rgba(65,162,215,0.30);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid rgba(65,162,215,0.30);
  margin: 16px 0;
}
.hc-css-section--outcome .hc-css-section-content h2 {
  color: var(--humanitycare-green, #41A2D7);
}

/* ── Quote block ── */
.hc-css-quote {
  margin: 32px 0;
  padding: 32px 36px;
  background: var(--humanitycare-navy, #1D4783);
  border-radius: 12px;
  position: relative;
  color: #fff;
}
.hc-css-quote-mark {
  color: var(--humanitycare-green, #41A2D7);
  margin-bottom: 16px;
  opacity: 0.7;
}
.hc-css-quote p {
  font-size: 1.0625rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}
.hc-css-quote cite {
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--humanitycare-green, #41A2D7);
}


/* ================================================================
   SINGLE — SIDEBAR
   ================================================================ */
.hc-css-sidebar-card {
  background: #fff;
  border: var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 24px;
  box-shadow: var(--cs-card-shadow);
}
.hc-css-sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.hc-css-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hc-css-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hc-css-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6b7280;
}
.hc-css-details-list li > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hc-css-detail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  font-weight: 600;
}
.hc-css-detail-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--humanitycare-navy, #1D4783);
}
.hc-css-compliance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hc-css-comp-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(65,162,215,0.30);
  color: #2d5a15;
  border: 1px solid rgba(65,162,215,0.30);
  letter-spacing: 0.04em;
}

/* CTA card */
.hc-css-sidebar-cta {
  background: var(--humanitycare-navy, #1D4783);
  color: #fff;
  text-align: center;
}
.hc-css-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(65,162,215,0.30);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--humanitycare-green, #41A2D7);
}
.hc-css-sidebar-cta h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.hc-css-sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
  line-height: 1.55;
}
.hc-css-sidebar-cta .btn-primary {
  width: 100%;
  display: block;
  text-align: center;
  margin-bottom: 14px;
}
.hc-css-all-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: block;
  transition: color var(--cs-transition);
}
.hc-css-all-link:hover {
  color: var(--humanitycare-green, #41A2D7);
}


/* ================================================================
   SINGLE — RELATED CASE STUDIES
   ================================================================ */
.hc-css-related {
  background: #f9fafb;
  padding: 64px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.hc-css-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.hc-css-related-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--humanitycare-navy, #1D4783);
  margin: 0;
}
.hc-css-related-header .hc-css-all-link {
  color: var(--humanitycare-green, #41A2D7);
  font-size: 0.875rem;
}
.hc-css-related-header .hc-css-all-link:hover {
  color: var(--humanitycare-navy, #1D4783);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hc-cs-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-cs-grid--related { grid-template-columns: repeat(2, 1fr); }
  .hc-cs-featured-card { grid-template-columns: 1fr; }
  .hc-cs-featured-image { min-height: 260px; }
  .hc-css-layout-inner { grid-template-columns: 1fr; }
  .hc-css-sidebar-inner { position: static; }
  .hc-css-metrics { justify-content: flex-start; }
  .hc-css-metric { padding: 0 32px; }
}

@media (max-width: 768px) {
  .hc-cs-hero { padding: 80px 0 48px; }
  .hc-cs-hero-stats { gap: 20px; }
  .hc-cs-stat { padding: 0 20px 0 0; }
  .hc-cs-stat-divider { margin-right: 20px; }
  .hc-cs-grid { grid-template-columns: 1fr; }
  .hc-cs-grid--related { grid-template-columns: 1fr; }
  .hc-cs-filters-section { position: static; }
  .hc-css-hero { padding: 80px 0 48px; }
  .hc-css-metrics { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 20px; }
  .hc-css-metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 0 16px; width: 100%; }
  .hc-css-metric:last-child { border-bottom: none; padding-bottom: 0; }
  .hc-css-section { flex-direction: column; gap: 12px; }
  .hc-css-quote { padding: 24px 20px; }
  .hc-css-related-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ================================================================
   CASE STUDY POST CONTENT STYLES  (.pxcs-*)
   Applied inside the WordPress editor content area on
   individual case study posts.
   ================================================================ */

.pxcs-body {
  max-width: 100%;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Intro block ── */
.pxcs-intro {
  font-size: 1.0625rem;
  color: #374151;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
}
.pxcs-intro p { margin-bottom: 16px; }
.pxcs-intro p:last-child { margin-bottom: 0; }

/* ── Sections ── */
.pxcs-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e5e7eb;
}
.pxcs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.pxcs-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1D4783;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #41A2D7;
  display: inline-block;
}
.pxcs-section p {
  margin-bottom: 16px;
  color: #374151;
}
.pxcs-section p:last-child { margin-bottom: 0; }
.pxcs-section em { color: #4b5563; font-style: italic; }

/* ── Lists ── */
.pxcs-list {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}
.pxcs-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.pxcs-list li:last-child { border-bottom: none; }
.pxcs-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #41A2D7;
  font-weight: 700;
}
.pxcs-list--checked li::before { content: "✓"; }

/* ── Needs grid (4-up icon cards) ── */
.pxcs-needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.pxcs-need-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
/* CSS counter — auto-numbers need cards continuously inside one content section.
   Important: the counter resets on the parent .pxcs-section, not on each .pxcs-needs-grid,
   so multiple grids/rows continue as 01, 02, 03, 04, 05, 06 instead of restarting. */
.pxcs-section {
  counter-reset: pxcs-needs;
}
.pxcs-need-item {
  counter-increment: pxcs-needs;
}
.pxcs-need-icon {
  width: 40px;
  height: 40px;
  background: rgba(65,162,215,0.30);
  border: 1.5px solid rgba(65,162,215,0.30);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2E84B8;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-family: var(--humanitycare-heading-font, sans-serif);
}
.pxcs-need-icon::before {
  content: counter(pxcs-needs, decimal-leading-zero);
}
.pxcs-need-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pxcs-need-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1D4783;
  display: block;
}
.pxcs-need-item span {
  font-size: 0.8375rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Dark highlight boxes (2-up) ── */
.pxcs-highlight-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.pxcs-highlight-box {
  padding: 24px;
  background: #1D4783;
  border-radius: 10px;
  color: #fff;
}
.pxcs-highlight-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #41A2D7;
  margin: 0 0 10px;
}
.pxcs-highlight-box p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}

/* ── Results grid (4-up cards) ── */
.pxcs-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.pxcs-result-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* CSS counter — auto-numbers result cards 01 02 03 04 */
.pxcs-results-grid {
  counter-reset: pxcs-results;
}
.pxcs-result-card {
  counter-increment: pxcs-results;
}
.pxcs-result-icon {
  width: 44px;
  height: 44px;
  background: rgba(65,162,215,0.30);
  border: 1.5px solid rgba(65,162,215,0.30);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #2E84B8;
  letter-spacing: -0.01em;
  font-family: var(--humanitycare-heading-font, sans-serif);
}
.pxcs-result-icon::before {
  content: counter(pxcs-results, decimal-leading-zero);
}
.pxcs-result-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1D4783;
  margin: 0 0 10px;
}
.pxcs-result-card p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pxcs-needs-grid,
  .pxcs-highlight-boxes,
  .pxcs-results-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   CASE STUDY — PDF DOWNLOAD BAR
   ================================================================ */
.hc-css-pdf-bar {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.hc-css-pdf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.hc-css-pdf-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 0.9375rem;
  font-weight: 500;
}
.hc-css-pdf-info svg {
  flex-shrink: 0;
  color: var(--humanitycare-green, #41A2D7);
}
.hc-css-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--humanitycare-navy, #1D4783);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
}
.hc-css-pdf-btn:hover {
  background: var(--humanitycare-green, #41A2D7);
  color: var(--humanitycare-navy, #1D4783);
  transform: translateY(-1px);
}
.hc-css-pdf-btn svg {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .hc-css-pdf-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ============================================
   404 PAGE
   ============================================ */
.error404 .humanitycare-404-main {
  min-height: 70vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(65,162,215,0.30), transparent 34%),
    linear-gradient(135deg, #1D4783 0%, #0F172A 100%);
}

.error404 .humanitycare-404-elementor-page {
  width: 100%;
}

.humanitycare-404-fallback {
  padding: clamp(5rem, 10vw, 9rem) 0;
  color: #fff;
}

.humanitycare-404-container {
  display: flex;
  justify-content: center;
}

.humanitycare-404-card {
  width: min(100%, 860px);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.humanitycare-404-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--humanitycare-green);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.humanitycare-404-card h1 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.humanitycare-404-card p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
}

.humanitycare-404-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.error404 .humanitycare-404-actions .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.error404 .humanitycare-404-actions .btn-outline:hover,
.error404 .humanitycare-404-actions .btn-outline:focus {
  background: #fff;
  color: var(--humanitycare-navy);
  border-color: #fff;
}

.humanitycare-404-search {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.humanitycare-404-search form {
  display: flex;
  gap: 0.75rem;
}

.humanitycare-404-search input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.humanitycare-404-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.humanitycare-404-search input[type="submit"],
.humanitycare-404-search button[type="submit"] {
  min-height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--humanitycare-green);
  color: var(--humanitycare-navy);
  font-weight: 800;
  cursor: pointer;
}

.humanitycare-404-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.humanitycare-404-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.9rem;
}

.humanitycare-404-links a:hover {
  color: #fff;
  border-color: rgba(65,162,215,0.30);
}

@media (max-width: 640px) {
  .humanitycare-404-search form {
    flex-direction: column;
  }

  .humanitycare-404-actions .btn,
  .humanitycare-404-search input[type="submit"],
  .humanitycare-404-search button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}


/* Theme Options logos + service category archive polish */
.site-header .custom-logo,
.mobile-menu-header .custom-logo {
  width: var(--humanitycare-header-logo-width, auto);
  height: var(--humanitycare-header-logo-height, 36px);
  max-height: none;
  max-width: 100%;
  object-fit: contain;
}
.hc-cpt-taxonomy-archive .hc-cpt-card-placeholder {
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
  padding: 1.25rem;
}
.hc-cpt-placeholder-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hc-placeholder-compliance { background: linear-gradient(135deg, #15335E 0%, #334155 100%); color: #38bdf8; }
.hc-cpt-taxonomy-archive .hc-cpt-card-excerpt:empty { display: none; }

/* ============================================================
   HumanityCare v1.0.5 — Service CPT layout repair
   Fixes normal editor service pages that were being treated as
   full-width Elementor pages and overlapped by the transparent header.
   ============================================================ */
body.hc-cpt-single .site-header,
body.hc-cpt-single .site-header.scrolled {
  position: sticky !important;
  top: 0;
  width: 100%;
  background: var(--humanitycare-navy) !important;
  box-shadow: none;
}

body.hc-cpt-single .site-content {
  overflow: visible;
}

body.hc-cpt-single .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hc-cpt-single--standard .hc-single-content-section {
  padding: clamp(2.75rem, 5vw, 5.25rem) 0 clamp(3.5rem, 6vw, 6rem);
  background: #ffffff;
}

.hc-cpt-single--standard .hc-single-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.hc-cpt-single--standard .hc-single-content > *:first-child {
  margin-top: 0 !important;
}

.hc-cpt-single--standard .hc-single-content h1 {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 1.2rem;
  color: var(--humanitycare-navy);
}

.hc-cpt-single--standard .hc-single-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 2.25rem 0 1rem;
  color: var(--humanitycare-navy);
}

.hc-cpt-single--standard .hc-single-content h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.22;
  margin: 1.8rem 0 0.8rem;
  color: var(--humanitycare-navy);
}

.hc-cpt-single--standard .hc-single-content p,
.hc-cpt-single--standard .hc-single-content li {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.75;
  color: var(--humanitycare-text);
}

.hc-cpt-single--standard .hc-single-content ul,
.hc-cpt-single--standard .hc-single-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.hc-cpt-single--standard .hc-single-content a {
  color: var(--humanitycare-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hc-cpt-single--standard .hc-single-content table,
.hc-cpt-single--standard .hc-single-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.hc-cpt-single--standard .hc-single-content th,
.hc-cpt-single--standard .hc-single-content td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--humanitycare-border);
  text-align: left;
  vertical-align: top;
}

.hc-cpt-single--standard .hc-single-content th {
  background: var(--humanitycare-bg-light);
  color: var(--humanitycare-navy);
  font-weight: 800;
}

@media (max-width: 768px) {
  .hc-cpt-single--standard .hc-single-content-section {
    padding-top: 2rem;
  }

  .hc-cpt-single--standard .hc-single-content h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* Archive card polish when a service has no featured image */
.hc-cpt-card-image--placeholder {
  background:
    radial-gradient(circle at 82% 18%, rgba(65,162,215,0.34) 0, transparent 30%),
    radial-gradient(circle at 16% 92%, rgba(255,255,255,0.08) 0, transparent 34%),
    linear-gradient(135deg, #15335E 0%, #1A3152 100%);
}

.hc-cpt-card-image--placeholder .hc-cpt-card-placeholder {
  min-height: 100%;
  color: #74B7E3;
}

.hc-cpt-card-image--placeholder .hc-cpt-card-placeholder svg {
  width: 46px;
  height: 46px;
  color: #74B7E3;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
}

.hc-cpt-card-image--placeholder .hc-cpt-card-badge,
.hc-cpt-card-placeholder + .hc-cpt-card-badge {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.14);
}

.hc-cpt-card-image--placeholder .hc-cpt-placeholder-label {
  color: #ffffff;
  background: rgba(255,255,255,0.16);
}


/* ============================================================
   CPT featured images on archive cards and single service pages
   ============================================================ */
.hc-cpt-card-image--has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hc-cpt-card-image--has-image .hc-cpt-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hc-cpt-single--standard .hc-single-featured-image {
  margin: 0 0 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--humanitycare-border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  background: var(--humanitycare-bg-light);
}

.hc-cpt-single--standard .hc-single-featured-image img,
.hc-cpt-single--standard .hc-single-featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hc-cpt-single--standard .hc-single-featured-image {
    margin-bottom: 1.4rem;
    border-radius: 16px;
  }
}

/* ============================================
   Breadcrumb Bar
   ============================================ */
.humanitycare-breadcrumb-bar {
  background: var(--humanitycare-breadcrumb-bg, #fff);
  border-top: 1px solid var(--humanitycare-breadcrumb-border, #D6E3F0);
  border-bottom: 1px solid var(--humanitycare-breadcrumb-border, #D6E3F0);
  position: relative;
  z-index: 3;
}

.humanitycare-breadcrumb-bar .container {
  min-height: var(--humanitycare-breadcrumb-height, 66px);
  display: flex;
  align-items: center;
}

.humanitycare-breadcrumb-nav {
  width: 100%;
  font-family: var(--humanitycare-body-font, var(--humanitycare-font, inherit));
  font-size: var(--humanitycare-breadcrumb-font-size, 0.9375rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--humanitycare-breadcrumb-text, #475670);
}

.humanitycare-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.humanitycare-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--humanitycare-breadcrumb-text, #475670);
}

.humanitycare-breadcrumb-item:not(:last-child)::after,
.humanitycare-breadcrumb-nav--yoast span:not(.breadcrumb_last)::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--humanitycare-breadcrumb-border, #D6E3F0);
  border-right: 2px solid var(--humanitycare-breadcrumb-border, #D6E3F0);
  transform: rotate(45deg);
  margin: 0 16px;
  flex: 0 0 auto;
}

.humanitycare-breadcrumb-item a,
.humanitycare-breadcrumb-nav--yoast a {
  color: var(--humanitycare-breadcrumb-link, #1D4783);
  text-decoration: none;
  transition: color .2s ease;
}

.humanitycare-breadcrumb-item a:hover,
.humanitycare-breadcrumb-nav--yoast a:hover {
  color: var(--humanitycare-secondary, #41A2D7);
}

.humanitycare-breadcrumb-item.is-current,
.humanitycare-breadcrumb-nav--yoast .breadcrumb_last {
  color: var(--humanitycare-breadcrumb-link, #1D4783);
  font-weight: 700;
}

.humanitycare-breadcrumb-nav--yoast > span,
.humanitycare-breadcrumb-nav--yoast > span > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .humanitycare-breadcrumb-bar .container {
    min-height: var(--humanitycare-breadcrumb-height-mobile, 54px);
  }

  .humanitycare-breadcrumb-nav {
    font-size: var(--humanitycare-breadcrumb-font-size-mobile, 0.8125rem);
  }

  .humanitycare-breadcrumb-item:not(:last-child)::after,
  .humanitycare-breadcrumb-nav--yoast span:not(.breadcrumb_last)::after {
    width: 6px;
    height: 6px;
    margin: 0 10px;
  }
}

/* ============================================
   ENHANCED FOOTER LAYOUT
   ============================================ */
.site-footer--enhanced {
  padding: clamp(3rem, 4vw, 4.5rem) 0 1.65rem;
}

.footer-modern-container {
  max-width: min(1280px, calc(100% - 40px));
}

.footer-modern-top-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(240px, .72fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer-modern-top-grid:not(.has-proof):not(.has-map) {
  grid-template-columns: minmax(300px, 420px);
}

.footer-modern-top-grid.has-map:not(.has-proof) {
  grid-template-columns: minmax(300px, .95fr) minmax(340px, 1.05fr);
}

.footer-modern-top-grid.has-proof:not(.has-map) {
  grid-template-columns: minmax(300px, .95fr) minmax(240px, .7fr);
}

.footer-modern-logo-wrap {
  margin-bottom: .85rem;
}

.footer-modern-logo-wrap .custom-logo-link,
.footer-modern-logo-wrap .site-title {
  display: inline-flex;
  margin-bottom: 0;
}

.footer-modern-logo-wrap .site-title {
  font-family: var(--humanitycare-footer-heading-font, var(--humanitycare-heading-font));
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: #fff;
  letter-spacing: -.02em;
}

.footer-modern-tagline {
  max-width: 320px;
  margin: 0 0 1.15rem;
  opacity: .88;
}

.footer-addresses {
  display: grid;
  gap: .72rem;
  margin: .9rem 0 1rem;
}

.footer-address-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .72rem;
  align-items: start;
  padding: .78rem .85rem;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  border-radius: 15px;
}

.footer-address-icon,
.footer-contact-lines svg,
.footer-map-placeholder span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(65,162,215,.14);
  color: var(--humanitycare-footer-link-hover-color, #41A2D7);
  flex: 0 0 32px;
}

.footer-address-icon svg,
.footer-contact-lines svg,
.footer-map-placeholder svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-address-card strong {
  display: block;
  color: #fff;
  font-family: var(--humanitycare-footer-heading-font, var(--humanitycare-heading-font));
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  margin-bottom: .2rem;
}

.footer-address-card span {
  display: block;
  color: var(--humanitycare-footer-text-color, rgba(255,255,255,.76));
}

.footer-contact-lines {
  display: grid;
  gap: .55rem;
  margin-top: .9rem;
}

.footer-contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  color: var(--humanitycare-footer-link-color, rgba(255,255,255,.82));
  font-size: var(--humanitycare-footer-link-size, .875rem);
  font-weight: var(--humanitycare-footer-link-weight, 500);
  text-decoration: none;
}

.footer-contact-lines a:hover {
  color: var(--humanitycare-footer-link-hover-color, #41A2D7);
}

.footer-modern-proof,
.footer-modern-map {
  min-width: 0;
}

.footer-modern-proof > h4,
.footer-modern-menu > h4,
.footer-modern-map > h4 {
  font-family: var(--humanitycare-footer-heading-font, var(--humanitycare-heading-font));
  font-size: var(--humanitycare-footer-heading-size, .8125rem);
  font-weight: var(--humanitycare-footer-heading-weight, 800);
  line-height: var(--humanitycare-footer-heading-line-height, 1.25);
  letter-spacing: var(--humanitycare-footer-heading-letter-spacing, .08em);
  text-transform: uppercase;
  color: var(--humanitycare-footer-heading-color, #41A2D7);
  margin: 0 0 .95rem;
}

.footer-proof-stack {
  display: grid;
  gap: .9rem;
  padding: .95rem;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
}

.footer-ndis-card {
  padding: .8rem;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
  width: fit-content;
  max-width: 100%;
}

.footer-ndis-logo {
  display: block;
  width: var(--humanitycare-footer-ndis-logo-width, 190px);
  height: var(--humanitycare-footer-ndis-logo-height, auto);
  max-width: 100%;
  object-fit: contain;
}

.footer-trustindex-wrap {
  width: 100%;
  max-width: 270px;
  overflow: hidden;
}

.footer-map-frame {
  width: 100%;
  min-height: var(--humanitycare-footer-map-height, 240px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.footer-map-frame iframe {
  display: block;
  width: 100% !important;
  height: var(--humanitycare-footer-map-height, 240px) !important;
  border: 0;
}

.footer-map-placeholder {
  min-height: var(--humanitycare-footer-map-height, 240px);
  display: grid;
  place-items: center;
  text-align: center;
  gap: .75rem;
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 1.15rem;
  background: rgba(255,255,255,.035);
}

.footer-map-placeholder p {
  margin: 0;
  max-width: 230px;
}

.footer-modern-menu {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-menu-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem clamp(1.4rem, 2.6vw, 2.4rem);
  align-items: start;
}

.footer-menu-group {
  min-width: 0;
}

.footer-menu-group h5 {
  margin: 0 0 .65rem;
  color: #fff;
  font-family: var(--humanitycare-footer-heading-font, var(--humanitycare-heading-font));
  font-size: .88rem;
  line-height: 1.25;
  letter-spacing: .025em;
  font-weight: 800;
}

.footer-menu-group ul,
.footer-modern-list,
.footer-wp-menu,
.footer-custom-menu-html ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu-group li,
.footer-modern-list li,
.footer-wp-menu li,
.footer-custom-menu-html li {
  margin: 0 0 .46rem;
}

.footer-menu-group a,
.footer-modern-list a,
.footer-wp-menu a,
.footer-custom-menu-html a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: .45rem;
  color: var(--humanitycare-footer-link-color, rgba(255,255,255,.78));
  font-family: var(--humanitycare-footer-font, var(--humanitycare-body-font));
  font-size: var(--humanitycare-footer-link-size, .875rem);
  font-weight: var(--humanitycare-footer-link-weight, 400);
  line-height: var(--humanitycare-footer-link-line-height, 1.4);
  letter-spacing: var(--humanitycare-footer-link-letter-spacing, 0);
  text-decoration: none;
}

.footer-menu-group a::before,
.footer-modern-list a::before,
.footer-wp-menu a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: .52em;
  border-radius: 50%;
  background: var(--humanitycare-footer-link-hover-color, #41A2D7);
  opacity: .55;
  flex: 0 0 5px;
  transition: transform .2s ease, opacity .2s ease;
}

.footer-menu-group a:hover,
.footer-modern-list a:hover,
.footer-wp-menu a:hover,
.footer-custom-menu-html a:hover {
  color: var(--humanitycare-footer-link-hover-color, #41A2D7);
}

.footer-menu-group a:hover::before,
.footer-modern-list a:hover::before,
.footer-wp-menu a:hover::before {
  opacity: 1;
  transform: scale(1.25);
}

.footer-modern-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--humanitycare-footer-text-color, rgba(255,255,255,.68));
  font-size: var(--humanitycare-footer-bottom-size, .875rem);
  font-weight: var(--humanitycare-footer-bottom-weight, 400);
  line-height: var(--humanitycare-footer-bottom-line-height, 1.5);
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .footer-modern-top-grid,
  .footer-modern-top-grid.has-map:not(.has-proof),
  .footer-modern-top-grid.has-proof:not(.has-map) {
    grid-template-columns: 1fr 1fr;
  }
  .footer-modern-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .footer-modern-container {
    max-width: min(100% - 30px, 1280px);
  }
  .footer-modern-top-grid,
  .footer-modern-top-grid.has-map:not(.has-proof),
  .footer-modern-top-grid.has-proof:not(.has-map),
  .footer-menu-groups {
    grid-template-columns: 1fr;
  }
  .footer-modern-map {
    grid-column: auto;
  }
  .footer-modern-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-footer--enhanced {
    padding-top: 2.75rem;
  }
  .footer-address-card {
    grid-template-columns: 30px 1fr;
    border-radius: 14px;
  }
  .footer-address-icon,
  .footer-contact-lines svg,
  .footer-map-placeholder span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}
