/*
Theme Name: Care of Balance Blog
Theme URI: https://careofspeechhearing.in/blog
Author: Care of Balance Speech & Hearing
Author URI: https://careofspeechhearing.in/
Description: Custom WordPress Blog & Single Post theme crafted for Care of Balance Speech & Hearing Clinic (Kankarbagh, Patna). Matches the exact color palette (--navy #0a1628, --green #2a9d6a), Sora & DM Sans typography, pill buttons, footer, and sticky WhatsApp/Call/Back-to-Top buttons of https://careofspeechhearing.in/.
Version: 1.1.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: care-of-balance-blog
Tags: blog, medical, clinic, responsive-layout, custom-logo, custom-menu, featured-images, right-sidebar
*/

:root {
  --navy: #0a1628;
  --navy-dark: #0a1628;
  --navy-light: #0f2240;
  --green: #2a9d6a;
  --green-light: #34c082;
  --green-dark: #1e7a51;
  --teal-primary: #2a9d6a;
  --teal-hover: #1e7a51;
  --accent: #e8f5ee;
  --text: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --off-white: #f7faf8;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 12px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 12px 30px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 22, 40, 0.12);
  --shadow-green: 0 8px 25px rgba(42, 157, 106, 0.3);
  --radius-card: 18px;
  --radius-pill: 50px;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cob-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Accessibility / Screen Reader */
.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;
}

/* ==========================================================================
   TOP BAR & HEADER NAVIGATION
   ========================================================================== */
.cob-topbar {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cob-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cob-topbar-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cob-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.cob-topbar-item svg {
  color: var(--green-light);
  flex-shrink: 0;
}

.cob-topbar-item a {
  color: var(--white);
  font-weight: 500;
}

.cob-topbar-item a:hover {
  color: var(--green-light);
}

.cob-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 15px rgba(10, 22, 40, 0.04);
}

.cob-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.cob-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cob-brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.cob-brand-text {
  display: flex;
  flex-direction: column;
}

.cob-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.cob-brand-subtitle {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.cob-nav-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cob-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cob-nav-list > li {
  margin: 0;
  position: relative;
}

.cob-nav-list > li > a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cob-nav-list > li > a:hover,
.cob-nav-list > li.cob-has-dropdown:hover > a,
.cob-nav-list > li.cob-has-dropdown.is-open > a,
.cob-nav-list .current-menu-item > a,
.cob-nav-list .is-active > a {
  color: var(--green);
}

.cob-nav-list > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.cob-nav-list > li > a:hover::after,
.cob-nav-list > li.cob-has-dropdown:hover > a::after,
.cob-nav-list > li.cob-has-dropdown.is-open > a::after,
.cob-nav-list .current-menu-item > a::after,
.cob-nav-list .is-active > a::after {
  transform: scaleX(1);
}

/* Services Dropdown Trigger & Menu (Exact Screenshot Match) */
.cob-dropdown-trigger {
  cursor: pointer;
}

.cob-dropdown-chevron {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.cob-has-dropdown:hover .cob-dropdown-chevron,
.cob-has-dropdown.is-open .cob-dropdown-chevron {
  transform: rotate(180deg);
}

.cob-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 265px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.12);
  padding: 12px 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1050;
}

.cob-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.cob-has-dropdown:hover .cob-dropdown-menu,
.cob-has-dropdown.is-open .cob-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cob-dropdown-menu li {
  margin: 0;
}

.cob-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-transform: none;
  letter-spacing: normal;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cob-dropdown-menu a i {
  color: var(--green);
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.cob-dropdown-menu a:hover {
  background-color: var(--accent);
  color: var(--green-dark);
}

.cob-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cob-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--off-white);
  border: 1px solid var(--border);
}

.cob-phone-pill svg {
  color: var(--green);
}

.cob-phone-pill:hover {
  border-color: var(--green);
  color: var(--green);
}

.cob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.2;
}

.cob-btn-primary {
  background-color: var(--green);
  color: var(--white) !important;
}

.cob-btn-primary:hover {
  background-color: var(--green-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

.cob-btn-navy {
  background-color: var(--navy);
  color: var(--white) !important;
}

.cob-btn-navy:hover {
  background-color: var(--navy-light);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.cob-btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cob-btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
}

/* Mobile Menu Button */
.cob-mobile-toggle {
  display: none;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--navy);
  cursor: pointer;
}

/* ==========================================================================
   BLOG HERO & ARCHIVE HEADER
   ========================================================================== */
.cob-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.cob-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(42, 157, 106, 0.22) 0%, rgba(42, 157, 106, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cob-hero::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52, 192, 130, 0.14) 0%, rgba(52, 192, 130, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cob-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cob-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 157, 106, 0.18);
  color: var(--green-light);
  border: 1px solid rgba(52, 192, 130, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.cob-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 14px;
  font-weight: 800;
}

.cob-hero h1 span {
  color: var(--green-light);
}

.cob-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 660px;
  margin: 0 auto 28px;
}

/* Search Bar in Hero */
.cob-hero-search {
  max-width: 540px;
  margin: 0 auto 24px;
}

.cob-search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 5px 5px 5px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}

.cob-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  padding: 8px 0;
  min-width: 0;
}

.cob-search-submit {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cob-search-submit:hover {
  background: var(--green-dark);
}

/* Category Filter Pills in Hero */
.cob-cat-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cob-cat-pill {
  display: inline-block;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cob-cat-pill:hover,
.cob-cat-pill.is-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ==========================================================================
   MAIN BLOG LAYOUT & POST GRID
   ========================================================================== */
.cob-main-section {
  padding: 56px 0 72px;
}

.cob-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

/* Featured First Post on Blog Home */
.cob-featured-post {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cob-featured-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cob-featured-thumb {
  position: relative;
  min-height: 300px;
  background: var(--navy-light);
  overflow: hidden;
}

.cob-featured-thumb img,
.cob-featured-thumb .cob-fallback-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cob-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cob-featured-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cob-featured-body .cob-post-title {
  font-size: 24px;
  margin-bottom: 12px;
}

/* Post Cards Grid */
.cob-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.cob-post-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cob-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 157, 106, 0.35);
}

.cob-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  overflow: hidden;
  display: block;
}

.cob-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.cob-fallback-thumb {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #163b38 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--white);
}

.cob-fallback-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(42, 157, 106, 0.2);
  border: 1px solid rgba(52, 192, 130, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  margin-bottom: 10px;
}

.cob-fallback-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.cob-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cob-cat-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.cob-cat-tag:hover {
  background: var(--green);
  color: var(--white);
}

.cob-read-time {
  font-size: 12.5px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cob-post-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 10px;
}

.cob-post-title a {
  color: var(--navy);
}

.cob-post-title a:hover {
  color: var(--green);
}

.cob-post-excerpt {
  font-size: 14.5px;
  color: var(--text-light);
  margin: 0 0 20px;
  line-height: 1.65;
  flex: 1;
}

.cob-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.cob-post-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cob-read-more {
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.navigation.pagination {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

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

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}

.navigation.pagination .page-numbers:hover {
  border-color: var(--green);
  color: var(--green);
}

.navigation.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

/* ==========================================================================
   SINGLE POST PAGE STYLING
   ========================================================================== */
.cob-single-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 48px 0 44px;
}

.cob-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.cob-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.cob-breadcrumbs a:hover {
  color: var(--green-light);
}

.cob-breadcrumbs .sep {
  opacity: 0.45;
}

.cob-single-header {
  max-width: 880px;
}

.cob-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cob-single-title {
  color: var(--white);
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.cob-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.cob-single-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cob-single-meta-item svg {
  color: var(--green-light);
}

/* Article Box */
.cob-article-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.cob-single-featured-img {
  margin: -10px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cob-single-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Entry Content Rich Typography */
.cob-entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.cob-entry-content > *:first-child {
  margin-top: 0;
}

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

.cob-entry-content h2 {
  font-size: 26px;
  margin: 1.8em 0 0.65em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.cob-entry-content h3 {
  font-size: 21px;
  margin: 1.5em 0 0.55em;
}

.cob-entry-content h4 {
  font-size: 18px;
  margin: 1.3em 0 0.5em;
}

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

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

.cob-entry-content li::marker {
  color: var(--green);
  font-weight: 700;
}

.cob-entry-content blockquote,
.wp-block-quote {
  margin: 1.8em 0;
  padding: 22px 26px;
  background: var(--accent);
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  font-style: normal;
  color: var(--navy);
  font-weight: 500;
}

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

.cob-entry-content img,
.cob-entry-content figure {
  border-radius: 14px;
  margin: 1.6em 0;
}

.cob-entry-content figcaption {
  font-size: 13.5px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}

.cob-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cob-entry-content th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
}

.cob-entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.cob-entry-content tr:nth-child(even) td {
  background: var(--off-white);
}

.cob-entry-content pre,
.cob-entry-content code {
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.92em;
}

.cob-entry-content code {
  padding: 2px 6px;
}

.cob-entry-content pre {
  padding: 16px;
  overflow-x: auto;
}

/* Tags & Share Row */
.cob-post-tags-share {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cob-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cob-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}

.cob-tags-list a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text);
}

.cob-tags-list a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--accent);
}

.cob-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cob-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--navy);
}

.cob-share-btn:hover {
  background: var(--green);
  color: var(--white) !important;
  border-color: var(--green);
}

/* In-Article Clinical Consultation CTA Box */
.cob-inline-cta {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 18px;
  padding: 28px 32px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cob-inline-cta-text {
  flex: 1;
  min-width: 240px;
}

.cob-inline-cta-text h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 6px;
}

.cob-inline-cta-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  margin: 0;
}

.cob-inline-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Author / Clinical Reviewer Box */
.cob-author-box {
  margin-top: 28px;
  background: var(--accent);
  border: 1px solid rgba(42, 157, 106, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.cob-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--white);
  padding: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cob-author-avatar img {
  max-height: 100%;
  width: auto;
}

.cob-author-info h4 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--navy);
}

.cob-author-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.cob-author-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* Prev / Next Post Navigation */
.cob-post-nav {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cob-post-nav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cob-post-nav-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cob-post-nav-card.is-next {
  text-align: right;
}

.cob-post-nav-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
}

.cob-post-nav-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
}

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

.cob-section-heading {
  font-size: 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cob-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.cob-sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 100px;
}

.cob-widget {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.cob-widget-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cob-widget-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Clinic Appointment Card inside Sidebar */
.cob-clinic-widget {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border: none;
}

.cob-clinic-widget .cob-widget-title {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.cob-clinic-widget p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
}

.cob-clinic-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.cob-clinic-highlights li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
}

.cob-clinic-highlights svg {
  color: var(--green-light);
  flex-shrink: 0;
}

.cob-clinic-widget .cob-btn {
  width: 100%;
  margin-bottom: 10px;
}

.cob-clinic-widget .cob-btn:last-child {
  margin-bottom: 0;
}

/* Sidebar Category & Service Lists */
.cob-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cob-widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
}

.cob-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cob-widget ul li a {
  color: var(--text);
  font-weight: 500;
}

.cob-widget ul li a:hover {
  color: var(--green);
}

.cob-count-badge {
  background: var(--accent);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* Sidebar Recent Posts */
.cob-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cob-recent-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cob-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cob-recent-item a {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.cob-recent-item a:hover {
  color: var(--green);
}

.cob-recent-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.cob-comments-area {
  margin-top: 36px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.cob-comments-title {
  font-size: 21px;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.comment-author .fn {
  font-weight: 700;
  color: var(--navy);
  font-style: normal;
}

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--off-white);
  transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.comment-form .submit {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.comment-form .submit:hover {
  background: var(--green-dark);
}

/* ==========================================================================
   PRE-FOOTER CLINIC CTA BANNER
   ========================================================================== */
.cob-cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 52px 0;
}

.cob-cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cob-cta-banner h2 {
  color: var(--white);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.cob-cta-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.cob-cta-banner-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   EXACT HOMEPAGE FOOTER & STICKY FLOATING BUTTONS
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 64px 0 32px;
}

.site-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.footer-logo-box {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.footer-logo-box img {
  height: 56px;
  width: auto;
}

.footer-about-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
  display: block;
}

.footer-link:hover {
  color: var(--green-light);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-row.items-center {
  align-items: center;
}

.footer-contact-row i {
  color: var(--green-light);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-contact-row.items-center i {
  margin-top: 0;
}

.footer-social-list {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.footer-social-btn:hover {
  background: var(--green);
  color: #ffffff;
}

.footer-copyright-bar {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-copyright-bar p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin: 0;
}

.footer-copyright-bar a {
  color: var(--green-light);
  text-decoration: none;
}

.footer-copyright-bar a:hover {
  text-decoration: underline;
}

/* Container for WhatsApp & Call Floating Buttons (Exact Homepage Match) */
.float-btns {
  position: fixed;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

/* Base style for floating action buttons */
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.float-btn:hover {
  color: #fff !important;
  transform: translateY(-3px);
}

/* WhatsApp Specific Button Background */
.float-wa {
  background: #25D366;
}

/* Call Specific Button Background */
.float-call {
  background: var(--teal-primary);
}

/* Back To Top Floating Button (Exact Homepage Match) */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--teal-hover);
  transform: translateY(-3px);
}

/* Empty State */
.cob-empty-state {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 56px 32px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .cob-layout {
    grid-template-columns: 1fr;
  }
  .cob-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cob-featured-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cob-topbar {
    display: none;
  }
  .cob-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cob-phone-pill {
    display: none;
  }
  .cob-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .cob-nav-wrap.is-open {
    display: flex;
  }
  .cob-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cob-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    background: var(--off-white);
    margin-top: 6px;
    display: none;
  }
  .cob-dropdown-menu::before {
    display: none;
  }
  .cob-has-dropdown.is-open .cob-dropdown-menu {
    display: block;
  }
  .cob-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cob-header-actions .cob-btn {
    width: 100%;
  }
  .cob-posts-grid,
  .cob-related-grid,
  .cob-post-nav,
  .cob-sidebar,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .cob-article-card {
    padding: 24px 20px;
  }
  .float-btns {
    bottom: 20px;
    left: 20px;
  }
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
