/* ==========================================================================
   Premier Pain Institute - Back Pain Resource Page Styles
   Template: template-back-pain.php
   File: css/template-back-pain.css
   ========================================================================== */

:root {
  --ppi-navy: #0C2740;
  --ppi-navy-dark: #07192B;
  --ppi-blue: #0E5BA6;
  --ppi-blue-light: #1366B6;
  --ppi-teal: #19A8B8;
  --ppi-teal-dark: #0F7E8C;
  --ppi-mint: #3AD0B4;
  --ppi-bg-soft: #F4F9FD;
  --ppi-bg-card: #FFFFFF;
  --ppi-border: #D6E2F0;
  --ppi-border-light: #E8F0F8;
  --ppi-text-primary: #0C2740;
  --ppi-text-secondary: #3A4B68;
  --ppi-text-muted: #6C7D93;
  --ppi-shadow-sm: 0 4px 14px rgba(12, 39, 64, 0.04);
  --ppi-shadow-md: 0 12px 30px rgba(12, 39, 64, 0.08);
  --ppi-shadow-lg: 0 20px 45px rgba(12, 39, 64, 0.12);
  --ppi-radius: 20px;
}

/* ============ HERO SECTION ============ */
.sub-hero.resource-detail-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FD 100%);
  padding: 60px max(24px, calc((100% - 1240px)/2)) 50px;
  position: relative;
  border-bottom: 1px solid #E2EBF4;
  box-sizing: border-box;
}

.resource-detail-hero-container {
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.resource-detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 50px;
  align-items: center;
}

.resource-detail-hero-content {
  min-width: 0;
}

.resource-detail-hero-content .sub-hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: var(--ppi-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resource-detail-hero-content .sub-hero-subtitle {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ppi-text-secondary);
  max-width: 680px;
  margin-bottom: 24px;
}

.resource-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.resource-pill-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ppi-blue);
  background: #FFFFFF;
  border: 1.5px solid var(--ppi-border);
  border-radius: 30px;
  padding: 8px 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(12, 39, 64, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  touch-action: manipulation;
}

.resource-pill-btn:hover,
.resource-pill-btn.active {
  color: #FFFFFF;
  background: var(--ppi-teal-dark);
  border-color: var(--ppi-teal-dark);
  box-shadow: 0 8px 20px rgba(15, 126, 140, 0.28);
  transform: translateY(-2px);
}

.resource-detail-hero-media {
  min-width: 0;
}

.resource-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(12, 39, 64, 0.12);
  border: 1px solid var(--ppi-border);
  background: #FFFFFF;
}

.resource-hero-img-box {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #EAF0F7;
}

.resource-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.resource-hero-card:hover .resource-hero-img-box img {
  transform: scale(1.06);
}

.resource-hero-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(12, 39, 64, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--ppi-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(58, 208, 180, 0.7);
  animation: pulse-ring 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 208, 180, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(58, 208, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 208, 180, 0);
  }
}

/* ============ MAIN LAYOUT & GRID ============ */
.bp-main-layout {
  padding: 50px max(24px, calc((100% - 1240px)/2)) 60px;
  background: #F8FBFE;
  box-sizing: border-box;
}

.bp-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.bp-content-flow {
  min-width: 0;
}

/* ============ SECTIONS & CARDS ============ */
.bp-section {
  margin-bottom: 44px;
  scroll-margin-top: 100px;
}

.bp-section-header {
  margin-bottom: 22px;
}

.bp-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ppi-teal-dark, #0F7E8C);
  background: #E6F6F8;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  max-width: 100%;
}

.bp-section-title {
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--ppi-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.bp-section-desc {
  font-size: 16px;
  color: var(--ppi-text-secondary);
  margin: 0;
  line-height: 1.7;
}

.bp-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--ppi-shadow-sm);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bp-card:hover {
  box-shadow: var(--ppi-shadow-md);
  border-color: #C0D6EC;
}

/* ============ ANATOMY SECTION ============ */
.bp-anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.bp-anatomy-item {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bp-anatomy-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ppi-blue);
  transition: width 0.3s ease;
}

.bp-anatomy-item:hover::before {
  width: 7px;
  background: var(--ppi-teal);
}

.bp-anatomy-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ppi-shadow-md);
  border-color: #B5D4F4;
}

.bp-anatomy-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #EAF3FB;
  color: var(--ppi-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.bp-anatomy-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ppi-navy);
  font-weight: 700;
  line-height: 1.35;
}

.bp-anatomy-item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ppi-text-secondary);
  margin: 0;
}

.bp-diagram-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.bp-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.bp-diagram-titles {
  text-align: left;
  min-width: 0;
}

.bp-diagram-tag {
  margin: 0 0 4px 0;
}

.bp-diagram-title {
  margin: 0;
  font-size: 18px;
  color: var(--ppi-navy);
  font-weight: 700;
  line-height: 1.35;
}

.bp-diagram-expand-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  flex-shrink: 0;
}

.bp-diagram-img-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ppi-border-light);
  background: #F8FBFE;
  padding: 16px;
  cursor: pointer;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

.bp-diagram-img-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.4s ease;
  display: inline-block;
}

.bp-diagram-img-box:hover img {
  transform: scale(1.02);
}

.bp-diagram-caption {
  font-size: 12px;
  color: var(--ppi-text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

.bp-callout {
  background: linear-gradient(135deg, #F0F7FD 0%, #E6F4F8 100%);
  border-left: 5px solid var(--ppi-teal);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 22px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-sizing: border-box;
}

.bp-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ppi-teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.bp-callout-content {
  flex: 1;
  min-width: 0;
}

.bp-callout-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ppi-navy);
  font-weight: 700;
}

.bp-callout-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--ppi-text-secondary);
}

/* ============ TREATMENTS SECTION ============ */
.bp-treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.bp-treatment-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bp-treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ppi-shadow-md);
  border-color: var(--ppi-teal);
}

.bp-treatment-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ppi-blue);
  background: #EAF3FB;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.bp-treatment-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ppi-navy);
  font-weight: 700;
  line-height: 1.35;
}

.bp-treatment-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ppi-text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

.bp-treatment-highlight {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ppi-teal-dark);
  background: #E6F6F8;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--ppi-teal);
}

/* ============ PSYCHOLOGY & CBT SECTION ============ */
.bp-psych-context-box {
  background: #F8FBFE;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.bp-psych-context-title {
  color: var(--ppi-navy);
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.bp-psych-context-desc {
  font-size: 14.5px;
  color: var(--ppi-text-secondary);
  margin: 0;
  line-height: 1.7;
}

.bp-psych-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.bp-psych-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
}

.bp-psych-card-title {
  font-size: 16.5px;
  color: var(--ppi-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.bp-psych-card-desc {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
  color: var(--ppi-text-secondary);
}

.bp-psych-clinic-box {
  background: #EAF3FB;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.bp-psych-clinic-info {
  flex: 1;
  min-width: 220px;
}

.bp-psych-clinic-title {
  color: var(--ppi-navy);
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.bp-psych-clinic-details {
  font-size: 13.5px;
  color: var(--ppi-text-secondary);
  display: block;
  line-height: 1.5;
}

.bp-psych-clinic-btn {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--ppi-navy);
  color: #FFFFFF;
  border-color: var(--ppi-navy);
  flex-shrink: 0;
}

.bp-psych-clinic-btn:hover {
  background: var(--ppi-blue);
  border-color: var(--ppi-blue);
  color: #FFFFFF;
}

/* ============ REHABILITATION SECTION ============ */
.bp-rehab-notice-box {
  background: linear-gradient(135deg, #FFF9E6 0%, #FEF5D1 100%);
  border-left: 5px solid #F59E0B;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.bp-rehab-notice-title {
  color: #92400E;
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
}

.bp-rehab-notice-desc {
  font-size: 14px;
  color: #78350F;
  margin: 0;
  line-height: 1.6;
}

.bp-rehab-booking-note {
  background: #F8FBFE;
  border: 1px solid var(--ppi-border);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ppi-text-secondary);
  line-height: 1.6;
  box-sizing: border-box;
}

/* ============ NUTRITION SECTION ============ */
.bp-nutrition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.bp-nutrition-box {
  border-radius: 20px;
  padding: 26px 28px;
  border: 1.5px solid var(--ppi-border);
  box-shadow: 0 4px 14px rgba(12, 39, 64, 0.03);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bp-nutrition-box.fight {
  background: #F4FAF7;
  border-color: #BDE7D8;
}

.bp-nutrition-box.avoid {
  background: #FDF6F6;
  border-color: #F8D3D3;
}

.bp-nutrition-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}

.bp-nutrition-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bp-nutrition-box.fight h4 {
  color: #1A7A54;
}

.bp-nutrition-box.avoid h4 {
  color: #B22B2B;
}

.bp-food-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-food-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.bp-food-item:hover {
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(12, 39, 64, 0.04);
}

.bp-food-item span.icon {
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.bp-nutrition-box.fight .bp-food-item span.icon {
  background: #D5EFE3;
  color: #1A7A54;
}

.bp-nutrition-box.avoid .bp-food-item span.icon {
  background: #FBE0E0;
  color: #B22B2B;
}

.bp-food-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.bp-food-name {
  color: var(--ppi-navy);
  font-weight: 700;
  margin-right: 4px;
  display: inline;
}

.bp-food-detail {
  color: var(--ppi-text-secondary);
  display: inline;
}

.bp-nutrition-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.bp-nutrition-extra-card {
  background: #F8FBFE;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
}

.bp-nutrition-extra-title {
  font-size: 16px;
  color: var(--ppi-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.bp-nutrition-extra-desc {
  font-size: 13.5px;
  color: var(--ppi-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============ MEDICATIONS SECTION ============ */
.bp-meds-analgesics-box {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.bp-meds-analgesics-title {
  font-size: 17px;
  color: var(--ppi-navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.bp-meds-analgesics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.bp-meds-analgesic-item {
  min-width: 0;
}

.bp-meds-analgesic-name {
  color: var(--ppi-navy);
  font-size: 14.5px;
  font-weight: 700;
  display: block;
}

.bp-meds-analgesic-text {
  font-size: 13.5px;
  color: var(--ppi-text-secondary);
  margin: 4px 0 0 0;
  line-height: 1.6;
}

.bp-meds-heading {
  font-size: 18px;
  color: var(--ppi-navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.bp-meds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.bp-med-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 20px;
  border-top: 4px solid var(--ppi-blue);
  box-sizing: border-box;
}

.bp-med-card.tca { border-top-color: #0E5BA6; }
.bp-med-card.acd { border-top-color: #19A8B8; }
.bp-med-card.snri { border-top-color: #6C5CE7; }
.bp-med-card.nsaid { border-top-color: #E67E22; }

.bp-med-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--ppi-navy);
  font-weight: 700;
}

.bp-med-examples {
  font-size: 12.5px;
  color: var(--ppi-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.bp-med-card p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  color: var(--ppi-text-secondary);
}

.bp-meds-titration-callout {
  margin-top: 20px;
}

/* ============ GTA DIRECTORY SECTION ============ */
.bp-directory-container {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--ppi-shadow-md);
  margin-top: 24px;
  box-sizing: border-box;
}

.bp-directory-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #EAF0F7;
  padding-bottom: 16px;
}

.bp-dir-tab-btn {
  background: #F4F8FC;
  border: 1.5px solid var(--ppi-border);
  color: var(--ppi-navy);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-sizing: border-box;
  touch-action: manipulation;
}

.bp-dir-tab-btn.active, 
.bp-dir-tab-btn:hover {
  background: var(--ppi-navy);
  border-color: var(--ppi-navy);
  color: #FFFFFF;
}

.bp-dir-tab-btn .count-badge {
  background: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
}

.bp-dir-tab-btn.active .count-badge {
  background: var(--ppi-mint);
  color: var(--ppi-navy);
}

.bp-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.bp-search-input {
  flex-grow: 1;
  border: 1.5px solid var(--ppi-border);
  border-radius: 14px;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.bp-search-input:focus {
  border-color: var(--ppi-blue);
  box-shadow: 0 0 0 3px rgba(14, 91, 166, 0.12);
}

.bp-practitioners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.bp-practitioner-card {
  background: #F8FBFE;
  border: 1px solid var(--ppi-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bp-practitioner-card:hover {
  background: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: var(--ppi-shadow-md);
  border-color: var(--ppi-teal);
}

.bp-prac-header {
  margin-bottom: 12px;
}

.bp-prac-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ppi-navy);
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.bp-prac-creds {
  font-size: 12px;
  color: var(--ppi-blue);
  font-weight: 600;
  display: block;
}

.bp-prac-details {
  font-size: 13px;
  color: var(--ppi-text-secondary);
  margin-bottom: 14px;
}

.bp-prac-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  word-break: break-word;
}

.bp-prac-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ppi-teal-dark);
}

.bp-prac-badge {
  font-size: 11.5px;
  color: var(--ppi-teal-dark);
  background: #E6F6F8;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
  display: inline-block;
  font-weight: 600;
}

.bp-prac-footer {
  border-top: 1px solid #EAF0F7;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 10px;
}

.bp-prac-cost {
  font-weight: 700;
  color: var(--ppi-navy);
  background: #EAF3FB;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.bp-prac-phone-link {
  color: var(--ppi-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bp-prac-phone-link:hover {
  text-decoration: underline;
}

/* ============ MEDIA & LITERATURE SECTION ============ */
.bp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.bp-media-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-sizing: border-box;
}

.bp-media-card.is-clickable {
  cursor: pointer;
}

.bp-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(12, 39, 64, 0.1);
  border-color: var(--ppi-teal);
  background: #FFFFFF;
}

.bp-media-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.bp-media-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #EAF3FB;
  color: var(--ppi-blue);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.bp-media-card:hover .bp-media-arrow {
  background: var(--ppi-blue);
  color: #FFFFFF;
  transform: translate(2px, -2px);
}

.bp-media-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EAF3FB;
  color: var(--ppi-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-media-card h4 {
  font-size: 17px;
  margin: 0;
  color: var(--ppi-navy);
  font-weight: 700;
  line-height: 1.35;
}

.bp-media-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--ppi-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.bp-media-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ppi-text-secondary);
  margin: 0;
}

/* ============ VIDEO SHOWCASE SECTION ============ */
.resource-video-showcase {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 44px;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.video-showcase-header {
  margin-bottom: 24px;
}

.video-showcase-header h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--ppi-navy);
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.video-showcase-header p {
  font-size: 16px;
  color: var(--ppi-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ppi-blue);
  background: #EAF3FB;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.resource-video-container {
  width: 100%;
  box-sizing: border-box;
}

.resource-video-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.resource-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--ppi-shadow-sm);
  background: #000000;
}

.resource-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ RELATED CONDITIONS PILLS ============ */
.resource-footer-nav-container {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.footer-nav-title {
  font-size: 20px;
  color: var(--ppi-navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.resource-footer-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-footer-pill-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ppi-navy);
  background: #F8FBFE;
  border: 1.5px solid var(--ppi-border);
  border-radius: 30px;
  padding: 8px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  touch-action: manipulation;
}

.resource-footer-pill-btn .pill-dot {
  width: 7px;
  height: 7px;
  background: var(--ppi-teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.resource-footer-pill-btn:hover,
.resource-footer-pill-btn.active {
  color: #FFFFFF;
  background: var(--ppi-navy);
  border-color: var(--ppi-navy);
  transform: translateY(-2px);
}

.resource-footer-pill-btn.active .pill-dot {
  background: var(--ppi-mint);
}

/* ============ SIDEBAR ============ */
.bp-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ============ EDUCATIONAL HUB / HANDOUTS & GUIDES WIDGET ============ */
.resource-downloads-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.downloads-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EAF0F7;
}

.downloads-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E6F6F8;
  color: var(--ppi-teal-dark);
  flex-shrink: 0;
}

.downloads-card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--ppi-navy);
  margin: 0;
  line-height: 1.3;
}

.downloads-card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--ppi-text-muted);
  margin: 2px 0 0 0;
}

.resource-pdf-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-pdf-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px solid #E2EBF4;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(12, 39, 64, 0.02);
  box-sizing: border-box;
}

.resource-pdf-card.highlighted {
  background: linear-gradient(135deg, #F0F9FA 0%, #E8F5F7 100%);
  border-color: var(--ppi-teal);
}

.pdf-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 10px;
  min-width: 0;
}

.pdf-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ppi-teal-dark);
}

.pdf-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ppi-navy);
  line-height: 1.35;
  word-break: break-word;
}

.pdf-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ppi-blue);
  box-shadow: 0 3px 8px rgba(12, 39, 64, 0.08);
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s, color 0.25s;
}

.resource-pdf-card:hover {
  transform: translateY(-2px) translateX(2px);
  background: #FFFFFF;
  border-color: var(--ppi-blue);
  box-shadow: 0 8px 20px rgba(14, 91, 166, 0.1);
}

.resource-pdf-card:hover .pdf-card-arrow {
  background: var(--ppi-blue);
  color: #FFFFFF;
  transform: translateX(2px);
}

.bp-sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.bp-sidebar-toc-title {
  font-size: 17px;
  color: var(--ppi-navy);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #EAF0F7;
  font-weight: 700;
}

.bp-sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bp-toc-item {
  margin-bottom: 8px;
}

.bp-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ppi-text-secondary);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.bp-toc-link:hover, 
.bp-toc-link.active {
  background: #EAF3FB;
  color: var(--ppi-blue);
  transform: translateX(4px);
}

.bp-download-card {
  background: linear-gradient(135deg, #0C2740 0%, #134B7D 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ppi-shadow-md);
  box-sizing: border-box;
}

.bp-download-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--ppi-mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.bp-download-card h4 {
  color: #FFFFFF;
  font-size: 18px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.bp-download-card p {
  color: #D3E4F4;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.bp-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ppi-mint);
  color: var(--ppi-navy);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  touch-action: manipulation;
}

.bp-download-btn:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 208, 180, 0.4);
}

.bp-cta-widget {
  background: linear-gradient(135deg, #E6F6F8 0%, #F4F9FD 100%);
  border: 1.5px solid var(--ppi-teal);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-sizing: border-box;
}

.bp-cta-widget h4 {
  font-size: 18px;
  color: var(--ppi-navy);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.bp-cta-widget p {
  font-size: 13px;
  color: var(--ppi-text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.bp-cta-widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ppi-navy);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
}

.bp-cta-widget-btn:hover {
  background: var(--ppi-blue);
  transform: translateY(-2px);
}

/* ============ INSIGHTS & PUBLICATIONS SECTION ============ */
.publications-section {
  padding: 60px max(24px, calc((100% - 1240px)/2));
  background: #FFFFFF;
  box-sizing: border-box;
}

.publications-container {
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.publications-header {
  margin-bottom: 32px;
}

.publications-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ppi-blue);
  background: #EAF3FB;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--ppi-blue);
  border-radius: 50%;
}

.publications-title {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--ppi-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.publications-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pub-card {
  background: #FFFFFF;
  border: 1px solid var(--ppi-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--ppi-shadow-sm);
  box-sizing: border-box;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ppi-shadow-md);
  border-color: #B5D4F4;
}

.pub-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #EAF0F7;
}

.pub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.pub-card:hover .pub-card-image img {
  transform: scale(1.05);
}

.pub-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 39, 64, 0.85);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.pub-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

.pub-card-date {
  font-size: 12px;
  color: var(--ppi-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.pub-card-title {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  font-weight: 700;
}

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

.pub-card-title a:hover {
  color: var(--ppi-blue);
}

.pub-card-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ppi-text-secondary);
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.pub-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ppi-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.pub-read-more:hover {
  gap: 10px;
  color: var(--ppi-navy);
}

/* ============ LIGHTBOX MODAL ============ */
.bp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 39, 64, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.bp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-modal-box {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  position: relative;
  box-sizing: border-box;
}

.bp-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #EAF3FB;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ppi-navy);
  transition: all 0.2s ease;
  z-index: 10;
}

.bp-modal-close:hover {
  background: var(--ppi-navy);
  color: #FFFFFF;
}

.bp-lightbox-title {
  font-size: 20px;
  color: var(--ppi-navy);
  margin: 0 0 16px 0;
  font-weight: 700;
  padding-right: 40px;
  line-height: 1.3;
}

.bp-lightbox-img-wrap {
  text-align: center;
}

.bp-lightbox-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* --- TABLET & BELOW (<= 1024px) --- */
@media (max-width: 1024px) {
  .bp-main-layout {
    padding: 40px 24px 50px;
  }

  .bp-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bp-sidebar {
    position: static;
    top: auto;
  }

  .publications-feed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* --- SMALL TABLET & PHABLET (<= 991px) --- */
@media (max-width: 991px) {
  .sub-hero.resource-detail-hero {
    padding: 45px 20px 40px;
  }

  .resource-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .resource-hero-img-box {
    height: 260px;
  }
}

/* --- MOBILE PHONES (<= 768px) --- */
@media (max-width: 768px) {
  /* Layout & Spacing */
  .sub-hero.resource-detail-hero {
    padding: 32px 16px 28px;
  }

  .bp-main-layout {
    padding: 24px 16px 40px;
  }

  .bp-layout-grid {
    gap: 24px;
  }

  .bp-section {
    margin-bottom: 28px;
    scroll-margin-top: 70px;
  }

  .bp-section-header {
    margin-bottom: 16px;
  }

  .bp-card {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
  }

  /* Typography */
  .resource-detail-hero-content .sub-hero-title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .resource-detail-hero-content .sub-hero-subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .bp-section-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .bp-section-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .bp-section-tag {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  /* Hero & Navigation Pills */
  .resource-pill-row {
    gap: 8px;
    margin-top: 14px;
  }

  .resource-pill-btn {
    font-size: 13px;
    padding: 7px 16px;
  }

  .resource-hero-img-box {
    height: 210px;
  }

  .resource-hero-card {
    border-radius: 18px;
  }

  .resource-hero-card-badge {
    padding: 8px 12px;
    font-size: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    border-radius: 10px;
  }

  /* Anatomy & Treatments */
  .bp-anatomy-grid,
  .bp-treatments-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .bp-anatomy-item,
  .bp-treatment-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .bp-anatomy-item h4,
  .bp-treatment-card h4 {
    font-size: 16.5px;
  }

  .bp-anatomy-item p,
  .bp-treatment-card p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .bp-diagram-card {
    padding: 18px 14px;
    border-radius: 16px;
    margin-top: 16px;
  }

  .bp-diagram-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bp-diagram-expand-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
  }

  .bp-diagram-img-box {
    padding: 10px;
    border-radius: 10px;
  }

  /* Psychology & CBT */
  .bp-psych-context-box {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .bp-psych-context-title {
    font-size: 15.5px;
  }

  .bp-psych-context-desc {
    font-size: 13.5px;
  }

  .bp-psych-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .bp-psych-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .bp-psych-card-title {
    font-size: 15.5px;
  }

  .bp-psych-card-desc {
    font-size: 13.5px;
  }

  .bp-psych-clinic-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
  }

  .bp-psych-clinic-title {
    font-size: 14.5px;
  }

  .bp-psych-clinic-details {
    font-size: 13px;
  }

  .bp-psych-clinic-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 16px;
  }

  /* Rehabilitation */
  .bp-rehab-notice-box {
    padding: 16px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .bp-rehab-notice-title {
    font-size: 15px;
  }

  .bp-rehab-notice-desc {
    font-size: 13px;
  }

  .bp-rehab-booking-note {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 12px;
  }

  /* Nutrition */
  .bp-nutrition-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 14px;
  }

  .bp-nutrition-box {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .bp-nutrition-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .bp-nutrition-header h4 {
    font-size: 16.5px;
  }

  .bp-food-list {
    gap: 8px;
  }

  .bp-food-item {
    padding: 7px 10px;
    font-size: 13.5px;
  }

  .bp-nutrition-extra-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
  }

  .bp-nutrition-extra-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .bp-nutrition-extra-title {
    font-size: 15px;
  }

  .bp-nutrition-extra-desc {
    font-size: 13px;
  }

  /* Medications */
  .bp-meds-analgesics-box {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .bp-meds-analgesics-title {
    font-size: 15.5px;
    margin-bottom: 10px;
  }

  .bp-meds-analgesics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bp-meds-heading {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .bp-meds-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .bp-med-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .bp-med-card h4 {
    font-size: 15.5px;
  }

  .bp-med-examples {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .bp-med-card p {
    font-size: 13px;
  }

  .bp-callout {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 12px;
    margin: 16px 0;
  }

  .bp-callout-content h4 {
    font-size: 14.5px;
  }

  .bp-callout-content p {
    font-size: 13px;
  }

  /* Directory */
  .bp-directory-container {
    padding: 20px 14px;
    border-radius: 18px;
    margin-top: 16px;
  }

  .bp-directory-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .bp-dir-tab-btn {
    width: 100%;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 13px;
  }

  .bp-search-bar {
    margin-bottom: 16px;
  }

  .bp-search-input {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .bp-practitioners-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bp-practitioner-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .bp-prac-name {
    font-size: 15.5px;
  }

  .bp-prac-details {
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .bp-prac-footer {
    padding-top: 10px;
    font-size: 12px;
  }

  /* Media & Literature */
  .bp-media-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bp-media-card {
    padding: 18px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .bp-media-card h4 {
    font-size: 15.5px;
  }

  .bp-media-card p {
    font-size: 13px;
  }

  /* Video Showcase */
  .resource-video-showcase {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .video-showcase-header {
    margin-bottom: 16px;
  }

  .video-showcase-header h2 {
    font-size: 22px;
  }

  .video-showcase-header p {
    font-size: 13.5px;
  }

  .resource-video-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Related Conditions Pills */
  .resource-footer-nav-container {
    padding: 20px 16px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .footer-nav-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .resource-footer-pill-row {
    gap: 8px;
  }

  .resource-footer-pill-btn {
    font-size: 12.5px;
    padding: 6px 14px;
  }

  /* Sidebar Widgets on Mobile */
  .resource-downloads-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .downloads-card-header {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .downloads-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .downloads-card-header h3 {
    font-size: 17px;
  }

  .downloads-card-subtitle {
    font-size: 12px;
  }

  .resource-pdf-card {
    padding: 10px 14px;
    border-radius: 12px;
  }

  .pdf-card-title {
    font-size: 13.5px;
  }

  .bp-download-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .bp-download-card h4 {
    font-size: 16.5px;
  }

  .bp-download-card p {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .bp-download-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .bp-sidebar-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .bp-sidebar-toc-title {
    font-size: 15.5px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .bp-toc-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  .bp-cta-widget {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .bp-cta-widget h4 {
    font-size: 16.5px;
  }

  .bp-cta-widget p {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .bp-cta-widget-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Publications Section */
  .publications-section {
    padding: 36px 16px;
  }

  .publications-header {
    margin-bottom: 20px;
  }

  .publications-title {
    font-size: 22px;
  }

  .publications-feed-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pub-card-image {
    height: 160px;
  }

  .pub-card-body {
    padding: 16px;
  }

  .pub-card-title {
    font-size: 15.5px;
  }

  .pub-card-excerpt {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .pub-read-more {
    font-size: 13px;
  }

  /* Lightbox */
  .bp-modal-box {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .bp-lightbox-title {
    font-size: 17px;
    margin-bottom: 12px;
    padding-right: 36px;
  }

  .bp-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* --- EXTRA SMALL SCREENS (<= 480px / 360px) --- */
@media (max-width: 480px) {
  .sub-hero.resource-detail-hero {
    padding: 26px 12px 22px;
  }

  .bp-main-layout {
    padding: 18px 12px 32px;
  }

  .resource-detail-hero-content .sub-hero-title {
    font-size: 24px;
  }

  .resource-detail-hero-content .sub-hero-subtitle {
    font-size: 13.5px;
  }

  .resource-hero-img-box {
    height: 180px;
  }

  .bp-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .bp-section-title {
    font-size: 20px;
  }

  .bp-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .bp-prac-footer {
    flex-wrap: wrap;
  }

  .publications-section {
    padding: 28px 12px;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .bp-sidebar, 
  .ppi-style-2, 
  footer, 
  .resource-pill-row, 
  .resource-footer-nav-container, 
  .publications-section,
  .bp-diagram-expand-btn,
  .bp-search-bar,
  .bp-directory-nav {
    display: none !important;
  }

  .bp-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .bp-card, 
  .bp-anatomy-item, 
  .bp-treatment-card, 
  .bp-nutrition-box {
    box-shadow: none !important;
    border: 1px solid #CCC !important;
    page-break-inside: avoid;
  }
}
