/* learn page styles. Shared colors and type are in visual-system.css. */
/* Base layout */

@layer layout {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}
@layer components {
  .catalogue-section {
    padding-top: 4rem;
  }
  .learn-hero {
    padding-bottom: 4rem;
  }
  .product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--panel);
    backdrop-filter: var(--glass);
    transition:
      transform 0.28s,
      border-color 0.28s;
  }
  .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 152, 72, 0.34);
  }
  .product-cover {
    aspect-ratio: 1.35;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cover-mark {
    font-size: 2.3rem;
    font-weight: 650;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.85);
  }
  .cover-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #fff;
    background: rgba(16, 16, 18, 0.44);
    backdrop-filter: blur(12px);
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 99px;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .product-cover {
    position: relative;
  }
  .product-info {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }
  .product-info h2 {
    font-size: 1.35rem;
    letter-spacing: 0;
  }
  .product-info > p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.42rem;
  }
  .product-meta {
    font-size: 0.8rem;
    color: var(--lime);
    margin-top: auto;
    padding-top: 1rem;
  }
  .product-info .button {
    margin-top: 0.85rem;
  }
  .schedule-preview {
    margin-top: 0.2rem;
  }
}
@layer utilities {
  @media (max-width: 780px) {
    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 560px) {
    .product-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Current appearance */

.product-card {
  background: rgba(255, 244, 231, 0.055);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-card {
  border-radius: 0.8rem;
  overflow: hidden;
}
.product-cover {
  background: var(--navy);
}
.product-cover .cover-mark {
  color: var(--cream);
}
.cover-label {
  color: var(--cream);
  background: rgba(16, 16, 19, 0.78);
  border-radius: 0.35rem;
  letter-spacing: 0.1em;
}
.product-info {
  align-items: center;
  text-align: center;
}
.product-info h2 {
  color: var(--cream);
}
.product-info > p {
  color: var(--muted);
}
.product-meta {
  color: var(--cream);
}
.product-info {
  align-items: stretch;
  text-align: left;
}
.product-info .product-category,
.product-info h2,
.product-info > p {
  text-align: left;
}
.product-info h2 {
  width: 100%;
}
.product-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.1rem;
}
.product-info .product-meta {
  margin: 0;
  padding: 0;
  color: var(--cream);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
.product-purchase-row .button {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .product-purchase-row {
    gap: 0.5rem;
  }
  .product-info .product-meta {
    font-size: 0.9rem;
  }
  .product-purchase-row .button {
    padding: 0.62rem 0.78rem;
    font-size: 0.76rem;
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.product-card:hover {
  border-color: rgba(255, 244, 231, 0.4);
}
.product-card {
  background-color: rgba(255, 248, 239, 0.055);
  border-color: rgba(255, 248, 239, 0.14);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.learn-hero > p:last-child {
  margin-top: 0.45rem !important;
}
.learn-hero {
  padding-bottom: 2.6rem;
}
.learn-hero h1 {
  max-width: 900px;
}
.catalogue-section {
  padding-top: 1.2rem;
}
.learning-filter-row {
  justify-content: center;
  margin: 0 auto 2.2rem;
}
.product-info h2,
.product-info h2 a,
.product-info h2 .title-accent,
.product-meta {
  color: var(--cream) !important;
}
.product-info h2 a {
  text-decoration: none;
}
