/* Course cover cards on the homepage, /shop and /programmas. Mobile first. */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 600px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .cc-showcase .cc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cc-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: rgba(29, 24, 51, 0.56);
  border: 1px solid rgba(215, 204, 230, 0.14); border-radius: 14px;
  color: #F8F7FB; text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s ease;
}
.cc-card__media { margin: 0; aspect-ratio: 8 / 5; overflow: hidden; background: #0B0B0E; border-bottom: 1px solid rgba(215, 204, 230, 0.14); }
.cc-card__media .cc-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.cc-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.45rem; padding: 1.1rem 1.15rem 1.2rem; }
.cc-card__title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 500; line-height: 1.2; color: #F8F7FB; letter-spacing: 0; text-transform: none; }
.cc-card p.cc-card__tagline { margin: 0; font-size: 0.86rem; line-height: 1.45; color: #D0A636; }
.cc-card p.cc-card__gets { flex: 1; margin: 0; font-size: 0.9rem; line-height: 1.6; color: #D7CCE6; }
.cc-card__go { margin-top: 0.4rem; font-size: 0.82rem; color: #D0A636; }
.cc-card:focus-visible { outline: 2px solid #D0A636; outline-offset: 3px; }
.cc-card:hover { border-color: rgba(208, 166, 54, 0.5); }

.cc-showcase__note { margin: 1.25rem 0 0; font-size: 0.82rem; line-height: 1.5; color: #D7CCE6; opacity: 0.8; }

.cc-strip { margin-top: 2.5rem; }
.cc-strip .cc-strip__title { margin: 0 0 0.5rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 500; color: #F8F7FB; }
.cc-strip p.cc-strip__note { max-width: none; margin: 0 0 1.25rem; font-size: 0.9rem; line-height: 1.6; color: #D7CCE6; }

/* The same covers on the Programma's page. */
.visual-photo .cc-img { border: 1px solid rgba(215, 204, 230, 0.14); box-sizing: border-box; border-radius: 14px; background: #0B0B0E; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cc-card:hover { translate: 0 -3px; }
  .cc-card:hover .cc-img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-card__media .cc-img { transition: none; }
}
