/**
 * White Paper page styles
 * Template: page-white-paper.php
 *
 * Sections:
 *   1. Hero
 *   2. Description
 *   3. FlipBook
 *   4. Authors grid
 *   5. Related White Papers
 *   6. References
 *   7. Shared utilities (buttons, section title)
 *   8. Responsive
 */

/* ── 1. Shared utilities ────────────────────────────────────────────── */

.white-paper-wrapper {
  overflow: hidden;
}

.wp-section-title {
  font-size: var(--font-medium-large);
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-template-page-white-paper h2 {
  color: var(--asp-plum);
  line-height: 1.2;
  font-weight: 600;
  font-family: var(--font-family);
}

/* ── Hero buttons — white on plum background ────────────────────────── */

.page-template-page-white-paper .wp-hero .arrow-bg-button {
  background: var(--white);
  color: var(--color-dark);
}

/* ── 2. Hero ────────────────────────────────────────────────────────── */

.wp-hero {
  padding: 150px 0 60px;
  background-color: var(--asp-plum);
}

.wp-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}

/* Left column */
.wp-hero__image-col {
  flex: 0 0 420px;
  max-width: 420px;
}

.wp-hero__cover {
  width: 100%;
  height: auto;
  display: block;
}

/* Right column */
.wp-hero__content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wp-hero__title {
  font-size: var(--font-large);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.wp-hero__authors {
  font-size: var(--font-small);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.wp-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ── 3. Description ─────────────────────────────────────────────────── */

.wp-description {
  padding: 60px 0;
}

.wp-description__body {
  font-size: var(--font-default);
  color: var(--dark-text);
  line-height: 1.8;
  margin: 0 auto;
}

.wp-description__body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
}

/* ── 4. FlipBook ────────────────────────────────────────────────────── */

.wp-flipbook {
  padding: 0;
  background-color: var(--BG-dark);
  min-height: auto;
  width: 100%;
  margin: 0;
}

.wp-flipbook--logged {
  min-height: 100vh;
}

.wp-flipbook .book-widget .full-size iframe {
  margin-top: 0px;
  padding-bottom: 10px;
}

.wp-flipbook__inner {
  display: flex;
  justify-content: center;
}

/* ── 5. Authors grid ────────────────────────────────────────────────── */

.wp-authors {
  padding: 60px 0;
}

.wp-authors__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-authors__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 180px;
  max-width: 200px;
}

.wp-authors__figure {
  margin: 0 0 16px;
  width: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.wp-authors__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-authors__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wp-authors__name {
  font-size: var(--font-default);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.wp-authors__academic {
  font-size: var(--font-small);
  color: var(--color-green-light);
  margin: 0;
}

.wp-authors__role {
  font-size: var(--font-small);
  color: var(--dark-text);
  margin: 0;
}

/* ── 6. Related White Papers ────────────────────────────────────────── */

.wp-related {
  padding: 60px 0;
  background-color: var(--BG-light);
}

.wp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-related__item {
  display: flex;
}

.wp-related__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(58, 45, 76, 0.08);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.wp-related__card:hover {
  box-shadow: 0 8px 28px rgba(58, 45, 76, 0.18);
  transform: translateY(-2px);
}

.wp-related__card-content {
  flex: 1;
  min-width: 0;
}

.wp-related__card-title {
  font-size: var(--font-default);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.wp-related__card-title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.wp-related__card-title a::after {
  content: '\2192'; /* → */
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.wp-related__card-title a:hover {
  color: var(--color-mid);
}

.wp-related__card-title a:hover::after {
  transform: translateX(4px);
}

.wp-related__card-excerpt {
  font-size: var(--font-small);
  color: var(--dark-text);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-related__card-image {
  flex: 0 0 110px;
  max-width: 110px;
}

.wp-related__thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* ── 7. References ──────────────────────────────────────────────────── */

.wp-references {
  padding: 60px 0;
}

.wp-references__body {
  font-size: var(--font-small);
  color: var(--dark-text);
  line-height: 1.8;
}

.wp-references__body p,
.wp-references__body li {
  margin-bottom: 8px;
}

/* ── 8. Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .wp-flipbook {
    min-height: auto;
  }

  /* Hero: stack to column on mobile */
  .wp-hero__inner {
    flex-direction: column;
  }

  .wp-hero__image-col {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .wp-hero__title {
    font-size: var(--font-medium);
  }

  /* Related: hide grid, show slick dots */
  .wp-related__grid {
    display: block; /* Slick will take over on mobile */
  }

  .wp-related__grid .slick-slide {
    padding: 0;
  }

  .wp-related-slider .slick-track {
    display: flex;
    gap: 30px;
  }

  .wp-related__card {
    flex-direction: column;
  }

  .wp-related__card-image {
    max-width: 110px;
    width: auto;
  }

  /* Authors: allow wrapping to 2 columns on mobile */
  .wp-authors__item {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
  }

  /* Section title smaller on mobile */
  .wp-section-title {
    font-size: var(--font-normal);
  }
}
