/* =====================================================
   PNBIOTICS — LEARN PAGE
===================================================== */

.learn-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 135px) 0 clamp(65px, 8vw, 105px);
  background:
    radial-gradient(circle at 84% 24%, rgba(111, 199, 232, 0.14), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(89, 189, 169, 0.11), transparent 30%),
    linear-gradient(135deg, #f7fbfa, #ffffff);
}

.learn-hero::after {
  content: "";
  position: absolute;
  top: -250px;
  right: -160px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(21, 50, 55, 0.06);
  border-radius: 50%;
}

.learn-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(50px, 7vw, 100px);
}

.learn-hero-copy {
  max-width: 850px;
}

.learn-hero-copy h1 {
  max-width: 900px;
  margin: 16px 0 22px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: clamp(4rem, 7vw, 7.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.learn-hero-copy h1 em {
  display: block;
  color: #3bb6a6;
  font-style: normal;
}

.learn-hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #667a7d;
  font-size: 1.05rem;
  line-height: 1.75;
}

.learn-hero-note {
  padding: 30px;
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 50px rgba(21, 50, 55, 0.07);
  backdrop-filter: blur(12px);
}

.learn-hero-note > span,
.learn-article-label {
  display: block;
  margin-bottom: 12px;
  color: #3bb6a6;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.learn-hero-note strong {
  display: block;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: 1.45rem;
}

.learn-hero-note p {
  margin: 12px 0 18px;
  color: #667a7d;
  font-size: 0.9rem;
  line-height: 1.65;
}

.learn-hero-note a {
  color: #153237;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.learn-filter-section {
  position: relative;
  z-index: 5;
  margin-top: -26px;
}

.learn-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(21, 50, 55, 0.08);
}

.learn-filter-bar button {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667a7d;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease;
}

.learn-filter-bar button:hover,
.learn-filter-bar button.active {
  background: #e9f7f3;
  color: #197f74;
}

.learn-featured-section {
  padding-bottom: 35px;
}

.learn-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 32px;
  background: linear-gradient(135deg, #eaf8f4, #ffffff);
}

.learn-featured-copy {
  padding: clamp(40px, 6vw, 72px);
}

.learn-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.learn-article-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(59, 182, 166, 0.10);
  color: #197f74;
  font-size: 0.68rem;
  font-weight: 750;
}

.learn-featured-copy h2 {
  margin: 0 0 18px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.8rem, 4.8vw, 3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.learn-featured-copy p {
  max-width: 610px;
  margin: 0;
  color: #667a7d;
  line-height: 1.75;
}

.learn-featured-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: radial-gradient(circle at center, #ffffff, #eaf8f4);
}

.learn-featured-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.learn-read-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  color: #153237;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.learn-read-link span {
  transition: transform 0.2s ease;
}

.learn-read-link:hover span {
  transform: translateX(4px);
}

.learn-articles-section {
  background: #f7faf9;
}

.learn-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 34px;
}

.learn-section-head h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.learn-section-head > p {
  max-width: 390px;
  margin: 0;
  color: #667a7d;
  line-height: 1.7;
}

.learn-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.learn-article-card {
  overflow: hidden;
  border: 1px solid rgba(21, 50, 55, 0.08);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(21, 50, 55, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.learn-article-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(21, 50, 55, 0.10);
}

.learn-card-image {
  height: 230px;
  overflow: hidden;
  background: #edf8f5;
}

.learn-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.learn-article-card:hover .learn-card-image img {
  transform: scale(1.035);
}

.learn-card-copy {
  padding: 25px 26px 28px;
}

.learn-card-copy h3 {
  margin: 0 0 12px;
  color: #153237;
  font-family: Manrope, sans-serif;
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.learn-card-copy p {
  margin: 0;
  color: #667a7d;
  font-size: 0.9rem;
  line-height: 1.65;
}

.learn-empty-state {
  padding: 60px 24px;
  border: 1px dashed rgba(21, 50, 55, 0.16);
  border-radius: 26px;
  background: #ffffff;
  text-align: center;
}

.learn-empty-state[hidden],
[data-learn-card][hidden] {
  display: none !important;
}

.learn-quiz-section {
  padding: 0 0 clamp(75px, 8vw, 115px);
  background: #f7faf9;
}

.learn-quiz-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(38px, 5vw, 58px);
  border-radius: 30px;
  background: linear-gradient(135deg, #153237, #1f514c);
  color: #ffffff;
}

.learn-quiz-card h2 {
  margin: 12px 0 10px;
  color: #ffffff;
  font-family: Manrope, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.learn-quiz-card p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.learn-quiz-card .button {
  flex: 0 0 auto;
  background: #ffffff;
  color: #153237;
}

@media (max-width: 1050px) {
  .learn-hero-grid,
  .learn-featured-card {
    grid-template-columns: 1fr;
  }

  .learn-hero-note {
    max-width: 620px;
  }

  .learn-featured-visual,
  .learn-featured-visual img {
    min-height: 380px;
  }

  .learn-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .learn-hero-copy h1 {
    font-size: 3.5rem;
  }

  .learn-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .learn-filter-bar button {
    flex: 0 0 auto;
  }

  .learn-section-head,
  .learn-quiz-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .learn-article-grid {
    grid-template-columns: 1fr;
  }

  .learn-quiz-card .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .learn-hero {
    padding-top: 65px;
  }

  .learn-hero-copy h1 {
    font-size: 3rem;
  }

  .learn-featured-copy {
    padding: 30px 24px;
  }

  .learn-featured-visual,
  .learn-featured-visual img {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learn-article-card,
  .learn-card-image img,
  .learn-read-link span {
    transition: none;
  }
}