/*
Theme Name: Megha Shah Theme
Theme URI: https://meghashah.me
Author: Megha Shah
Description: Custom theme for Megha Shah, DNP - The Oncology Nurse
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: meghashah-theme
*/

/* =========================================================
   CSS VARIABLES
========================================================= */
:root {
  --primary:       #0066aa;
  --primary-hover: #004e85;
  --primary-light: #3391cc;
  --primary-bg:    #e8f4fc;
  --dark:          #1a2f4b;
  --text:          #2d3748;
  --text-secondary:#5a6987;
  --bg-light:      #f7fafd;
  --bg-section:    #eef5fb;
  --border:        #cddff0;
  --white:         #ffffff;
  --shadow-sm:     0 1px 4px rgba(0,102,170,0.08);
  --shadow:        0 4px 16px rgba(0,102,170,0.12);
  --shadow-lg:     0 8px 32px rgba(0,102,170,0.18);
  --radius:        8px;
  --radius-lg:     12px;
  --font:          'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-heading:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  margin: 0 0 .75em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: .9rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: .35em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   LAYOUT UTILITIES
========================================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 860px; }

.section {
  padding: 72px 0;
}
.section--alt {
  background: var(--bg-section);
}
.section--dark {
  background: var(--dark);
  color: rgba(255,255,255,.9);
}
.section--dark h1,.section--dark h2,.section--dark h3,
.section--dark h4,.section--dark h5,.section--dark h6 {
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  margin-bottom: .35em;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6em;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-bg);
}

.btn-donate {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
  font-size: .85rem;
  padding: 9px 18px;
}
.btn-donate:hover {
  background: #1257a0;
  border-color: #1257a0;
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: .85rem;
}

/* =========================================================
   SKIP LINK
========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* =========================================================
   SITE HEADER
========================================================= */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}
.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 79px;
  width: auto;
}
.site-logo .text-logo {
  display: flex;
  flex-direction: column;
}
.site-logo .text-logo .name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.site-logo .text-logo .tagline {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Primary Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-menu li { display: block; }
.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--primary);
  background: var(--primary-bg);
  text-decoration: none;
}

/* Dropdown submenus */
.site-nav-menu .menu-item-has-children { position: relative; }
.site-nav-menu .menu-item-has-children > a::after {
  content: " ▾";
  font-size: .7em;
  opacity: .6;
}
.site-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.site-nav-menu .menu-item-has-children:hover > .sub-menu,
.site-nav-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
.site-nav-menu .sub-menu li { display: block; width: 100%; }
.site-nav-menu .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 0;
}
.site-nav-menu .sub-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Join / Login nav button */
.nav-join-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  padding: 7px 16px !important;
}
.nav-join-btn:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}
.nav-member-logout a {
  font-size: .82rem !important;
  color: var(--text-secondary) !important;
}
.nav-member-logout a:hover { color: var(--primary) !important; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--text-secondary);
  transition: all .2s;
  text-decoration: none;
  font-size: .85rem;
}
.header-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e4a7a 100%);
  color: #fff;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 22%, transparent 74px, rgba(255,255,255,.07) 75px, rgba(255,255,255,.07) 78px, transparent 79px),
    radial-gradient(circle at 88% 60%, transparent 118px, rgba(255,255,255,.05) 119px, rgba(255,255,255,.05) 123px, transparent 124px),
    radial-gradient(circle at 72% 10%, transparent 44px, rgba(255,255,255,.07) 45px, rgba(255,255,255,.07) 48px, transparent 49px),
    radial-gradient(circle at 20% 80%, transparent 88px, rgba(255,255,255,.04) 89px, rgba(255,255,255,.04) 93px, transparent 94px),
    radial-gradient(circle at 50% 50%, transparent 188px, rgba(255,255,255,.03) 189px, rgba(255,255,255,.03) 194px, transparent 195px);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.hero-content {
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent, #42a5f5);
  background: rgba(255,255,255,.1);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: .2em;
  font-weight: 900;
}
.hero-content h1 .title-line {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: rgba(255,255,255,.8);
  margin-top: .1em;
}
.hero-credentials {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-credentials .badge {
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.hero-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
}
.hero-image img {
  max-height: 520px;
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.3));
}

/* =========================================================
   EVENTS SECTION
========================================================= */
.event-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
}
.event-block:last-child { margin-bottom: 0; }

.event-block-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}
.event-block-inner.flip { direction: rtl; }
.event-block-inner.flip > * { direction: ltr; }

.event-media {
  background: var(--bg-section);
  overflow: hidden;
}
.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.event-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-date-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 8px;
}
.event-body h3 {
  margin-bottom: 12px;
}
.event-body p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  transition: transform .4s ease;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* =========================================================
   ABOUT SECTION
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 90px;
}
.about-photo img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-text p { margin-bottom: 1em; }
.about-text p:last-child { margin-bottom: 0; }

/* =========================================================
   SERVICES CARDS
========================================================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all .25s;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light, #3391cc);
  transform: translateY(-4px);
}
.service-card .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-card .icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: .95rem; margin: 0; }

/* =========================================================
   WORK EXPERIENCE
========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all .25s;
}
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.work-card .icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.work-card .icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.work-card h4 { margin: 0 0 8px; font-size: 1rem; }
.work-card p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* =========================================================
   SURVEY TEASER / QUOTE BLOCK
========================================================= */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.quote-card {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.quote-card p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

/* =========================================================
   STAY IN TOUCH / CTA SECTION
========================================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-section h2 { color: #fff; margin-bottom: .5em; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 1.05rem; }

/* =========================================================
   PORTFOLIO PAGE
========================================================= */
.page-hero {
  background:
    radial-gradient(ellipse at 90% 50%, rgba(100,190,255,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 50%, rgba(0,30,80,.4) 0%, transparent 45%),
    linear-gradient(to right, #0b1a2e 0%, #0e3268 45%, #1a6bb5 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 24px 108px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-deco-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C240,0 480,80 720,40 C960,0 1200,80 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.page-hero > *:not(.hero-deco-svg) { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .4em; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.page-hero p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.publication-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.publication-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  line-height: 1.6;
}
.publication-list li:last-child { border-bottom: none; }
.publication-list a {
  font-weight: 600;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s;
}
.portfolio-card:hover { box-shadow: var(--shadow); }
.portfolio-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.portfolio-card p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

.portfolio-card--image img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.orcid-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.orcid-badge img {
  width: 60px;
  height: 60px;
}

/* =========================================================
   CV / TIMELINE
========================================================= */
.cv-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}
.cv-profile-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cv-profile-bio h2 { margin-bottom: 12px; }
.cv-profile-bio .award-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cv-profile-bio .award-chips .chip {
  background: var(--primary-bg);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.timeline {
  position: relative;
  padding: 16px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-year {
  position: relative;
  margin-bottom: 8px;
}
.timeline-year-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  padding-left: 52px;
}
.timeline-year-marker::before {
  content: attr(data-year);
  position: absolute;
  left: 0;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-light, #3391cc);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary-light, #3391cc);
}

.timeline-item-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.timeline-item-inner .org-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item-inner .org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.timeline-item-content h4 {
  margin: 0 0 4px;
  font-size: .95rem;
}
.timeline-item-content .org {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-item-content p {
  font-size: .875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================
   SURVEYS PAGE
========================================================= */
.surveys-intro {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.surveys-photos {
  columns: 2;
  column-gap: 12px;
}
.surveys-photos img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.daisy-letter {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border: 1px solid #f0c040;
  border-left: 4px solid #f0c040;
  border-radius: var(--radius);
  padding: 32px 36px;
  position: relative;
}
.daisy-letter::before {
  content: '"';
  font-size: 8rem;
  color: #f0c040;
  opacity: .25;
  position: absolute;
  top: -20px;
  left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}
.daisy-letter p {
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text);
  margin-bottom: .75em;
  position: relative;
  z-index: 1;
}
.daisy-letter p:last-child { margin-bottom: 0; }
.daisy-letter .attribution {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  font-size: .875rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-card .patient-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-section);
}
.testimonial-card .patient-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-card p {
  font-size: .875rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text);
  flex: 1;
  margin: 0;
}
.testimonial-card .attrib {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
}

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--primary);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item .label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2px;
}
.contact-info-item .value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}
.contact-info-item .value a { color: var(--primary); }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 24px; }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,170,.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-honey { position: absolute; left: -9999px; opacity: 0; }

.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 600;
}
.form-notice.success {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
}
.form-notice.error {
  background: #f8d7da;
  border: 1px solid #dc3545;
  color: #721c24;
}

/* =========================================================
   FOOTER
========================================================= */
#colophon {
  background: var(--dark);
  color: rgba(255,255,255,.75);
}

.footer-main {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Shared column heading */
.footer-col-heading {
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 14px;
}
.footer-col-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Brand column */
.footer-brand .site-logo .text-logo .name  { color: #fff; }
.footer-brand .site-logo .text-logo .tagline { color: rgba(255,255,255,.5); }
.footer-brand p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: 14px;
  line-height: 1.7;
}

/* Newsletter column — pi9 form overrides */
.megha-nl-override,
.megha-nl-override .pi9-nl-block {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.megha-nl-override .pi9-nl-form {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.megha-nl-override .pi9-nl-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.megha-nl-override label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.65);
  margin-bottom: 5px;
  text-align: left;
}
.megha-nl-override input[type="text"],
.megha-nl-override input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font);
  font-size: .88rem;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.megha-nl-override input[type="text"]::placeholder,
.megha-nl-override input[type="email"]::placeholder { color: rgba(255,255,255,.3); }
.megha-nl-override input[type="text"]:focus,
.megha-nl-override input[type="email"]:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.13);
}
.megha-nl-override .pi9-nl-submit {
  display: block;
  width: 100%;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.megha-nl-override .pi9-nl-submit:hover { background: var(--primary-light, #3391cc); }
.megha-nl-override .pi9-nl-notice {
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: .85rem;
  font-weight: 600;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.megha-nl-override .pi9-nl-hp { display: none !important; }

/* Connect column */
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: all .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-email { font-size: .875rem; color: rgba(255,255,255,.65); }
.footer-email a { color: var(--accent, #42a5f5); }
.footer-email a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* =========================================================
   GENERIC PAGE
========================================================= */
.page-content {
  padding: 64px 0;
}
.page-content .entry-header {
  margin-bottom: 32px;
}

/* =========================================================
   RESPONSIVE — TABLET (<=900px)
========================================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 80px;
  }
  .hero-image { order: -1; }
  .hero-image img { max-height: 320px; border-radius: var(--radius-lg); }
  .hero-content p { max-width: 100%; }
  .hero-cta { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; }

  .work-grid { grid-template-columns: 1fr; }

  .event-block-inner { grid-template-columns: 1fr; }
  .event-block-inner.flip { direction: ltr; }
  .event-media img { min-height: 200px; max-height: 260px; }

  .surveys-intro { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .cv-profile { grid-template-columns: 1fr; }
  .cv-profile-img { max-width: 200px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-subscribe-inner { flex-direction: column; text-align: center; }

  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   RESPONSIVE — MOBILE (<=600px)
========================================================= */
@media (max-width: 600px) {
  .section { padding: 48px 0; }

  .header-inner { padding: 10px 16px; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav-menu { flex-direction: column; width: 100%; gap: 4px; }
  .site-nav-menu li { width: 100%; }
  .site-nav a { padding: 12px 16px; font-size: 1rem; border-radius: 8px; width: 100%; }
  .site-nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-bg);
    border-radius: 0;
    padding: 0 0 0 12px;
    margin: 4px 0 4px 8px;
    background: transparent;
  }
  .site-nav-menu .menu-item-has-children:hover > .sub-menu { display: none; }
  .site-nav-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
  #masthead { position: relative; }

  .hero-inner { padding: 40px 16px 64px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .quote-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .megha-nl-override .pi9-nl-name-row { grid-template-columns: 1fr; }

  .footer-subscribe-form { flex-direction: column; }
  .footer-subscribe-form input[type="email"] {
    border-right: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
  }
  .footer-subscribe-form button {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .contact-form-wrap { padding: 24px; }
  .daisy-letter { padding: 24px; }

  .timeline::before { left: 12px; }
  .timeline-item { padding-left: 40px; }
  .timeline-item::before { left: 6px; }
  .timeline-item-inner { flex-direction: column; }
  .timeline-year-marker { padding-left: 44px; }
  .timeline-year-marker::before { font-size: .7rem; }
}

/* =========================================================
   FOOTER DISCLAIMER
========================================================= */
.footer-disclaimer {
  background: #0d1f33;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}

.footer-disclaimer .container {
  max-width: 860px;
}

.footer-disclaimer p {
  margin: 0 0 6px;
  font-size: .78rem;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  text-align: center;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer strong {
  color: rgba(255,255,255,.75);
}

.footer-disclaimer-links {
  font-size: .74rem !important;
}

.footer-disclaimer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer-links a:hover {
  color: rgba(255,255,255,.8);
}

/* =========================================================
   LEGAL PAGE (Terms / Privacy)
========================================================= */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-toc {
  background: #f0f6ff;
  border: 1px solid #c8ddf5;
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 40px;
}

.legal-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-toc a {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-doc {
  margin-bottom: 56px;
}

.legal-doc-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.legal-doc-header h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: var(--dark);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: #6b7c88;
  margin: 0;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section h4 {
  font-size: .9rem;
  color: var(--dark);
  margin: 12px 0 6px;
}

.legal-section p,
.legal-section ul,
.legal-section li {
  font-size: .92rem;
  line-height: 1.75;
  color: #3a4a5c;
}

.legal-section ul {
  padding-left: 20px;
  margin: 6px 0;
}

.legal-section li {
  margin-bottom: 4px;
}

.legal-section a {
  color: var(--primary);
}

/* Alert sections (educational disclaimer, HIPAA note) */
.legal-section--alert {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
}

.legal-section--alert h3 {
  border-bottom-color: #fcd34d;
  color: #92400e;
}

.legal-divider {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 48px 0;
}

@media (max-width: 600px) {
  .legal-toc ul { flex-direction: column; gap: 8px; }
  .legal-meta   { flex-direction: column; gap: 4px; }
}

/* ── Drug archive disclaimer ──────────────────────────────────── */
.drug-archive-disclaimer {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: .88rem;
  line-height: 1.65;
  color: #3a4a5c;
}

.drug-archive-disclaimer strong {
  color: #92400e;
}

/* =========================================================
   SINGLE EVENT PAGE
========================================================= */
.event-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.event-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.event-detail-image img { width: 100%; height: auto; }
.event-detail-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.event-detail-content { line-height: 1.75; }

.event-detail-sidebar {
  position: sticky;
  top: 100px;
}
.event-meta-card {
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.event-meta-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 4px;
}
.event-meta-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.events-section-heading {
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.events-section-heading h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 0;
}
.events-section-heading--past {
  margin-top: 56px;
  border-bottom-color: var(--border);
}
.events-section-heading--past h2 { color: var(--text-secondary); }
.events-empty {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 40px;
}

.event-back-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .event-detail-sidebar { position: static; }
}

/* =========================================================
   MEMBER ACCESS PAGE & GATE
========================================================= */
.member-access-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* Tabs */
.member-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
  gap: 0;
}
.member-tab {
  display: inline-block;
  padding: 14px 32px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.member-tab:hover { color: var(--primary); text-decoration: none; }
.member-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Panels */
.member-panel { display: none; }
.member-panel.is-active { display: block; }

.member-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 40px 0 16px;
  align-items: start;
}

.member-panel-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--dark);
}

/* Benefits column */
.member-benefits-col {
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.member-benefits-col h3 {
  color: var(--primary);
  margin: 0 0 20px;
  font-size: 1.1rem;
}
.member-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-benefits-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text);
}
.member-benefits-list li:last-child { border-bottom: none; }
.member-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.member-free-note {
  margin: 20px 0 0;
  font-size: .8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Form extras */
.member-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  color: var(--text-secondary);
}
.member-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  cursor: pointer;
  line-height: 1.5;
}
.member-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.member-forgot {
  margin-top: 12px;
  font-size: .875rem;
}
.member-switch {
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-secondary);
}

/* Style wp_login_form() output */
.member-form-col #loginform p { margin: 0 0 20px; }
.member-form-col #loginform label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.member-form-col #loginform label br { display: none; }
.member-form-col #loginform input[type="text"],
.member-form-col #loginform input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  margin-top: 4px;
}
.member-form-col #loginform input[type="text"]:focus,
.member-form-col #loginform input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,170,.12);
}
.member-form-col #loginform .login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}
.member-form-col #loginform .login-remember input[type="checkbox"] {
  accent-color: var(--primary);
}
.member-form-col #loginform .login-submit { margin-bottom: 0; }
.member-form-col #loginform .login-submit input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  letter-spacing: .02em;
}
.member-form-col #loginform .login-submit input[type="submit"]:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Member Gate (shown on archive when logged out) */
.member-gate {
  text-align: center;
  padding: 64px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.member-gate-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
}
.member-gate h2 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.member-gate > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}
.member-gate-benefits {
  list-style: none;
  padding: 20px 24px;
  margin: 0 0 36px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  text-align: left;
}
.member-gate-benefits li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid rgba(0,102,170,.1);
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
}
.member-gate-benefits li:last-child { border-bottom: none; }
.member-gate-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}
.member-gate-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Member page responsive */
@media (max-width: 768px) {
  .member-panel-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .member-name-row { grid-template-columns: 1fr; }
  .member-tab { padding: 12px 18px; font-size: .8rem; }
  .member-panel-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .member-gate { padding: 40px 0; }
  .member-gate-actions { flex-direction: column; align-items: center; }
  .member-gate-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   INSIGHTS — Archive & Single
========================================================= */

/* Topic filter pills */
.insight-topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.insight-topic-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .18s;
}
.insight-topic-pill:hover,
.insight-topic-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Post card grid */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 960px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.insight-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.insight-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.insight-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.insight-card:hover .insight-card-thumb img { transform: scale(1.04); }

.insight-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.insight-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.insight-topic-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.insight-topic-tag:hover { background: var(--primary); color: var(--white); }

.insight-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.35;
}
.insight-card-title a { color: inherit; text-decoration: none; }
.insight-card-title a:hover { color: var(--primary); }

.insight-card-meta {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.insight-card-sep { opacity: .5; }

.insight-card-excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 16px;
}
.insight-card-read-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
}
.insight-card-read-more:hover { text-decoration: underline; }

/* Pagination */
.insight-pagination { text-align: center; margin-top: 16px; }
.insight-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.insight-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  text-decoration: none;
  color: var(--text);
}
.insight-pagination .page-numbers.current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.insight-pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
}

.insight-empty { text-align: center; padding: 80px 0; color: var(--text-secondary); }

/* --- Single Insight ---------------------------------------- */
.insight-back-link { margin-bottom: 32px; }
.insight-back-link a {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.insight-back-link a:hover { text-decoration: underline; }

.insight-hero-topics { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.insight-hero-meta { margin-top: 14px; font-size: .9rem; opacity: .8; }

.insight-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .insight-layout { grid-template-columns: 1fr; } }

.insight-featured-img {
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.insight-featured-img img { width: 100%; height: auto; display: block; }

.insight-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.insight-body h2 { font-size: 1.4rem; color: var(--dark); margin: 36px 0 12px; }
.insight-body h3 { font-size: 1.15rem; color: var(--dark); margin: 28px 0 10px; }
.insight-body p  { margin: 0 0 20px; }
.insight-body ul,
.insight-body ol { margin: 0 0 20px; padding-left: 24px; }
.insight-body li { margin-bottom: 8px; }
.insight-body a  { color: var(--primary); }
.insight-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--primary-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--dark);
}

/* Sidebar */
.insight-sidebar { position: sticky; top: 24px; }

.insight-author-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 32px;
}
.insight-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 12px;
}
.insight-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2px;
}
.insight-author-title {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 12px;
}
.insight-author-bio {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
}

.insight-related {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.insight-related-heading {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.insight-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.insight-related-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.insight-related-list li:last-child { border-bottom: none; }
.insight-related-list a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.35;
}
.insight-related-list a:hover { color: var(--primary); }
.insight-related-list span {
  font-size: .77rem;
  color: var(--text-secondary);
}

/* =========================================================
   LEAD MAGNET — Page & Homepage Promo
========================================================= */

/* Homepage promo strip */
.lm-promo-section { background: var(--primary-bg); }
.lm-promo-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 0;
}
.lm-promo-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.lm-promo-text { flex: 1; }
.lm-promo-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: 6px;
}
.lm-promo-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 8px;
}
.lm-promo-text p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.lm-promo-btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 768px) {
  .lm-promo-inner { flex-direction: column; text-align: center; }
  .lm-promo-btn { width: 100%; justify-content: center; }
}

/* Lead magnet landing page */
.lm-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .lm-layout { grid-template-columns: 1fr; gap: 40px; } }

.lm-offer-heading {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 20px;
}
.lm-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.lm-benefit-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.lm-benefit-list li:last-child { border-bottom: none; }
.lm-benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}
.lm-sub {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Form card */
.lm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.lm-card-eyebrow {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin: 0 0 6px;
}
.lm-card-heading {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 6px;
}
.lm-card-sub {
  font-size: .9rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
}
.lm-form label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.lm-form input[type="text"],
.lm-form input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  margin-bottom: 16px;
  transition: border-color .15s;
}
.lm-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,170,.12);
}
.lm-privacy {
  font-size: .78rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}
.lm-privacy a { color: var(--primary); }
.lm-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }

/* Success state */
.lm-success {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.lm-success-icon {
  width: 60px;
  height: 60px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 auto 20px;
  font-weight: 900;
}
.lm-success h2 { font-size: 1.5rem; color: var(--dark); margin: 0 0 10px; }
.lm-success p { color: var(--text-secondary); margin: 0 0 20px; }
.lm-download-btn { font-size: 1.1rem; padding: 14px 32px; margin-bottom: 24px; }
.lm-coming-soon { font-style: italic; }
.lm-next { font-size: .88rem; }
.lm-next a { color: var(--primary); font-weight: 700; }
