/*
Theme Name: HV Rehab Blog
Theme URI: https://hvrehabcentre.in/blog/
Author: Skylab SEO
Author URI: https://www.skylabseo.com/
Description: Custom blog theme matching hvrehabcentre.in
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hv-rehab-blog
*/

:root {
  --primary: #0057b7;
  --primary-dark: #003f8a;
  --secondary: #00b4d8;
  --accent: #f77f00;
  --light: #f0f7ff;
  --dark: #1a2238;
  --gray: #6b7280;
  --light-gray: #f8faff;
  --gradient: linear-gradient(135deg, #0057b7 0%, #00b4d8 100%);
  --shadow-card: 0 4px 24px rgba(0, 87, 183, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Base & Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

body.hv-blog-body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Ensure mobile overlay supports both .show and .open */
#mobOverlay.show,
#mobOverlay.open,
.mob-overlay.show,
.mob-overlay.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Inner Page Hero / Blog Banner (Matches about.html & services.html) */
.hv-blog-hero {
  background: linear-gradient(135deg, #001f5b 0%, #0057b7 55%, #0096c7 100%);
  padding: 64px 0 56px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hv-blog-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hv-blog-hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.12);
  pointer-events: none;
}

.hv-blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hv-blog-hero .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hv-blog-hero .section-title,
.hv-blog-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hv-blog-hero .section-title span,
.hv-blog-hero h1 span {
  color: #ffe600;
}

.hv-blog-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 22px;
}

/* Breadcrumbs inside Hero */
.hv-breadcrumbs {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

.hv-breadcrumbs nav,
.hv-breadcrumbs .rank-math-breadcrumb p {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hv-breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.hv-breadcrumbs a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.hv-breadcrumbs .sep,
.hv-breadcrumbs .separator {
  opacity: 0.65;
  margin: 0 4px;
}

.hv-breadcrumbs .current,
.hv-breadcrumbs .last {
  color: #ffe600;
  font-weight: 600;
}

/* Search Box inside Hero */
.hv-hero-search {
  max-width: 540px;
  margin: 0 auto;
}

.hv-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.hv-search-form:focus-within {
  border-color: var(--secondary);
}

.hv-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  min-width: 0;
}

.hv-search-input::placeholder {
  color: var(--gray);
}

.hv-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 11px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.hv-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 87, 183, 0.35);
}

/* Main Blog Section Wrapper */
.hv-blog-section {
  padding: 56px 0 72px;
}

/* Category Filter Pills (reuses .home-srv-tabs / .hs-tab pattern) */
.hv-cat-pills-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.home-srv-tabs.hv-cat-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px;
  background: var(--light);
  border-radius: 50px;
  border: 1px solid rgba(0, 87, 183, 0.12);
}

.hs-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

.hs-tab:hover:not(.active) {
  background: rgba(0, 87, 183, 0.08);
  color: var(--primary);
}

.hs-tab.active {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 87, 183, 0.32);
}

/* Featured Post Horizontal Card */
.hv-featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid rgba(0, 87, 183, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hv-featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 87, 183, 0.16);
}

.hv-featured-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  height: auto;
  align-self: center;
	
  background: var(--light);
  display: block;
}

.hv-featured-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hv-featured-post:hover .hv-featured-thumb img {
  transform: scale(1.03);
}

.hv-featured-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(247, 127, 0, 0.35);
}

.hv-featured-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hv-cat-badge {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease;
}

.hv-cat-badge:hover {
  background: var(--primary);
  color: #ffffff;
}

.hv-featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 14px;
}

.hv-featured-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hv-featured-title a:hover {
  color: var(--primary);
}

.hv-featured-excerpt {
  color: var(--gray);
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 20px;
}

.hv-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.hv-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hv-post-meta i {
  color: var(--primary);
}

.hv-featured-actions .btn {
  padding: 12px 28px;
  font-size: 0.92rem;
  text-decoration: none;
}

/* Posts Grid (3 cols desktop / 2 tablet / 1 mobile) */
.hv-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Post Card (template-parts/card.php) */
.hv-post-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 87, 183, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hv-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 87, 183, 0.16);
}

.hv-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  background: var(--light);
  overflow: hidden;
}

.hv-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.hv-post-card:hover .hv-card-thumb img {
  transform: scale(1.04);
}

.hv-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.4rem;
}

.hv-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hv-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-card-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hv-card-title a:hover {
  color: var(--primary);
}

.hv-card-excerpt {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 87, 183, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hv-card-meta {
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-card-meta i {
  color: var(--primary);
}

.hv-read-more {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap 0.2s ease, color 0.2s ease;
}

.hv-read-more:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* Numbered Pill Pagination */
.hv-pagination {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.hv-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 50px;
  background: #ffffff;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(0, 87, 183, 0.14);
  box-shadow: 0 2px 10px rgba(0, 87, 183, 0.06);
  transition: all 0.25s ease;
}

.hv-pagination .page-numbers:hover:not(.current):not(.dots) {
  background: var(--light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hv-pagination .page-numbers.current {
  background: var(--gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 87, 183, 0.3);
}

/* Bottom CTA Band (template-parts/cta-box.php) */
.hv-cta-band {
  background: var(--gradient);
  padding: 64px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hv-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hv-cta-text {
  max-width: 640px;
}

.hv-cta-text h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
  line-height: 1.25;
}

.hv-cta-text p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.hv-cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hv-cta-buttons .btn {
  text-decoration: none;
}

.hv-btn-call-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hv-btn-call-outline:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Empty State */
.hv-empty-state {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 56px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hv-empty-state i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.hv-empty-state h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--dark);
}

.hv-empty-state p {
  color: var(--gray);
  margin: 0 0 24px;
}

/* ==========================================================================
   SINGLE POST (single.php)
   ========================================================================== */
.hv-single-hero .hv-blog-hero-inner {
  max-width: 920px;
}

.hv-single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 16px;
}

.hv-single-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hv-single-meta-bar i {
  color: #ffe600;
}

.hv-single-featured-wrap {
  margin-top: -28px;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
}

.hv-single-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 31, 91, 0.18);
  background: #ffffff;
  max-width: 1040px;
  margin: 0 auto;
}

.hv-single-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Two-Column Layout Desktop: Article + Sticky Sidebar */
.hv-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 340px;
  justify-content: space-between;
  gap: 44px;
  align-items: start;
}

.hv-article-main {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 44px 48px;
  border: 1px solid rgba(0, 87, 183, 0.08);
}

/* Mobile Collapsible TOC (Shown above article on <= 992px) */
.hv-toc-mobile {
  display: none;
  background: var(--light);
  border: 1px solid rgba(0, 87, 183, 0.16);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  overflow: hidden;
}

.hv-toc-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.hv-toc-mobile-body {
  display: none;
  padding: 0 18px 16px;
}

.hv-toc-mobile.open .hv-toc-mobile-body {
  display: block;
}

.hv-toc-mobile.open .hv-toc-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Entry Content Typography */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--dark);
  overflow-wrap: break-word;
}

.entry-content p {
  margin: 0 0 1.4em;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin: 2em 0 0.75em;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  border-image: var(--gradient) 1;
  scroll-margin-top: 100px;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.38;
  margin: 1.6em 0 0.6em;
  scroll-margin-top: 100px;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.4em 0 0.5em;
}

.entry-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.55em;
}

.entry-content ul li::marker {
  color: var(--primary);
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--dark);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid rgba(0, 87, 183, 0.14);
  text-align: left;
}

.entry-content th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background: var(--light-gray);
}

.entry-content img,
.entry-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.entry-content figure {
  margin: 1.8em 0;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin-top: 8px;
}

/* Medical Disclaimer Box */
.hv-medical-disclaimer {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--light);
  border: 1px solid rgba(0, 87, 183, 0.2);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--dark);
}

.hv-medical-disclaimer i {
  font-size: 1.35rem;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Share Buttons Bar */
.hv-share-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 87, 183, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.hv-share-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hv-share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hv-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 87, 183, 0.15);
  background: var(--light-gray);
  color: var(--dark);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.hv-share-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hv-share-btn.whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.hv-share-btn.facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.hv-share-btn.twitter:hover  { background: #0f1419; border-color: #0f1419; color: #fff; }
.hv-share-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }

/* Author Box */
.hv-author-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--light-gray);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 87, 183, 0.1);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hv-author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  overflow: hidden;
}

.hv-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-author-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.hv-author-reviewed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--light);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.hv-author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* Previous / Next Post Navigation */
.hv-post-nav {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hv-post-nav-item {
  background: #ffffff;
  border: 1px solid rgba(0, 87, 183, 0.1);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hv-post-nav-item.next {
  text-align: right;
}

.hv-post-nav-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.hv-post-nav-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.hv-post-nav-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

/* Sticky Sidebar */
.hv-single-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hv-sidebar-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
  border: 1px solid rgba(0, 87, 183, 0.08);
}

.hv-sidebar-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-sidebar-title i {
  color: var(--primary);
}

/* TOC List */
.hv-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.hv-toc-list li a {
  display: block;
  font-size: 0.88rem;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.hv-toc-list li.toc-h3 a {
  padding-left: 22px;
  font-size: 0.83rem;
}

.hv-toc-list li a:hover,
.hv-toc-list li a.active {
  color: var(--primary);
  background: var(--light);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Consultation Sidebar Card */
.hv-consult-card {
  background: linear-gradient(145deg, #001f5b 0%, #0057b7 100%);
  color: #ffffff;
}

.hv-consult-card .hv-sidebar-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.hv-consult-card .hv-sidebar-title i {
  color: #ffe600;
}

.hv-consult-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin: 0 0 18px;
}

.hv-consult-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-consult-actions .btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.hv-consult-btn-wa {
  background: #25D366;
  color: #ffffff;
}

.hv-consult-btn-wa:hover {
  background: #1ebe5b;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Services Sidebar List */
.hv-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-services-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hv-services-list li a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(3px);
}

/* Related Posts Section */
.hv-related-section {
  margin-top: 64px;
}

.hv-related-header {
  text-align: center;
  margin-bottom: 36px;
}

/* Comments Styling */
.hv-comments-area {
  margin-top: 40px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1200 / 992 / 768 / 480 px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hv-single-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .hv-featured-post {
    grid-template-columns: 1fr;
  }
  .hv-featured-thumb {
    aspect-ratio: 1200 / 630;
    height: auto;
  }
  .hv-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hv-single-layout {
    grid-template-columns: 1fr;
  }
  .hv-single-sidebar {
    position: static;
  }
  #hv-sidebar-toc-card {
    display: none !important;
  }
  .hv-toc-mobile {
    display: block;
  }
}

@media (max-width: 768px) {
  .hv-blog-hero {
    padding: 48px 0 42px;
  }
  .hv-posts-grid {
    grid-template-columns: 1fr;
  }
  .hv-article-main {
    padding: 28px 22px;
  }
  .hv-featured-body {
    padding: 26px 24px;
  }
  .hv-post-nav {
    grid-template-columns: 1fr;
  }
  .hv-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hv-cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
  .hv-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hv-search-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 12px;
    gap: 10px;
  }
  .hv-search-input {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
  }
  .hv-search-submit {
    width: 100%;
    justify-content: center;
  }
  .hv-article-main {
    padding: 22px 16px;
  }
  .entry-content {
    font-size: 1rem;
  }
  .entry-content h2 {
    font-size: 1.35rem;
  }
}
