/* ═══════════════════════════════════════════════════════════
   BLOG DISPLAY PAGE  —  blog.min.css
   Covers:
     • Blog post display page (display1.php)
   Design tokens shared with treatment.min.css / clinic.min.css
   ═══════════════════════════════════════════════════════════ */

/* ─── SMOOTH SCROLL ──────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

/* ─── DESIGN TOKENS ─────────────────────────────────────── */

:root {
  --primary:       #663399;
  --primary-light: #994CE5;
  --primary-pale:  #f5eeff;
  --accent:        #3498db;
  --light-bg:      #f9f9f9;
  --border:        #e0e0e0;
  --white:         #ffffff;
  --grey-text:     #666666;
  --heading:       #2c3e50;
}

/* ─── SHARED UTILITY CLASSES ─────────────────────────────── */

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.text-center { text-align: center; }

.text-center.mt-20 a {
  font-size: inherit;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.text-center.mt-20 a:hover {
  color: var(--primary-light);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — PAGE HEADER (hero banner)
   ═══════════════════════════════════════════════════════════ */

.page-header {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  padding: 50px 0 44px;
  border-bottom: 1px solid var(--border);
}

.page-header .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Row 1 — title + author, full width, centred */
.page-header-top {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

.page-header h1.blog-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--heading);
}

.page-header h1.blog-h1 em {
  font-style: normal;
  color: var(--primary);
}

/* Author badge — centred under H1 */
.page-header .author-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.page-header .author-info img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.page-header .author-info .author-content {
  text-align: left;
}

.page-header .author-info p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--grey-text);
  font-family: 'Open Sans', sans-serif;
}

.page-header .author-info .author-text {
  font-size: 0.78rem;
  color: var(--grey-text);
  max-width: 420px;
  line-height: 1.5;
  margin-top: 2px;
}

.page-header .author-info a.author-name {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.page-header .author-info a.author-name:hover {
  color: var(--primary-light);
}

/* Row 2 — date + share + intro left, thumbnail right */
.page-header-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: stretch;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.page-header-text {
  align-self: start;
}

.page-header-text .blog-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-header .blog-date-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  line-height: 1.1;
}

.page-header .blog-date-pill .day {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
}

.page-header .blog-date-pill .month-year {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Share icons */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share .icon,
.share-bottom .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--grey-text);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.share .icon svg,
.share-bottom .icon svg {
  width: 16px;
  height: 16px;
}

.share .icon:hover,
.share-bottom .icon:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.share-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-bottom .icon {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.share-bottom .icon:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Thumbnail */
.page-header .hero-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header .hero-thumbnail img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: block;
}

/* Intro — sits beneath the date/share row, inside the left column */
.page-header-intro {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.page-header-intro h2,
.page-header-intro h3 {
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 10px;
}

.page-header-intro h2:first-child,
.page-header-intro h3:first-child {
  margin-top: 0;
}

.page-header-intro p   { margin-bottom: 14px; }
.page-header-intro ul,
.page-header-intro ol  { padding-left: 22px; margin-bottom: 14px; }
.page-header-intro li  { margin-bottom: 6px; }

.page-header-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

/* ─── MOBILE DROPDOWN NAV ─────────────────────────────────── */

.mobile-menu {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 4%;
  display: none;
}

.mobile-menu select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--heading);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — SIDEBAR + CONTENT LAYOUT
   ═══════════════════════════════════════════════════════════ */

.fixed-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 30px;
  padding: 24px 0;
  margin-right: 30px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

.sidebar .title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-bg);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 4px;
}

.sidebar ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: #f5f0fa;
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
}

.content {
  min-width: 0;
  padding: 0 0 60px;
}

section { margin-bottom: 30px; }

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — INTRODUCTION
   ═══════════════════════════════════════════════════════════ */

#introduction {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 0 10px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

#introduction h2,
#introduction h3 {
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 10px;
}

#introduction h2:first-child,
#introduction h3:first-child {
  margin-top: 0;
}

#introduction p   { margin-bottom: 14px; }
#introduction ul,
#introduction ol  { padding-left: 22px; margin-bottom: 14px; }
#introduction li  { margin-bottom: 6px; }

#introduction img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

/* ─── VIDEO ───────────────────────────────────────────────── */

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 16px 0;
}

.videoWrapper iframe,
.videoWrapper embed,
.videoWrapper object {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — BLOG CONTENT BLOCKS
   (Text Block / Full Width Image / Banner Image / Side By Side /
    Left & Right Aligned Image / Quote / Video)
   ═══════════════════════════════════════════════════════════ */

.blog-blocks {
  max-width: none;
  margin: 0;
  padding: 0;
}

.blog-blocks .block-section {
  padding: 40px 0;
}

.blog-blocks .block-section:first-child {
  padding-top: 0;
}

.blog-blocks .block-inner {
  max-width: 100%;
}

/* Text block */
.block-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.block-text h2,
.block-text h3 {
  color: var(--heading);
  margin-top: 24px;
  margin-bottom: 10px;
}

.block-text h2:first-child,
.block-text h3:first-child {
  margin-top: 0;
}

.block-text p { margin-bottom: 14px; }
.block-text ul,
.block-text ol { padding-left: 22px; margin-bottom: 14px; }
.block-text li { margin-bottom: 6px; }

/* Full width image */
.block-image-full img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Banner image (within block flow, distinct from the top page banner) */
.block-banner-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.block-banner-image img {
  width: 100%;
  height: auto;
  display: block;
}

.block-banner-image .textbox {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  color: var(--white);
}

.block-banner-image .textbox .title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.block-banner-image .textbox .subtitle {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

/* Side by side images (two images, even grid split) */
.block-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.block-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  aspect-ratio: 4/3;
}

.block-split .block-split-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.block-split .block-split-text p { margin-bottom: 14px; }

/* Left / Right aligned image — image keeps its own size and floats to
   the set side, with the text wrapping around it rather than the
   image stretching to match the text length. */
.block-float {
  overflow: hidden; /* establishes a block formatting context for the float */
}

.block-float img {
  width: 400px;
  height: 280px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.block-float-left img {
  float: left;
  margin: 0 28px 16px 0;
}

.block-float-right img {
  float: right;
  margin: 0 0 16px 28px;
}

.block-float .block-split-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.block-float .block-split-text h2,
.block-float .block-split-text h3 {
  margin-top: 0;
  color: var(--heading);
}

.block-float .block-split-text p { margin-bottom: 14px; }

/* Clears the float so the next block starts below the image,
   even if the text was shorter than the image height. */
.block-float-clear {
  clear: both;
}

/* Quote block */
.block-quote {
  border-left: 4px solid var(--primary);
  background: var(--light-bg);
  border-radius: 0 10px 10px 0;
  padding: 28px 32px;
}

.block-quote h4 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--heading);
  line-height: 1.5;
  margin: 0 0 12px;
}

.block-quote p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-text);
  margin: 0;
}

.block-bg-wrap {
  padding: 40px 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — SHARE BAR (bottom)
   ═══════════════════════════════════════════════════════════ */

.share-bottom-wrap {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #4a2570 100%);
  padding: 44px 4%;
  margin-top: 10px;
}

.share-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.share-bottom-inner p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 6 — RELATED BLOGS
   ═══════════════════════════════════════════════════════════ */

.related-blogs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 4% 50px;
}

.related-blogs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 15px;
}

.related-blogs-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
}

.related-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}

.blog-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.blog-card-thumb {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #eee;
  position: relative;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s, transform 0.4s;
  display: block;
}

.blog-card:hover .blog-card-thumb img {
  opacity: 1;
  transform: scale(1.03);
}

.blog-card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.blog-card-date .day {
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading);
  display: block;
}

.blog-card-date .month-year {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: block;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: none;
}

.blog-card-name:hover {
  color: var(--primary);
  text-decoration: none;
}

.blog-card-desc {
  font-size: 0.85rem;
  color: var(--grey-text);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 6b — SUBSCRIBE / SIGNUP FORM (signup-form.php)
   Markup comes from an include we can't edit, so the layout is
   built purely from the .container/.subscribe/.left-back/.right-back
   wrapper classes it already outputs.
   ═══════════════════════════════════════════════════════════ */

.subscribe {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 4%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.subscribe .left-back {
  background: var(--white);
}

.subscribe .p-30 {
  padding: 40px;
}

/* Heading / sub-heading / body copy (inline-styled in the include,
   these rules just bring the spacing and type in line with the rest
   of the page without touching the include itself) */
.subscribe .p-30 > p:first-child {
  margin: 0 0 4px;
  color: var(--heading);
  line-height: 1.1;
}

.subscribe .p-30 > p:nth-child(2) {
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.subscribe .p-30 > p:nth-child(3) {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}

/* Form */
.subscribe .main-form {
  max-width: 440px;
}

.subscribe .main-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
}

.subscribe .main-form input {
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.subscribe .main-form input:focus {
  border-color: var(--primary-light);
  outline: none;
}

.subscribe .form-submit {
  margin-top: 4px;
}

.subscribe .main-form .submit {
  background: var(--primary);
  width: 100%;
  padding: 13px 26px;
  font-size: 0.92rem;
}

.subscribe .main-form .submit:hover {
  background: var(--primary-light);
}

.subscribe #signup-response {
  font-size: 0.85rem;
  margin: 10px 0 0;
}

/* Image side */
.subscribe .right-back {
  background-image: linear-gradient(160deg, rgba(102,51,153,0.25) 0%, rgba(102,51,153,0) 55%), url('https://www.consultingroom.com/Images/subscribe-back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 7 — SECTION HEADER + FAQ ACCORDION
   (matches the design used on the treatment pages; also used
   for the blog index page's Featured / Category / Latest /
   Trending section headers)
   ═══════════════════════════════════════════════════════════ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 15px;
}

.section-kicker,
.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
  margin-top: 0;
}

.section-title em {
  font-style: normal;
  color: var(--primary);
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* ─── FAQ ACCORDION ───────────────────────────────────────── */

.faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: var(--primary); }

.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
  line-height: 1.4;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { background: #faf5ff; }

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--light-bg);
  border-radius: 50%;
  transition: transform 0.25s, background 0.2s;
  font-size: 0.65rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

.faq-chevron svg {
  width: 11px;
  height: 11px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(90deg);
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.faq-answer {
  padding: 0 20px 18px 56px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.75;
  margin: 0;
}

.faq-answer p + p { margin-top: 12px; }
.faq-answer ul,
.faq-answer ol {
  padding-left: 20px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey-text);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 8 — BLOG INDEX (HOME) PAGE
   Covers: index1.php
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────── */

.blog-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1a5e 50%, #3d2375 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: rgba(102, 51, 153, 0.25);
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.12);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #994CE5;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  margin-top: 0;
}

.hero-title em {
  font-style: italic;
  color: #c78dff;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  overflow: hidden;
  max-width: 440px;
}

.hero-search input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.5); }

.hero-search button {
  padding: 12px 22px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover { background: var(--primary-light); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

.hero-featured-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-featured-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.hero-featured-card:hover { background: rgba(255,255,255,0.14); text-decoration: none; }

.hero-fc-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}

.hero-fc-text {
  flex: 1;
  min-width: 0;
}

.hero-fc-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.hero-fc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-fc-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ─── HOME PAGE LAYOUT ───────────────────────────────────── */

.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 4%;
}

/* Full-width light-grey band (Browse by Category, Trending) */
.section-band-grey {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-bottom: 0;
}

/* White variant — same structure, white background */
.section-band-white {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-bottom: 0;
}

.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

/* ─── FEATURED / HERO POST ───────────────────────────────── */

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.feat-main {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.feat-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}

.feat-main-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 28px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
}

.feat-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.feat-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.feat-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.feat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feat-side-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.feat-side-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); text-decoration: none; }

.feat-side-img {
  width: 80px;
  height: 70px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.feat-side-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
  display: block;
}

.feat-side-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 5px;
}

.feat-side-meta {
  font-size: 11px;
  color: var(--grey-text);
}

/* ─── CATEGORY TILES ─────────────────────────────────────── */

.cat-tiles-section { margin-bottom: 0; }

.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.cat-tile:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); text-decoration: none; }

.cat-tile-img {
  width: 100%;
  aspect-ratio: 6 / 4;
  object-fit: cover;
  display: block;
  background: var(--light-bg);
}

.cat-tile-body {
  padding: 14px 16px 16px;
}

.cat-tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.cat-tile-count {
  font-size: 11px;
  color: #777;
}

/* ─── OUR AUTHORS ────────────────────────────────────────── */

.authors-section { margin-bottom: 56px; }

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.author-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.author-card-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--primary-pale);
  display: block;
  flex-shrink: 0;
}

.author-card-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.author-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.3;
}

.author-card-body {
  width: 100%;
}

.author-card-bio {
  font-size: 0.78rem;
  color: var(--grey-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── ARTICLE CARDS ──────────────────────────────────────── */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); text-decoration: none; }

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8d5f7 0%, #c9a8e8 100%);
  display: block;
  flex-shrink: 0;
}

.article-card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.article-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.article-card-excerpt {
  font-size: 0.82rem;
  color: var(--grey-text);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ─── TRENDING TOPICS ────────────────────────────────────── */

.trending-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-decoration: none;
}

.trending-item:last-child { border-bottom: none; }
.trending-item:hover { text-decoration: none; }

.trending-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #eee;
  line-height: 1;
  min-width: 36px;
  flex-shrink: 0;
}

.trending-item:hover .trending-num { color: var(--primary-pale); }

.trending-body { flex: 1; }

.trending-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: 4px;
}

.trending-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 4px;
}

.trending-item:hover .trending-title { color: var(--primary); }

.trending-meta { font-size: 11px; color: #aaa; }

.trending-img {
  width: 72px; height: 60px;
  border-radius: 7px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

/* ─── NEWSLETTER CARD ────────────────────────────────────── */

.newsletter-card {
  background: linear-gradient(135deg, #663399 0%, #4a1a7a 100%);
  border-radius: 14px;
  padding: 32px 28px;
}

.nl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.nl-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 10px;
}

.nl-field {
  margin-bottom: 12px;
}

.newsletter-card .nl-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 5px;
  text-transform: none;
}

/* Scoped inside .newsletter-card to override shared_min.css
   global input[type=email] { width:90%; padding:12px; border:1px solid #ccc }
   which would otherwise make the email field look different */
.newsletter-card .nl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  outline: none;
}

.newsletter-card .nl-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.newsletter-card .nl-input::placeholder { color: rgba(255,255,255,0.45); }

.nl-submit { margin-top: 16px; }

.nl-btn {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nl-btn:hover { opacity: 0.9; }
.nl-btn:disabled { opacity: 0.6; cursor: default; }

.nl-response {
  font-size: 15px;
  font-weight: 700;
  margin-top: 14px;
  min-height: 22px;
  line-height: 1.4;
}

.nl-response-ok  { color: #4ade80; }
.nl-response-err { color: #ffb3b3; }

.nl-authors {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.nl-authors-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}


/* ─── EXPLORE CONDITIONS & TREATMENTS (dir-card style) ──── */

.explore-section {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.explore-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.explore-section-header {
  margin-bottom: 36px;
}

.explore-section-header .section-title {
  font-size: 1.6rem;
  max-width: 640px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.explore-section-desc {
  font-size: 0.95rem;
  color: var(--grey-text);
  line-height: 1.7;
  max-width: 640px;
}

/* Grid: horizontal dir-card rows — 3 columns at full width */
.explore-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

/* Reuse dir-card styles (same as clinic treatment search) */
.explore-section .dir-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.explore-section .dir-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(102,51,153,0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.explore-section .dir-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  flex-shrink: 0;
}

.explore-section .dir-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-section .dir-card-thumb.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0e6ff 0%, #e8d5f5 100%);
}

.explore-section .dir-card-thumb.thumb-fallback::after {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--primary);
  opacity: 0.15;
  border-radius: 50%;
}

.explore-section .dir-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.explore-section .dir-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  opacity: 0.7;
}

.explore-section .dir-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  transition: color 0.2s;
}

.explore-section .dir-card:hover .dir-card-name {
  color: var(--primary);
}

.explore-section .dir-card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 4px;
}

.explore-section .dir-card-arrow svg {
  width: 16px;
  height: 16px;
  color: #ccc;
  transition: color 0.2s, transform 0.2s;
}

.explore-section .dir-card:hover .dir-card-arrow svg {
  color: var(--primary);
  transform: translateX(3px);
}

.explore-section-footer {
  text-align: center;
  padding-top: 8px;

}

.explore-view-all {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  transition: all 0.2s;
}

.explore-view-all:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ─── CTA BAND ───────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(to bottom, #f7f7f7 0%, #fff 100%);
  border-top: 1px solid #e8e8e8;
  padding: 56px 0;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 4%;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}

.cta-title em { font-style: normal; color: var(--primary); }

.cta-desc {
  font-size: 1rem;
  color: var(--grey-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 30px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--primary-light); color: #fff; text-decoration: none; }

.btn-outline {
  padding: 14px 30px;
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }


/* ═══════════════════════════════════════════════════════════
   SECTION 9 — RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .fixed-container {
    grid-template-columns: 200px 1fr;
  }

  .sidebar {
    margin-right: 20px;
  }

  /* Home page */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-featured-wrap { display: none; }
  .cat-tiles-grid { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .feat-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .newsletter-card { margin-top: 0; }
  .authors-grid { grid-template-columns: repeat(3, 1fr); }
  .explore-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* Display page: show mobile nav, hide sidebar */
  .mobile-menu {
    display: block;
  }

  .fixed-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 0 4% 40px;
  }

  /* Header collapses on tablet/mobile */
  .page-header {
    padding: 35px 0 28px;
  }

  .page-header h1.blog-h1 {
    font-size: 2rem;
  }

  .page-header-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 16px;
  }

  .page-header .hero-thumbnail {
    justify-content: center;
  }

  .share-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  #introduction {
    padding: 10px 0 0;
  }

  .page-header-intro {
    margin-top: 14px;
  }

  /* Blog blocks stack on mobile */
  .block-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Left/right floated images become full-width, stacked above text */
  .block-float img {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 280;
    max-width: 100%;
    margin: 0 0 16px 0;
  }

  .block-quote {
    padding: 22px 24px;
  }

  .related-blogs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .subscribe {
    grid-template-columns: 1fr;
    margin: 30px auto;
  }

  .subscribe .right-back {
    min-height: 200px;
    order: -1;
  }

  .subscribe .p-30 {
    padding: 28px;
  }


  /* Home page */
  .hero-title { font-size: 2.2rem; }
  .cat-tiles-grid { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-cards-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {

  .page-header h1.blog-h1 {
    font-size: 1.7rem;
  }

  .page-header .author-info {
    flex-direction: column;
    text-align: center;
  }

  .page-header .author-info .author-content {
    text-align: center;
  }

  .related-blogs-grid {
    grid-template-columns: 1fr;
  }

  .block-banner-image .textbox {
    padding: 16px 18px;
  }

  .block-banner-image .textbox .title {
    font-size: 1.15rem;
  }

  .faq-answer {
    padding-left: 20px;
  }

  /* The "Hey, wait!" heading is set inline (font-size: 50px) inside
     signup-form.php, which we can't edit — !important is the only
     way to bring it down to a sane size on small screens. */
  .subscribe .p-30 > p:first-child {
    font-size: 32px !important;
  }

/* Home page */
  .cat-tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .feat-stack { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-cards-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   SECTION 10 — BLOG SEARCH PAGE (search1.php)
   All classes prefixed bs- to avoid collision with existing
   blog index and display page styles.
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────── */

.bs-hero {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1a5e 50%, #3d2375 100%);
  padding: 56px 0 44px;
  position: relative;
  overflow: hidden;
}

.bs-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(102, 51, 153, 0.25);
}

.bs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  position: relative;
}

.bs-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #994CE5;
  margin-bottom: 10px;
}

.bs-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  margin-top: 0;
}

.bs-hero-title em {
  font-style: italic;
  color: #c78dff;
}

.bs-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 0;
}

.bs-hero-search {
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
}

/* ─── ACTIVE FILTER STRIP ────────────────────────────────── */

.bs-filter-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.bs-filter-strip .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.bs-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  min-height: 44px;
}

.bs-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

.bs-filter-remove {
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.bs-filter-remove:hover { opacity: 1; }

.bs-clear-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}

.bs-clear-all:hover { color: var(--primary); }

/* ─── LAYOUT ─────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.bs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 36px 0 60px;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */

.bs-sidebar {
  position: sticky;
  top: 30px;
  padding: 0 28px 24px 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.bs-sidebar::-webkit-scrollbar       { width: 4px; }
.bs-sidebar::-webkit-scrollbar-track { background: transparent; }
.bs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.bs-sidebar-close {
  display: none;
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--grey-text);
}

.bs-sidebar-section {
  margin-bottom: 28px;
}

.bs-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-bg);
}

.bs-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bs-sidebar-list li {
  margin-bottom: 2px;
}

.bs-sidebar-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-text);
  cursor: pointer;
  text-align: left;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.bs-sidebar-list button:hover,
.bs-sidebar-list button.active {
  background: #f5f0fa;
  color: var(--primary);
  border-left-color: var(--primary);
}

.bs-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.6;
  margin-left: 4px;
  flex-shrink: 0;
}

/* ─── TOOLBAR ────────────────────────────────────────────── */

.bs-main {
  min-width: 0;
}

.bs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.bs-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bs-mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  transition: border-color 0.2s;
}

.bs-mobile-filter-toggle:hover { border-color: var(--primary); color: var(--primary); }

.bs-results-count {
  font-size: 0.85rem;
  color: var(--grey-text);
}

.bs-results-count strong { color: var(--heading); }

.bs-sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--heading);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.bs-sort-select:focus { border-color: var(--primary); }


/* ─── ARTICLE GRID ───────────────────────────────────────── */


/* ─── NO RESULTS ─────────────────────────────────────────── */

.bs-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.bs-no-results-icon { font-size: 3rem; margin-bottom: 16px; }

.bs-no-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.bs-no-results p {
  font-size: 0.95rem;
  color: var(--grey-text);
  margin-bottom: 20px;
}


/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 992px) {
.bs-hero-inner                      { flex-direction: column; gap: 28px; }
  .bs-hero-search                     { max-width: 100%; }
}

@media (max-width: 768px) {
  .bs-layout                          { grid-template-columns: 1fr; padding: 24px 0 40px; }

  .bs-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: #fff;
    padding: 60px 24px 24px;
    overflow-y: auto;
    max-height: 100vh;
  }

  .bs-sidebar.bs-mobile-open          { display: block; }
  .bs-sidebar-close                   { display: block; }
  .bs-mobile-filter-toggle            { display: flex; }
.bs-hero-title                      { font-size: 1.9rem; }
}

@media (max-width: 576px) {
  .bs-hero-title                      { font-size: 1.65rem; }
}


/* ═══════════════════════════════════════════════════════════
   SECTION 11 — BLOG CATEGORY PAGE (cat1.php)
   All classes prefixed bc- to avoid collision with existing
   blog index, display, and search page styles.
   ═══════════════════════════════════════════════════════════ */

/* ─── CATEGORY PAGE HERO (treatment-index style) ─────────── */

.bc-cat-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  padding: 55px 0 50px;
  border-bottom: 1px solid var(--border);
}

.bc-cat-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
}

.bc-cat-hero-left {
  padding: 10px 0;
}

/* Re-use .hero-kicker / .hero-title / .hero-desc from treatment.min.css */

.bc-cat-article-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-text);
  margin-bottom: 22px;
}

/* Search bar */
.bc-cat-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  max-width: 460px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.bc-cat-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(102,51,153,0.12);
}

.bc-cat-search input {
  flex: 1;
  padding: 13px 20px;
  border: none;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--heading);
  background: transparent;
  min-width: 0;
}

.bc-cat-search input::placeholder { color: #aaa; }

.bc-cat-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.bc-cat-search button:hover { background: var(--primary-light); }

.bc-cat-hero-back {
  font-size: 0.82rem;
  margin: 0;
}

.bc-cat-hero-back a {
  color: var(--grey-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.bc-cat-hero-back a:hover { color: var(--primary); }

/* Right: image */
.bc-cat-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-cat-hero-img-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  background: var(--light-bg);
  aspect-ratio: 3 / 2;
}

.bc-cat-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── LAYOUT (full-width, no sidebar) ───────────────────── */

.bc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 4% 60px;
}

.bc-no-sidebar-layout { width: 100%; }

.bc-main { min-width: 0; }

/* ─── SECTION HEADER ─────────────────────────────────────── */

.bc-section-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--light-bg);
}

/* ─── ARTICLE GRID (3-col full width) ───────────────────── */

.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}

.bc-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── CARD THUMBNAIL ─────────────────────────────────────── */

.bc-card-thumb {
  position: relative;
  width: 100%;
  height: 188px;
  overflow: hidden;
  background: var(--light-bg);
  flex-shrink: 0;
}

.bc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.bc-card:hover .bc-card-thumb img { transform: scale(1.04); }

.bc-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0e6ff 0%, #e8d5f5 100%);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
}

.bc-card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.bc-card-date .day {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading);
}

.bc-card-date .month-year {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* ─── CARD BODY ──────────────────────────────────────────── */

.bc-card-body {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bc-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  transition: color 0.15s;
}

.bc-card:hover .bc-card-title { color: var(--primary); }

.bc-card-desc {
  font-size: 0.84rem;
  color: var(--grey-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.bc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
  gap: 8px;
}

.bc-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.bc-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.bc-author-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bc-author-name {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-read-more {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}

.bc-card:hover .bc-read-more { color: var(--primary); }

/* ─── EMPTY STATE ────────────────────────────────────────── */

.bc-empty {
  text-align: center;
  padding: 70px 20px;
}

.bc-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.35; }

.bc-empty h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.bc-empty p {
  font-size: 0.95rem;
  color: var(--grey-text);
  margin-bottom: 22px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 992px) {
  .bc-cat-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .bc-cat-hero-right { display: none; }
  .bc-grid            { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bc-grid            { grid-template-columns: repeat(2, 1fr); }
  .bc-cat-search      { max-width: 100%; }
}

@media (max-width: 576px) {
  .bc-grid            { grid-template-columns: 1fr; }
}

.bc-cat-hero .hero-title  { color: var(--heading); font-size: 2.5rem; letter-spacing: -1.5px; }
.bc-cat-hero .hero-title em { font-style: normal; color: var(--primary); }
.bc-cat-hero .hero-kicker { color: var(--accent); }
.bc-cat-hero .hero-desc   { color: var(--grey-text); }
.bc-pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:44px; flex-wrap:wrap; }
.bc-page-btn { display:flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 10px; background:#fff; border:1px solid var(--border); border-radius:6px; font-family:'Open Sans',sans-serif; font-size:.88rem; font-weight:600; color:var(--heading); cursor:pointer; transition:all .2s; }
.bc-page-btn:hover { border-color:var(--primary); color:var(--primary); }
.bc-page-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.bc-page-btn.disabled { opacity:.4; pointer-events:none; }
.bc-page-ellipsis { color:var(--grey-text); font-size:.88rem; padding:0 4px; }


/* ── Treatment index hero (grey) ── */
.bt-hero {
  background: #f5f5f7;
  border-bottom: 1px solid #e8e8ec;
  padding: 56px 0 48px;
}
.bt-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.bt-hero-left { flex: 1; min-width: 0; }
.bt-hero-right { flex-shrink: 0; width: 380px; }
.bt-hero-right img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  display: block;
}
.bt-hero-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary, #663399);
  margin-bottom: 10px;
}
.bt-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a2e;
  margin: 0 0 14px;
}
.bt-hero-title em { color: var(--primary, #663399); font-style: normal; }
.bt-hero-desc {
  font-size: .97rem;
  line-height: 1.65;
  color: #555;
  margin: 0 0 20px;
  max-width: 560px;
}
.bt-hero-count {
  font-size: .88rem;
  color: #777;
  margin-bottom: 20px;
}
.bt-hero-count strong { color: #1a1a2e; }

/* Search bar — matches bc-cat-search */
.bt-hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 30px;
  overflow: hidden;
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: border-color .2s;
}
.bt-hero-search:focus-within { border-color: var(--primary, #663399); }
.bt-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 18px;
  font-size: .95rem;
  color: #1a1a2e;
}
.bt-hero-search button {
  background: var(--primary, #663399);
  border: none;
  color: #fff;
  padding: 0 20px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.bt-hero-search button:hover { background: #4e2473; }

/* Alpha index */
.bt-alpha {
  background: #fff;
  border-bottom: 1px solid #e8e8ec;
  padding: 12px 0;
}
.bt-alpha-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bt-alpha-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: none;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: #444;
  transition: all .15s;
}
.bt-alpha-btn.has-items:hover { background: #f0eaf8; color: var(--primary, #663399); border-color: #d4b8f0; }
.bt-alpha-btn.has-items.active { background: var(--primary, #663399); color: #fff; border-color: var(--primary, #663399); }
.bt-alpha-btn.no-items { opacity: .3; cursor: default; }

/* Main content */
.bt-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.bt-content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.bt-content-title { font-size: 1.2rem; font-weight: 700; color: #1a1a2e; margin: 0; }
.bt-results-count { font-size: .88rem; color: #666; }

/* No results */
#btNoResults { text-align: center; padding: 48px 24px; display: none; }
#btNoResults p { font-size: 1rem; color: #666; }

@media (max-width: 768px) {
  .bt-hero-inner { flex-direction: column; gap: 28px; }
  .bt-hero-right { width: 100%; }
  .bt-hero-right img { height: 200px; }
}



