/* PersonixHealth Resources pages - shared layout */
/* .kicker is now in main.css */

.res-hero {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 72px 0 54px;
}
.res-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.res-hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #444;
  max-width: 58ch;
  margin-bottom: 24px;
}
.res-hero .btn { min-height: 44px; }

.res-section { padding: clamp(48px, 8vw, 74px) 0; }
.res-section.alt { background: var(--background-color); }
.res-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

/* Video cards */
.res-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.res-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.res-video-thumb {
  aspect-ratio: 9/16;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #767676;
  font-size: 0.9rem;
  font-weight: 600;
}
.res-video-frame {
  aspect-ratio: 9/16;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.res-video-frame video {
  width: 80%;
  display: block;
}
.res-video-card .content { padding: 20px; }
.res-video-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  color: var(--secondary-color);
}
.res-video-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.res-video-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.res-video-note {
  margin-top: var(--space-lg);
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* Reading cards */
.res-reading-list { display: flex; flex-direction: column; gap: 20px; }
.res-reading-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.res-reading-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--secondary-color);
}
.res-reading-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.res-reading-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--secondary-color);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.res-reading-card .link-placeholder {
  font-size: 0.9rem;
  color: #767676;
  font-style: italic;
}

/* Definitions glossary */
.res-def-list { display: flex; flex-direction: column; gap: 20px; }
.res-def-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.res-def-item:last-child { border-bottom: none; }
.res-def-term {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: var(--space-xs);
}
.res-def-term .abbr { color: var(--primary-color); }
.res-def-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.res-def-group h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 32px 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-color);
}
.res-def-group h3:first-child { margin-top: 0; }

/* Final CTA band - uses shared pattern, res- alias kept for backward compat */
.res-cta-band {
  background: var(--primary-color);
  color: white;
  padding: clamp(40px, 8vw, 64px) 24px;
  text-align: center;
}
.res-cta-band h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-lg);
  color: white;
}
.res-cta-band .btn-primary {
  background: white;
  color: var(--primary-color);
  min-height: 48px;
  padding: 14px 28px;
}
.res-cta-band .btn-primary:hover { background: #f0f0f0; }

/* ==================== RESPONSIVE ==================== */

/* Mobile / Tablet */
@media (max-width: 768px) {
  .res-video-grid { grid-template-columns: 1fr; gap: var(--space-md); max-width: 100%; margin: 0 auto; }
}

/* Tablet landscape - 2 columns for video grid */
@media (min-width: 769px) and (max-width: 1024px) {
  .res-video-grid { grid-template-columns: repeat(2, 1fr); }
  .res-reading-list { gap: var(--space-md); }
}
