/* Parent resources page – aligned with Bright Talks / Figma */
.page-parent-resources {
  background: transparent;
  min-height: 100vh;
}

.parent-resources-main {
  padding: 2rem 0 4rem;
}

.parent-resources-hero {
  position: relative;
  margin: 0 0 1.5rem;
}

.parent-resources-title {
  position: absolute;
  left: 1.5rem;
  bottom: 1.2rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-align: left;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.6);
}

.pr-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--slate-dark);
  margin: 0.5rem 0 1.1rem;
}

.parent-resources-hero-img {
  width: 100%;
  max-width: 720px;
  height: 280px;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  background: url('../teen-laptop-couch.png') center/cover no-repeat;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.parent-resources-intro {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 2rem;
  text-align: left;
}

.resource-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(245, 158, 46, 0.25);
}

.resource-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.resource-card-desc {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.resource-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin: 1.25rem 0 0.35rem;
}

.resource-section-text {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.resource-more-toggle {
  padding: 0;
  margin: 0 0 0.75rem;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-more-toggle:hover,
.resource-more-toggle:focus {
  color: var(--orange);
}

.resource-card-more {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.resource-card-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.resource-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Read button – hover state */
.btn-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-read:hover,
.btn-read:focus {
  background: var(--orange-dark);
  color: var(--white);
  border-color: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 46, 0.35);
}

.btn-read:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

/* Download icon link */
.resource-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--slate);
  border: 2px solid var(--slate-light);
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.resource-download:hover,
.resource-download:focus {
  color: var(--orange-dark);
  border-color: var(--orange);
  background: rgba(245, 158, 46, 0.08);
  transform: translateY(-1px);
}

.resource-download:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.download-icon {
  flex-shrink: 0;
}

/* Tabs for guide / family videos */
.parent-resources-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  margin: 0 0 1.5rem;
  border-radius: 999px;
  background: #f9fafb;
}

.pr-tab {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.pr-tab.active {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 46, 0.35);
  transform: translateY(-1px);
}

.pr-tab:hover,
.pr-tab:focus {
  background: rgba(248, 187, 134, 0.25);
}

.pr-tab.active:hover,
.pr-tab.active:focus {
  background: var(--orange-dark);
}

.pr-tab:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

.pr-panel {
  margin-top: 0.5rem;
}

.pr-panel--hidden {
  display: none;
}

/* Family videos grid inside Parent Resources */
.page-parent-resources .pr-video-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 720px;
}

.page-parent-resources .pr-video-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.page-parent-resources .pr-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(245, 158, 46, 0.25);
}

.page-parent-resources .pr-video-thumb-wrap {
  position: relative;
  padding-top: 52%;
  overflow: hidden;
}

.page-parent-resources .pr-video-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-parent-resources .pr-video-thumb--zoom {
  transform-origin: center;
  will-change: transform;
  animation: prThumbKenBurns 22s ease-in-out infinite alternate;
}

@keyframes prThumbKenBurns {
  from {
    transform: scale(1.04) translate3d(0%, 0%, 0);
  }
  to {
    transform: scale(1.15) translate3d(-2.2%, -1.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-parent-resources .pr-video-thumb--zoom {
    animation: none;
  }
}

.page-parent-resources .pr-video-duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
}

.page-parent-resources .pr-video-body {
  padding: 1rem 1.25rem 1.1rem;
}

.page-parent-resources .pr-video-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-dark);
  background: rgba(248, 187, 134, 0.2);
  margin-bottom: 0.5rem;
}

.page-parent-resources .pr-video-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin: 0 0 0.35rem;
}

.page-parent-resources .pr-video-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.page-parent-resources .pr-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-parent-resources .pr-video-tags .tag {
  font-size: 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.15rem 0.5rem;
}

.page-parent-resources .video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.45);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.page-parent-resources .video-play-btn .play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
  margin-left: 2px;
}

.page-parent-resources .video-play-btn:hover,
.page-parent-resources .video-play-btn:focus {
  background: rgba(248, 187, 134, 0.98);
  transform: translate(-50%, -50%) scale(1.05);
}

.page-parent-resources .video-play-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .parent-resources-main {
    padding: 2.5rem 0 4rem;
  }

  .resource-card {
    padding: 1.75rem 2rem;
  }

  .page-parent-resources .pr-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Video modal (parent resources family videos) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.55);
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--black, #1a1614);
  border-radius: var(--radius-lg, 22px);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.video-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white, #fff);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-modal-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal[hidden] {
  display: none !important;
}
