/**
 * PeaNest Little Expert's Corner Styling
 * Aligned with Blog Layout System while keeping subtle child-friendly identity
 */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Nunito:wght@400;500;600;700;800&family=Pacifico&display=swap');

/* Reset and Container for CMS Page 7 */
.page-cms-7 .breadcrumb,
.page-cms-7 .pn-breadcrumbs,
body.cms-id-7 .breadcrumb,
body.cms-id-7 .pn-breadcrumbs,
.cms-id-7 .pn-breadcrumbs,
.cms-id-7 nav.pn-breadcrumbs,
.cms-id-7 .breadcrumb,
.cms-id-7 nav.breadcrumb,
.cms-id-7 #wrapper .breadcrumb,
.cms-id-7 .breadcrumb-wrapper,
.cms-id-7 [aria-label="Breadcrumb"],
.cms-id-7 [aria-label="breadcrumb"],
.cms-id-7 [aria-label="Narsymo kelias"],
.page-cms-7 .pn-breadcrumbs,
.page-cms-7 nav.pn-breadcrumbs,
.page-cms-7 .breadcrumb,
.page-cms-7 nav.breadcrumb,
.page-cms-7 #wrapper .breadcrumb,
.page-cms-7 .breadcrumb-wrapper,
.page-cms-7 [aria-label="Breadcrumb"],
.page-cms-7 [aria-label="breadcrumb"],
.page-cms-7 [aria-label="Narsymo kelias"] {
  display: none !important;
}

.page-cms-7 #notifications,
body.cms-id-7 #notifications {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-cms-7 #left-column,
.page-cms-7 #right-column,
body.cms-id-7 #left-column,
body.cms-id-7 #right-column,
.cms-id-7 #left-column,
.cms-id-7 #right-column {
  display: none !important;
}

.cms-id-7 .page-header,
.page-cms-7 .page-header {
  display: none !important;
}

body.cms-id-7 #wrapper,
.page-cms-7 #wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.cms-id-7 #wrapper .container,
.page-cms-7 #wrapper .container,
.cms-id-7 #wrapper .container {
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.cms-id-7 #wrapper .row,
.page-cms-7 #wrapper .row,
.cms-id-7 #wrapper .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
}

body.cms-id-7 #content-wrapper,
body.cms-id-7 #main,
body.cms-id-7 #content,
body.cms-id-7 .page-content,
body.cms-id-7 .page-cms,
body.cms-id-7 .pn-cms-page__before,
.page-cms-7 #content-wrapper,
.page-cms-7 #main,
.page-cms-7 #content,
.page-cms-7 .page-content,
.page-cms-7 .page-cms,
.page-cms-7 .pn-cms-page__before,
.cms-id-7 #content-wrapper,
.cms-id-7 #main,
.cms-id-7 #content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: static !important;
  float: none !important;
}

/* ==================================================
   Discovery Journal Outer Wrapper & Side Doodles
   ================================================== */
.pn-little-expert-wrapper {
  position: relative;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  box-sizing: border-box;
}

.pn-journal-side-doodle {
  position: absolute;
  top: 18px;
  pointer-events: none;
  opacity: 0.28;
  z-index: 1;
}

.pn-side-doodle--left {
  left: -48px;
}

.pn-side-doodle--right {
  right: -48px;
}

@media (max-width: 1320px) {
  .pn-journal-side-doodle {
    display: none !important;
  }
  .pn-little-expert-wrapper {
    overflow-x: hidden;
  }
}

.pn-little-expert-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 28px;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  color: #2c2c2c;
  text-align: left;
  width: 100%;
}

/* Washi Tapes */
.pn-washi-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.2deg);
  width: 78px;
  height: 15px;
  background: rgba(218, 230, 202, 0.82);
  border-left: 2px dashed rgba(175, 192, 155, 0.6);
  border-right: 2px dashed rgba(175, 192, 155, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 4;
}

.pn-featured-tape {
  position: absolute;
  top: -6px;
  right: 24px;
  transform: rotate(2deg);
  width: 58px;
  height: 14px;
  background: rgba(238, 222, 190, 0.85);
  border-left: 2px dashed rgba(200, 180, 140, 0.6);
  border-right: 2px dashed rgba(200, 180, 140, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 4;
}

.pn-card-washi {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(0.8deg);
  width: 48px;
  height: 12px;
  background: rgba(224, 234, 212, 0.85);
  border-left: 2px dashed rgba(185, 200, 168, 0.6);
  border-right: 2px dashed rgba(185, 200, 168, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 4;
}

/* ==================================================
   1. Intro Card (Discovery Journal Cover)
   ================================================== */
.pn-expert-intro-card {
  position: relative;
  background: linear-gradient(155deg, #fdfcf9 0%, #f6f9ef 55%, #eff6e6 100%);
  border: 1.5px solid #d8e5c4;
  border-radius: 16px;
  padding: 12px 24px 11px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 18px rgba(60, 75, 45, 0.04);
  overflow: hidden;
}

.pn-paint-smear {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.pn-paint-smear--hero-tr {
  top: 0px;
  right: -2px;
}

.pn-pencil-mark {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.pn-pencil-mark--hero-bl {
  bottom: 0px;
  left: 2px;
}

.pn-expert-journal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #c8d8b6;
  border-radius: 7px;
  padding: 2px 10px;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #41552d;
  box-shadow: 0 2px 5px rgba(80, 100, 60, 0.06);
  transform: rotate(-1.2deg);
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.pn-label-pin {
  font-size: 11px;
  vertical-align: middle;
}

.pn-expert-intro-title {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a2514;
  margin: 0 0 3px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.pn-title-text {
  display: inline;
}

.pn-title-paint-stroke {
  display: block;
  margin: 3px auto 0;
  line-height: 0;
  text-align: center;
}

.pn-title-paint-stroke svg {
  display: inline-block;
  max-width: 235px;
  width: 100%;
  height: 12px;
}

.pn-expert-intro-text {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.42;
  color: #506042;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ==================================================
   2. Topic Selector (Discovery Index Tabs)
   ================================================== */
.pn-topics-selector {
  text-align: center;
  margin-bottom: 11px;
}

.pn-topics-heading {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #384926;
  margin: 0 0 5px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pn-topics-heading__marker {
  position: relative;
  display: inline-block;
  padding: 1px 6px;
  z-index: 1;
}

.pn-topics-heading__marker::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -6px;
  bottom: 1px;
  height: 9px;
  background: linear-gradient(98deg, rgba(235, 190, 95, 0.12) 0%, rgba(235, 190, 95, 0.46) 10%, rgba(240, 202, 110, 0.52) 85%, rgba(235, 190, 95, 0.14) 100%);
  border-radius: 3px 6px 4px 7px;
  transform: rotate(-1.1deg);
  z-index: -1;
  pointer-events: none;
}

.pn-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 0 4px;
  max-width: 880px;
  margin: 0 auto;
}

.pn-topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #425230;
  border: 1.5px solid #dce6ce;
  border-radius: 999px;
  padding: 3px 12px;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(60, 75, 45, 0.04);
}

.pn-topic-chip:hover {
  background: #f4f8ed;
  border-color: #b8cc9e;
  color: #2c3a1e;
  transform: translateY(-1px);
}

.pn-topic-chip.is-active,
.pn-topic-chip--active {
  background: #5d6f48 !important;
  color: #ffffff !important;
  border-color: #52633e !important;
  box-shadow: 0 2px 6px rgba(93, 111, 72, 0.28);
}

/* Empty states */
.pn-little-expert-empty,
.pn-little-expert-topic-empty {
  text-align: center;
  padding: 24px 16px;
  background: #faf8f5;
  border: 1px dashed #ded7cc;
  border-radius: 12px;
  color: #6d7564;
  font-size: 13px;
  margin: 14px 0;
}

/* ==================================================
   3. Featured Article (Explorer's Note Card)
   ================================================== */
.pn-little-expert-featured {
  margin-bottom: 14px;
}

.pn-expert-card--featured {
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff;
  border: 1.5px solid #dce6cb;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(60, 70, 45, 0.04);
}

.pn-expert-card--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 70, 45, 0.08);
}

.pn-expert-card--featured .pn-expert-card__media-link {
  flex: 0 0 38%;
  max-width: 38%;
  display: block;
  text-decoration: none;
  height: 100%;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
}

.pn-expert-card--featured .pn-expert-card__media {
  width: 100%;
  height: 100%;
  min-height: 175px;
  max-height: 205px;
  background: #faf7f0;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #ebf0df;
}

.pn-expert-card--featured .pn-expert-card__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
  background: transparent;
}

.pn-expert-card--featured:hover .pn-expert-card__img {
  transform: scale(1.02);
}

.pn-expert-card--featured .pn-expert-card__content {
  position: relative;
  flex: 1;
  background-color: #f7faf2;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #cfdec0 24px);
  padding: 13px 22px 12px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  border-radius: 0 14px 14px 0;
}

.pn-expert-card--featured .pn-expert-card__content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1.5px;
  background: rgba(220, 130, 120, 0.45);
  pointer-events: none;
  z-index: 1;
}

.pn-featured-paint-accent {
  position: absolute;
  bottom: 6px;
  right: 14px;
  pointer-events: none;
  z-index: 1;
}

.pn-expert-card--featured .pn-expert-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #556740;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.pn-expert-card--featured .pn-expert-card__badge {
  background: #ffffff;
  color: #3c5025;
  border: 1.5px solid #c2d6aa;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(60, 80, 40, 0.06);
}

.pn-expert-badge-star {
  color: #d4a359;
  font-size: 10px;
  margin-right: 2px;
}

.pn-expert-card--featured .pn-expert-card__date {
  color: #5c6e49;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.pn-expert-card--featured .pn-expert-card__title {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 4px;
  text-align: left;
}

.pn-expert-card--featured .pn-expert-card__title a {
  color: #192514;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pn-expert-card--featured .pn-expert-card__title a:hover {
  color: #43592e;
}

.pn-expert-card--featured .pn-expert-card__excerpt {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.42;
  color: #405230;
  margin: 0 0 6px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pn-expert-card--featured .pn-expert-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  color: #2b3d1b !important;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.pn-expert-card--featured .pn-expert-btn .pn-expert-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.pn-expert-card--featured .pn-expert-btn:hover {
  color: #111a0b !important;
}

.pn-expert-card--featured .pn-expert-btn:hover .pn-expert-arrow {
  transform: translateX(3px);
}

/* ==================================================
   4. 3-Column Grid (Discovery Scrapbook Cards)
   ================================================== */
.pn-little-expert-grid-section {
  width: 100%;
}

.pn-little-expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pn-expert-card.pn-scrapbook-card {
  background: #ffffff;
  border: 1.5px solid #dce6cb;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 3px 14px rgba(60, 75, 45, 0.04);
}

.pn-expert-card.pn-scrapbook-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(60, 75, 45, 0.08);
  border-color: #c4d6ad;
}

/* Card Variants & Art Accents for Scrapbook Cards */
.pn-card-art-accent {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.pn-card-art--smear {
  top: 8px;
  right: 8px;
}

.pn-card-art--pencil {
  top: 8px;
  right: 10px;
}

.pn-card-art--blot {
  bottom: 8px;
  right: 10px;
}

.pn-card-art--crayon {
  top: 8px;
  right: 8px;
}

.pn-card-title-underline {
  display: block;
  margin-top: 2px;
  line-height: 0;
}

.pn-card-title-underline svg {
  display: inline-block;
  max-width: 120px;
  width: 100%;
  height: 6px;
}

/* ==================================================
   Folded & Torn Paper Corner Elements
   ================================================== */
.pn-paper-fold {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  pointer-events: none;
  z-index: 4;
}

/* Fold on bottom-right (e.g. Card 2 & Featured) */
.pn-paper-fold--br,
.pn-paper-fold--featured-br {
  bottom: 0;
  right: 0;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #e2d8c5 transparent;
  filter: drop-shadow(-2px -2px 3px rgba(60, 50, 35, 0.14));
  border-bottom-right-radius: 12px;
}

/* Fold on top-right (e.g. Card 5) */
.pn-paper-fold--tr {
  top: 0;
  right: 0;
  border-width: 14px 14px 0 0;
  border-color: #e2d8c5 transparent transparent transparent;
  filter: drop-shadow(-2px 2px 3px rgba(60, 50, 35, 0.14));
  border-top-right-radius: 12px;
}

/* Torn corner clip / accents */
.pn-torn-corner {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.pn-torn-corner--tr {
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
}

.pn-torn-corner--bl {
  bottom: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
}

.pn-torn-corner--tl {
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
}

/* Card organic imperfect border radii */
.pn-card-variant--1 {
  border-radius: 17px 13px 18px 15px !important;
}

.pn-card-variant--2 {
  border-radius: 15px 17px 14px 18px !important;
}

.pn-card-variant--3 {
  border-radius: 18px 14px 17px 13px !important;
}

.pn-card-variant--4 {
  border-radius: 14px 18px 15px 17px !important;
}

.pn-card-variant--5 {
  border-radius: 17px 14px 18px 13px !important;
}

.pn-card-variant--6 {
  border-radius: 13px 17px 14px 18px !important;
}

/* Variant 1: Pale Sage Tape + Soft Sage Lined Paper */
.pn-card-variant--1 .pn-card-washi {
  transform: translateX(-50%) rotate(-1.2deg);
  background: rgba(220, 232, 208, 0.88);
  border-left: 2px dashed rgba(175, 192, 155, 0.6);
  border-right: 2px dashed rgba(175, 192, 155, 0.6);
}
.pn-card-variant--1 .pn-expert-card__content {
  background-color: #fafcf6;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #d0e0c0 24px);
}
.pn-card-variant--1 .pn-expert-card__content::before {
  background: rgba(220, 130, 120, 0.45);
}
.pn-card-variant--1 .pn-expert-card__topic {
  background: #edf4e4;
  color: #3e5229;
  border: 1px solid #cce0b8;
  transform: rotate(0.6deg);
}

/* Variant 2: Warm Amber Tape + Amber Ruled Paper + Peach Smear */
.pn-card-variant--2 .pn-card-washi {
  transform: translateX(-50%) rotate(1.8deg);
  background: rgba(238, 222, 190, 0.88);
  border-left: 2px dashed rgba(200, 180, 140, 0.6);
  border-right: 2px dashed rgba(200, 180, 140, 0.6);
}
.pn-card-variant--2 .pn-expert-card__content {
  background-color: #fcfaf4;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #e2d4bc 24px);
}
.pn-card-variant--2 .pn-expert-card__content::before {
  background: rgba(215, 160, 100, 0.45);
}
.pn-card-variant--2 .pn-expert-card__topic {
  background: #fdf5e6;
  color: #634b22;
  border: 1px solid #ebd4aa;
  transform: rotate(-0.8deg);
}

/* Variant 3: Dusty Peach Tape + Rose Ruled Paper */
.pn-card-variant--3 .pn-card-washi {
  transform: translateX(-50%) rotate(-0.6deg);
  background: rgba(242, 224, 218, 0.88);
  border-left: 2px dashed rgba(210, 180, 172, 0.6);
  border-right: 2px dashed rgba(210, 180, 172, 0.6);
}
.pn-card-variant--3 .pn-expert-card__content {
  background-color: #fdfbf9;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #e6d2cb 24px);
}
.pn-card-variant--3 .pn-expert-card__content::before {
  background: rgba(225, 135, 125, 0.48);
}
.pn-card-variant--3 .pn-expert-card__topic {
  background: #fbf0ec;
  color: #6d4239;
  border: 1px solid #eccdc5;
  transform: rotate(0.8deg);
}

/* Variant 4: Pale Olive Tape + Olive Ruled Paper + Marker Topic */
.pn-card-variant--4 .pn-card-washi {
  transform: translateX(-50%) rotate(1.3deg);
  background: rgba(218, 230, 202, 0.88);
  border-left: 2px dashed rgba(175, 192, 155, 0.6);
  border-right: 2px dashed rgba(175, 192, 155, 0.6);
}
.pn-card-variant--4 .pn-expert-card__content {
  background-color: #f8faf2;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #cedec0 24px);
}
.pn-card-variant--4 .pn-expert-card__content::before {
  background: rgba(160, 185, 130, 0.45);
}
.pn-card-variant--4 .pn-expert-card__topic {
  background: #f0f6e6;
  color: #384c25;
  border: 1px solid #cde0b8;
  transform: rotate(-0.6deg);
}

/* Variant 5: Warm Ochre Tape + Ochre Ruled Paper + Ochre Blot */
.pn-card-variant--5 .pn-card-washi {
  transform: translateX(-50%) rotate(-1.5deg);
  background: rgba(240, 226, 196, 0.88);
  border-left: 2px dashed rgba(205, 185, 145, 0.6);
  border-right: 2px dashed rgba(205, 185, 145, 0.6);
}
.pn-card-variant--5 .pn-expert-card__content {
  background-color: #fcfaf5;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #e2d4bc 24px);
}
.pn-card-variant--5 .pn-expert-card__content::before {
  background: rgba(215, 160, 100, 0.45);
}
.pn-card-variant--5 .pn-expert-card__topic {
  background: #fbf5e6;
  color: #5c4720;
  border: 1px solid #ebdcba;
  transform: rotate(1.0deg);
}

/* Variant 6: Dusty Rose/Peach Tape + Rose Ruled Paper + Crayon Mark */
.pn-card-variant--6 .pn-card-washi {
  transform: translateX(-50%) rotate(0.8deg);
  background: rgba(238, 218, 212, 0.88);
  border-left: 2px dashed rgba(205, 175, 168, 0.6);
  border-right: 2px dashed rgba(205, 175, 168, 0.6);
}
.pn-card-variant--6 .pn-expert-card__content {
  background-color: #fdfbf9;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #e6d2cb 24px);
}
.pn-card-variant--6 .pn-expert-card__content::before {
  background: rgba(225, 135, 125, 0.48);
}
.pn-card-variant--6 .pn-expert-card__topic {
  background: #fbf0ee;
  color: #643f38;
  border: 1px solid #ebd0cb;
  transform: rotate(-0.5deg);
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__media-link {
  display: block;
  text-decoration: none;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__media {
  position: relative;
  width: 100%;
  height: 165px;
  min-height: 165px;
  max-height: 165px;
  background: #fbf9f4;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1.5px solid #dce6cb;
}

.pn-media-backdrop {
  display: none !important;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
  background: transparent;
}

.pn-expert-card.pn-scrapbook-card:hover .pn-expert-card__img {
  transform: scale(1.02);
}

/* Specific focal crops — STEP 21H.15 — Precise focal positioning for specific cards */
.pn-expert-card.pn-scrapbook-card[data-slug="mano-kelias-i-5-klase"] .pn-expert-card__img {
  object-fit: cover !important;
  object-position: center 6% !important;
}

.pn-expert-card.pn-scrapbook-card[data-slug="ka-rinkciausi-savo-kambariui-as"] .pn-expert-card__img {
  object-fit: cover !important;
  object-position: center 30% !important;
}

.pn-expert-card.pn-scrapbook-card[data-slug="mazi-dalykai-kurie-man-atrodo-dideli"] .pn-expert-card__img {
  object-fit: cover;
  object-position: center 25%;
}

.pn-expert-card.pn-scrapbook-card[data-slug="ka-as-ismokau-stovykloje"] .pn-expert-card__img {
  object-fit: cover;
  object-position: center 20%;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__content {
  padding: 13px 16px 14px 34px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  background-color: #fafbf6;
  background-image: repeating-linear-gradient(transparent, transparent 23px, #d2e2c2 24px);
  border-radius: 0 0 14px 14px;
  position: relative;
  border-top: 1.5px solid #dce6cb;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 1.5px;
  background: rgba(220, 130, 120, 0.42);
  pointer-events: none;
  z-index: 1;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__meta,
.pn-expert-card.pn-scrapbook-card .pn-expert-card__title,
.pn-expert-card.pn-scrapbook-card .pn-expert-card__excerpt,
.pn-expert-card.pn-scrapbook-card .pn-expert-card__action {
  position: relative;
  z-index: 2;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  color: #7a7a7a;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__topic {
  display: inline-flex;
  align-items: center;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 2.5px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(60, 50, 40, 0.05);
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__date {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  color: #758368;
  font-weight: 500;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__title {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 3px;
  text-align: left;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__title a:hover {
  color: #4a6132;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__excerpt {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #55604b;
  margin: 0 0 8px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__link {
  display: inline-flex;
  align-items: center;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #4a6132;
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__link .pn-expert-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__link:hover {
  color: #2b3b1c;
}

.pn-expert-card.pn-scrapbook-card .pn-expert-card__link:hover .pn-expert-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Little Expert Article Detail Page (Vibrant Olive Hero + Emotional Polish)
   ========================================================================== */

.pn-little-expert-article {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2.5rem;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  color: #374151;
}

.pn-article-back-top {
  margin-bottom: 1rem;
}

.pn-article-back-link {
  color: #5d6b46;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}

.pn-article-back-link:hover {
  color: #3b4432;
  text-decoration: underline;
}

/* 2-Column Hero / Article Top Block */
.pn-article-hero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

/* Left: Cover Image Container */
.pn-article-hero__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.pn-article-hero__cover {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #fdfbf7;
  border: 1.5px solid #eae2d5;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(45, 55, 35, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.pn-article-hero__img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  background: #fdfbf7;
  display: block;
}

/* Right: Light, Pale Pistachio / Warm Cream Hero Info Card with Notebook Ruling */
.pn-article-hero__info {
  position: relative;
  background-color: #fafcf6;
  background-image: repeating-linear-gradient(transparent, transparent 25px, #dbe8cf 26px);
  border: 1.5px solid #dce8cb;
  border-radius: 18px;
  padding: 1.75rem 1.85rem 1.35rem 2.2rem;
  box-shadow: 0 4px 20px rgba(45, 60, 35, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.pn-article-hero__info::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 1.5px;
  background: rgba(225, 140, 130, 0.42);
  pointer-events: none;
  z-index: 1;
}

.pn-article-hero__info--full {
  grid-column: 1 / -1;
}

/* Decorative SVG Motifs in Hero Card */
.pn-hero-decor {
  pointer-events: none;
  z-index: 0;
}

.pn-hero-decor--top {
  position: absolute;
  top: -2px;
  right: -2px;
}

.pn-article-meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.pn-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pn-article-badge {
  background: #e6f0d8;
  color: #35471d;
  border: 1px solid #d2e3bd;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  line-height: 1.2;
}

.pn-article-date {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #63774e;
  white-space: nowrap;
}

.pn-article-signature-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 0.6rem;
}

.pn-article-signature {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3d5028;
  background: #ffffff;
  border: 1.5px solid #dce8cb;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(60, 80, 30, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
}

.pn-signature-sprout {
  font-size: 0.92rem;
  line-height: 1;
}

.pn-article-title {
  position: relative;
  z-index: 1;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1a2410;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem 0;
}

.pn-article-lead {
  position: relative;
  z-index: 1;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1.62;
  color: #3b492b;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

/* Lower Right Accent: Handwritten phrase + Doodle Train & Heart */
.pn-hero-bottom-accent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.25rem;
}

.pn-hero-phrase-wrapper {
  text-align: right;
}

.pn-hero-handwritten {
  font-family: 'Pacifico', 'Caveat', cursive;
  font-size: 0.96rem;
  color: #5a703d;
  letter-spacing: 0.01em;
  display: inline-block;
  transform: rotate(-1.5deg);
  line-height: 1.35;
}

.pn-phrase-line {
  display: inline;
}

.pn-hero-doodle-train {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

.pn-hero-doodle-train svg {
  display: block;
}

/* ==========================================================================
   Editorial Article Layout (Action Rail + Main Body + Floating Quote Card)
   ========================================================================== */

.pn-article-layout {
  background: #fcfbfa;
  border: 1px solid #eee8df;
  border-radius: 20px;
  padding: 1.75rem 2rem 1.85rem;
  box-shadow: 0 4px 20px rgba(50, 55, 40, 0.03);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.pn-article-layout--no-quote {
  grid-template-columns: 56px minmax(0, 1fr);
}

/* Left Action Rail */
.pn-article-actions {
  display: flex;
  justify-content: center;
}

.pn-action-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: sticky;
  top: 110px;
}

.pn-action-rail__label {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a7c54;
  text-align: center;
  margin-bottom: 0.15rem;
}

.pn-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #c8d8b6;
  background: #faf9f4;
  color: #43542d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(70, 90, 40, 0.06);
  position: relative;
  padding: 0;
  text-decoration: none;
}

.pn-action-btn svg {
  width: 17px;
  height: 17px;
}

.pn-action-btn:hover,
.pn-action-btn:focus-visible {
  background: #e6f0d8;
  border-color: #92a775;
  color: #2d381c;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(75, 95, 45, 0.16);
  outline: none;
}

.pn-action-btn--fb:hover,
.pn-action-btn--fb:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.pn-action-btn--heart.is-active {
  background: #fdf0f1;
  border-color: #f3c2c7;
  color: #e04f5f;
}

.pn-action-btn--heart.is-active svg {
  fill: #e04f5f;
  stroke: #e04f5f;
  transform: scale(1.1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tooltip for Copy Feedback */
.pn-action-tooltip {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  background: #232d18;
  color: #ffffff;
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.pn-action-tooltip--visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Center: Main Article Text Container */
.pn-article-main {
  min-width: 0;
  position: relative;
}

.pn-article-main::after {
  content: "";
  display: table;
  clear: both;
}

/* Right Quote Card (Cozy Pinned Note / Lapelis - floats on desktop) */
.pn-article-sidebar {
  float: right;
  width: 282px;
  max-width: 44%;
  margin: 0 0 1.15rem 1.85rem;
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(55, 40, 15, 0.09)) drop-shadow(0 12px 24px rgba(55, 40, 15, 0.1));
}

.pn-quote-card {
  position: relative;
  background-color: #fcf8ee;
  background-image: 
    /* Subtle diagonal paper creases / glamžymo ir lenkimo žymės */
    linear-gradient(132deg, rgba(255, 255, 255, 0.55) 0%, transparent 32%, rgba(185, 155, 115, 0.09) 40%, rgba(255, 255, 255, 0.42) 44%, transparent 68%),
    linear-gradient(218deg, transparent 38%, rgba(185, 155, 115, 0.07) 46%, rgba(255, 255, 255, 0.38) 50%, transparent 78%),
    /* Faint warm notebook ruling / sąsiuvinio linijos */
    repeating-linear-gradient(transparent, transparent 27px, rgba(210, 190, 160, 0.22) 28px),
    /* Soft organic parchment tone */
    linear-gradient(170deg, #fffef9 0%, #faf4e2 55%, #f4ead0 100%);
  /* Visibly organic hand-cut / deckle paper edge contour - no straight lines */
  clip-path: polygon(
    /* Top edge (Left to Right) */
    0% 2.8%, 3.5% 1.6%, 8% 2.5%, 13.5% 1.1%, 19% 2.2%, 26% 0.8%, 
    32.5% 2%, 39% 0.6%, 45.5% 1.8%, 52% 0.9%, 59% 2.2%, 66% 0.7%, 
    73% 1.9%, 80.5% 0.8%, 87% 2.1%, 93.5% 0.5%, 98.2% 1.6%,
    /* Top-Right corner & Right edge (Top to Bottom) */
    99.6% 3.2%, 98.6% 8.5%, 99.5% 15%, 98.7% 22%, 99.6% 29.5%, 
    98.8% 37%, 99.5% 45%, 98.7% 53%, 99.6% 61%, 98.8% 69%, 
    99.5% 77%, 98.7% 84%, 99.4% 89.5%, 98.5% calc(100% - 28px),
    /* Bottom-Right Folded Corner cutout */
    calc(100% - 28px) 99.2%,
    /* Bottom edge (Right to Left) */
    86% 98.5%, 80% 99.5%, 74% 98.6%, 67.5% 99.6%, 61% 98.7%, 
    54.5% 99.5%, 48% 98.6%, 41.5% 99.6%, 35% 98.7%, 28.5% 99.5%, 
    22% 98.6%, 15.5% 99.4%, 9% 98.5%, 3% 99.5%, 0.8% 98.2%,
    /* Left edge (Bottom to Top) */
    1.6% 91%, 0.5% 83%, 1.7% 75.5%, 0.6% 68%, 1.6% 60.5%, 
    0.5% 53%, 1.7% 45.5%, 0.6% 38%, 1.6% 30.5%, 0.5% 23%, 
    1.7% 15.5%, 0.6% 8%
  );
  padding: 2.15rem 1.6rem 1.35rem;
  box-sizing: border-box;
  width: 100%;
  transform: rotate(1.8deg);
  transition: transform 0.25s ease;
}

.pn-quote-card:hover {
  transform: rotate(0.6deg) translateY(-2px);
}

.pn-quote-card__pin {
  position: absolute;
  top: -18px;
  left: 22px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(45, 35, 15, 0.24));
}

.pn-quote-card__text {
  margin: 0 0 0.5rem 0;
  font-family: 'Caveat', cursive;
  font-size: 1.48rem;
  line-height: 1.4;
  color: #243212;
  font-weight: 600;
  border: none;
  padding: 0;
  background: none;
  letter-spacing: 0.015em;
  font-style: normal;
}

.pn-quote-card__decor {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
  padding-right: 1.25rem;
}

/* Folded Corner Dog-Ear Flap */
.pn-quote-card__corner-fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 2;
  display: block;
}

/* Article Body Typography (Approved PeaNest Styles) */
.pn-article-body {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1rem;
  line-height: 1.64;
  color: #2d3748;
}

.pn-article-body p {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1rem;
  line-height: 1.64;
  color: #2d3748;
  margin-bottom: 0.95rem;
}

.pn-article-body h2 {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #1e2614;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.32;
}

.pn-article-body h3 {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e2614;
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  line-height: 1.38;
}

.pn-article-body ul,
.pn-article-body ol {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1rem;
  line-height: 1.64;
  color: #2d3748;
  margin-bottom: 0.95rem;
  padding-left: 1.5rem;
}

.pn-article-body li {
  margin-bottom: 0.35rem;
}

/* Gallery */
.pn-article-gallery {
  clear: both;
  margin: 2rem 0;
}

.pn-article-gallery__title {
  font-family: var(--pn-font-family-ui, 'Nunito', Arial, Helvetica, sans-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #242c1c;
  margin-bottom: 0.75rem;
}

.pn-article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.pn-article-gallery__item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #ebe5dc;
}

.pn-article-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pn-article-footer {
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #eae5db;
  text-align: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
  .pn-little-expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
  .pn-article-layout {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1.35rem;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .pn-article-main {
    order: 1;
    min-width: 0;
    width: 100%;
  }
  .pn-article-sidebar {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0 0 0;
    order: 3;
    position: static;
    box-sizing: border-box;
  }
  .pn-quote-card {
    position: relative;
    transform: rotate(-0.8deg);
    width: 100%;
    padding: 1.85rem 1.25rem 1.15rem;
    box-sizing: border-box;
  }
  .pn-quote-card:hover {
    transform: rotate(0deg);
  }
  .pn-quote-card__pin {
    left: 20px;
    top: -16px;
  }
  .pn-quote-card__text {
    font-size: 1.35rem;
    line-height: 1.42;
  }
  .pn-article-actions {
    order: 2;
    justify-content: center;
    margin: 1rem 0 0.35rem 0;
    width: 100%;
  }
  .pn-action-rail {
    flex-direction: row;
    position: static;
    gap: 1.15rem;
  }
  .pn-action-rail__label {
    display: none;
  }
  .pn-action-tooltip {
    left: 50%;
    top: -38px;
    transform: translateX(-50%) scale(0.92);
  }
  .pn-action-tooltip--visible {
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 991px) {
  .pn-little-expert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pn-expert-card--featured .pn-expert-card__media-link {
    flex: 0 0 38%;
    max-width: 38%;
  }
}

@media (max-width: 768px) {
  .cms-id-7 #wrapper .container,
  .page-cms-7 #wrapper .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .pn-little-expert-listing {
    padding: 0 0 30px;
    width: 100%;
    box-sizing: border-box;
  }
  .pn-expert-intro-card {
    padding: 12px 10px 10px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .pn-expert-intro-title {
    font-size: 17px;
    line-height: 1.25;
    word-break: break-word;
  }
  .pn-expert-intro-text {
    font-size: 12px;
    line-height: 1.4;
  }
  .pn-topics-selector {
    margin-bottom: 12px;
  }
  .pn-topics-heading {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .pn-topics-list {
    gap: 5px;
  }
  .pn-topic-chip {
    font-size: 11px;
    padding: 3px 10px;
  }
  .pn-expert-card--featured {
    flex-direction: column !important;
    margin-bottom: 12px;
  }
  .pn-expert-card--featured .pn-expert-card__media-link {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    width: 100%;
    border-radius: 14px 14px 0 0;
  }
  .pn-expert-card--featured .pn-expert-card__media {
    height: 195px;
    max-height: 215px;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ebf0df;
  }
  .pn-expert-card--featured .pn-expert-card__content {
    flex: 0 0 auto !important;
    padding: 12px 14px 12px 30px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 14px 14px;
  }
  .pn-expert-card.pn-scrapbook-card .pn-expert-card__content {
    padding: 12px 14px 12px 30px;
  }
  .pn-expert-card--featured .pn-expert-card__title {
    font-size: 16.5px;
  }
  .pn-little-expert-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pn-little-expert-article {
    padding: 0.75rem 0.75rem 2.25rem;
  }
  .pn-article-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.35rem;
  }
  .pn-article-hero__cover {
    min-height: 220px;
    max-height: 280px;
    border-radius: 14px;
  }
  .pn-article-hero__img {
    max-height: 280px;
  }
  .pn-article-hero__info {
    padding: 1.35rem 1.15rem 1.25rem 1.6rem;
    border-radius: 14px;
  }
  .pn-article-hero__info::before {
    left: 14px;
  }
  .pn-hero-decor--top svg {
    width: 54px;
    height: 54px;
  }
  .pn-hero-bottom-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .pn-hero-phrase-wrapper {
    width: 100%;
    text-align: center;
  }
  .pn-hero-handwritten {
    font-size: 0.86rem;
    line-height: 1.4;
    display: block;
    text-align: center;
    width: 100%;
    transform: none !important;
  }
  .pn-phrase-line {
    display: block;
    text-align: center;
  }
  .pn-hero-doodle-train {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
  }
  .pn-hero-doodle-train svg {
    width: 110px;
    height: 36px;
  }
  .pn-article-meta-row {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  .pn-article-meta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .pn-article-date {
    font-size: 0.85rem;
  }
  .pn-article-signature-wrapper {
    margin-bottom: 0.5rem;
  }
  .pn-article-title {
    font-size: 1.35rem;
    line-height: 1.28;
    margin-bottom: 0.65rem;
  }
  .pn-article-lead {
    font-size: 0.98rem;
    line-height: 1.58;
    max-width: 100%;
  }
  .pn-article-body {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.64;
    margin-bottom: 1.25rem;
  }
  .pn-article-body p {
    font-size: 1rem;
    line-height: 1.64;
    margin-bottom: 0.85rem;
  }
  .pn-quote-card {
    padding: 1.85rem 1.25rem 1.15rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .pn-quote-card__pin {
    left: 18px;
    top: -14px;
  }
  .pn-quote-card__pin svg {
    width: 40px;
    height: 40px;
  }
  .pn-quote-card__text {
    font-size: 1.26rem;
    line-height: 1.42;
  }
  .pn-quote-card__decor svg {
    width: 80px;
    height: 42px;
  }
  .pn-article-footer {
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
  }
  .pn-article-footer .pn-expert-btn {
    display: inline-block;
    max-width: 100%;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
  }
}
