/* Ray Health — Blog index (News & Updates) */

body.pharmacymentor-child.blog,
body.pharmacymentor-child.home:not(.page-template-home) {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-surface-muted);
}

/* ---------- Banner ---------- */
body.pharmacymentor-child .blog-index-banner.page-banner-section {
  background: var(--color-cream) !important;
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px) !important;
}

body.pharmacymentor-child .blog-index-banner .blog-index-eyebrow,
body.pharmacymentor-child .blog-index-banner .section-header-wrapper h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  color: var(--color-gold) !important;
  margin: 0 0 0.35em;
  text-transform: none;
}

body.pharmacymentor-child .blog-index-banner .index-banner-desc,
body.pharmacymentor-child .blog-index-banner .index-banner-desc p,
body.pharmacymentor-child .blog-index-banner .content-block > p {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

body.pharmacymentor-child .blog-index-banner .index-banner-desc h1,
body.pharmacymentor-child .blog-index-banner .index-banner-desc h2,
body.pharmacymentor-child .blog-index-banner .index-banner-desc h3 {
  display: none !important;
}

/* ---------- Blog search (ALS) ---------- */
body.pharmacymentor-child .blog-index-search {
  margin-top: 1.75rem !important;
}

body.pharmacymentor-child .blog-index-search-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 0.85rem !important;
}

body.pharmacymentor-child .blog-index-search .als-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

body.pharmacymentor-child .blog-index-search .als-wrap.als-is-open,
body.pharmacymentor-child .blog-index-search .als-wrap[data-style="input"] {
  display: block;
}

body.pharmacymentor-child .blog-index-search .als-icon-btn {
  display: none !important;
}

body.pharmacymentor-child .blog-index-search .als-panel {
  position: relative !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

body.pharmacymentor-child .blog-index-search .als-form {
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

body.pharmacymentor-child .blog-index-search .als-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 56px;
  padding: 0 14px 0 18px;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-ui), box-shadow var(--transition-ui);
}

body.pharmacymentor-child .blog-index-search .als-field:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.28);
}

body.pharmacymentor-child .blog-index-search .als-field-icon {
  color: var(--color-text-muted);
  flex: 0 0 auto;
}

body.pharmacymentor-child .blog-index-search .als-input {
  flex: 1 1 auto;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 52px;
  padding: 0 !important;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-dark);
}

body.pharmacymentor-child .blog-index-search .als-input:focus {
  outline: none;
}

body.pharmacymentor-child .blog-index-search .als-submit,
body.pharmacymentor-child .blog-index-search .als-btn {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: filter var(--transition-ui), transform var(--transition-fast);
}

body.pharmacymentor-child .blog-index-search .als-submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.pharmacymentor-child .blog-index-search .als-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
  max-height: 360px;
  overflow: auto;
  text-align: left;
}

body.pharmacymentor-child .blog-index-search .als-results {
  /* legacy class name fallback */
}

/* ---------- Blog grid cards ---------- */
body.pharmacymentor-child .blog-listing-section {
  background: var(--color-surface-muted) !important;
  padding: clamp(40px, 6vw, 72px) 0 !important;
}

body.pharmacymentor-child .blog-listing-section .blog-grids .grid {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}

body.pharmacymentor-child .blog-listing-section .blog-grids .grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

body.pharmacymentor-child .blog-listing-section .img-holder img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

body.pharmacymentor-child .blog-listing-section .grid .details {
  padding: 22px 22px 24px;
  background: var(--color-white);
  box-shadow: none;
}

body.pharmacymentor-child .blog-listing-section .post-cat a {
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-transform: none;
}

body.pharmacymentor-child .blog-listing-section .blog-title,
body.pharmacymentor-child .blog-listing-section .details h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

body.pharmacymentor-child .blog-listing-section .blog-title a,
body.pharmacymentor-child .blog-listing-section .details h2 a {
  color: var(--color-dark);
  text-decoration: none;
}

body.pharmacymentor-child .blog-listing-section .blog-title a:hover {
  color: var(--color-gold-dark);
}

body.pharmacymentor-child .blog-listing-section .posted_info {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem !important;
}

body.pharmacymentor-child .blog-listing-section .posted_author strong {
  color: var(--color-dark);
  font-weight: 600;
}

body.pharmacymentor-child .blog-listing-section .blog-description,
body.pharmacymentor-child .blog-listing-section .blog-description p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

body.pharmacymentor-child .blog-listing-section .cta-block {
  margin-top: 1.25rem !important;
}

body.pharmacymentor-child .blog-listing-section a.theme-btn-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px !important;
  border-radius: var(--radius-pill) !important;
  border: 1.5px solid var(--color-gold) !important;
  background: transparent !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: none !important;
  text-decoration: none !important;
  transition: background-color var(--transition-ui), border-color var(--transition-ui),
    transform var(--transition-fast);
}

body.pharmacymentor-child .blog-listing-section a.theme-btn-outline:hover {
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-dark) !important;
  transform: translateY(-1px);
}

body.pharmacymentor-child .blog-listing-section .page-numbers,
body.pharmacymentor-child .blog-listing-section .prev.page-numbers,
body.pharmacymentor-child .blog-listing-section .next.page-numbers {
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-primary);
}

body.pharmacymentor-child .blog-listing-section .page-numbers.current,
body.pharmacymentor-child .blog-listing-section a.page-numbers:hover {
  background: var(--color-gold) !important;
  color: var(--color-dark) !important;
  border-color: var(--color-gold) !important;
}

@media (max-width: 767px) {
  body.pharmacymentor-child .blog-listing-section .img-holder img {
    height: 200px;
  }

  body.pharmacymentor-child .blog-index-search .als-field {
    min-height: 52px;
    padding-right: 6px;
  }

  body.pharmacymentor-child .blog-index-search .als-submit,
  body.pharmacymentor-child .blog-index-search .als-btn {
    padding: 0 16px;
    font-size: 14px;
  }
}

/* ========================================
   Single blog post
======================================== */
body.pharmacymentor-child.single-post {
  font-family: var(--font-primary);
  background: var(--color-white);
  color: var(--color-text);
}

body.pharmacymentor-child .single-blog__hero.page-banner-section {
  background: var(--color-cream) !important;
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px) !important;
}

body.pharmacymentor-child .single-blog__eyebrow {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
}

body.pharmacymentor-child .single-blog__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin: 0 auto 1rem;
  max-width: 48rem;
}

body.pharmacymentor-child .single-blog__lead,
body.pharmacymentor-child .single-blog__lead p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 auto 1.25rem;
}

body.pharmacymentor-child .single-blog__actions {
  margin-top: 0.5rem;
}

body.pharmacymentor-child .single-blog__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-dark);
  color: var(--color-white) !important;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: background-color var(--transition-ui), transform var(--transition-fast);
}

body.pharmacymentor-child .single-blog__back:hover {
  background: var(--color-gold);
  color: var(--color-dark) !important;
  transform: translateY(-1px);
}

body.pharmacymentor-child .single-blog__body {
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  background: var(--color-white);
}

body.pharmacymentor-child .single-blog__layout {
  max-width: 760px;
  margin: 0 auto;
}

body.pharmacymentor-child .single-blog__featured {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

body.pharmacymentor-child .single-blog__featured-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

body.pharmacymentor-child .single-blog__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

body.pharmacymentor-child .single-blog__meta-label {
  font-weight: 600;
  color: var(--color-dark);
}

body.pharmacymentor-child .single-blog__meta-date {
  color: var(--color-text-muted);
}

body.pharmacymentor-child .single-blog__meta-cats a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: none;
}

body.pharmacymentor-child .single-blog__meta-cats a:hover {
  text-decoration: underline;
}

body.pharmacymentor-child .single-blog__content,
body.pharmacymentor-child .single-blog__content.blog-content,
body.pharmacymentor-child .single-blog__layout,
body.pharmacymentor-child .single-blog__body,
body.pharmacymentor-child .single-blog__block,
body.pharmacymentor-child .single-blog__block-body,
body.pharmacymentor-child .single-blog__col {
  text-align: left !important;
}

body.pharmacymentor-child .single-blog__content,
body.pharmacymentor-child .single-blog__content.blog-content {
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--color-dark);
}

body.pharmacymentor-child .single-blog__content p,
body.pharmacymentor-child .single-blog__content h1,
body.pharmacymentor-child .single-blog__content h2,
body.pharmacymentor-child .single-blog__content h3,
body.pharmacymentor-child .single-blog__content h4,
body.pharmacymentor-child .single-blog__content h5,
body.pharmacymentor-child .single-blog__content h6,
body.pharmacymentor-child .single-blog__content ul,
body.pharmacymentor-child .single-blog__content ol,
body.pharmacymentor-child .single-blog__content li,
body.pharmacymentor-child .single-blog__content blockquote,
body.pharmacymentor-child .single-blog__content [style*="text-align:center"],
body.pharmacymentor-child .single-blog__content [style*="text-align: center"] {
  text-align: left !important;
}

body.pharmacymentor-child .single-blog__content p {
  margin: 0 0 1.15em;
}

body.pharmacymentor-child .single-blog__content h2,
body.pharmacymentor-child .single-blog__content h3,
body.pharmacymentor-child .single-blog__block-title {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  margin: 1.75em 0 0.65em;
  line-height: 1.25;
}

body.pharmacymentor-child .single-blog__content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

body.pharmacymentor-child .single-blog__content h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

body.pharmacymentor-child .single-blog__content ul,
body.pharmacymentor-child .single-blog__content ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

body.pharmacymentor-child .single-blog__content li {
  margin-bottom: 0.45em;
}

body.pharmacymentor-child .single-blog__content a {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.pharmacymentor-child .single-blog__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

body.pharmacymentor-child .single-blog__block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

body.pharmacymentor-child .single-blog__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

body.pharmacymentor-child .single-blog__related {
  background: var(--color-surface-muted) !important;
}

body.pharmacymentor-child .single-blog__related-eyebrow {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--color-gold) !important;
  margin: 0 0 0.5rem;
}

body.pharmacymentor-child .single-blog__related-desc,
body.pharmacymentor-child .single-blog__related-desc p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

body.pharmacymentor-child .single-blog__related-desc h1,
body.pharmacymentor-child .single-blog__related-desc h2,
body.pharmacymentor-child .single-blog__related-desc h3 {
  display: none !important;
}

@media (max-width: 767px) {
  body.pharmacymentor-child .single-blog__cols {
    grid-template-columns: 1fr;
  }

  body.pharmacymentor-child .single-blog__featured-img {
    max-height: 260px;
  }

  body.pharmacymentor-child .single-blog__back {
    width: 100%;
    justify-content: center;
  }
}
