@import url('./learning-card-contract.css?v=20260917-unifiedcards1');

/* BrounStack Learning cards — CTA + book cover polish */

/* Compact action pill for tutorial and book cards */
.course-bottom{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-self:flex-start;
  width:max-content;
  max-width:100%;
  gap:11px!important;
  margin-top:auto!important;
  padding:7px 8px 7px 13px!important;
  border:1px solid #d7e5f7;
  border-radius:999px;
  background:linear-gradient(180deg,#fbfdff 0%,#eef6ff 100%);
  color:#0752dc!important;
  box-shadow:0 8px 18px rgba(3,22,55,.055);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.course-bottom b{
  color:inherit!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap;
}
.course-arrow{
  width:27px!important;
  height:27px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 27px;
  border-radius:50%!important;
  background:#fff!important;
  color:#0752dc!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 4px 10px rgba(3,22,55,.08);
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.course-card:hover .course-bottom,
.course-card:focus-visible .course-bottom{
  transform:translateY(-2px);
  border-color:transparent;
  background:linear-gradient(105deg,#0752dc,#0a7bff);
  color:#fff!important;
  box-shadow:0 13px 26px rgba(10,123,255,.20);
}
.course-card:hover .course-arrow,
.course-card:focus-visible .course-arrow{
  transform:translateX(2px)!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  box-shadow:none;
}

/* Book artwork uses the shared landscape ratio without crop or blur. */
.course-card[data-type="book"] .course-cover{
  aspect-ratio:835/337!important;
  min-height:0!important;
  overflow:hidden;
  border:1px solid #dbe7f5;
  border-radius:15px!important;
  background:#06142f!important;
  box-shadow:0 10px 24px rgba(3,22,55,.10);
}
.course-card[data-type="book"] .course-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}
.course-card[data-type="book"] .course-type{
  top:9px!important;
  left:10px!important;
  padding:6px 9px!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14);
}
.course-card[data-type="book"] .course-body{
  padding-top:17px!important;
}

/* Guide cards use the same compact CTA language as course cards. */
.guide-card>a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:max-content!important;
  max-width:100%;
  gap:10px!important;
  margin-top:20px!important;
  padding:7px 8px 7px 13px!important;
  border:1px solid #d7e5f7;
  border-radius:999px;
  background:linear-gradient(180deg,#fbfdff 0%,#eef6ff 100%);
  color:#0752dc!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 8px 18px rgba(3,22,55,.055);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.guide-card>a>span{
  width:27px!important;
  height:27px!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 27px;
  margin:0!important;
  border-radius:50%;
  background:#fff;
  color:#0752dc;
  font-size:12px!important;
  font-weight:900;
  line-height:1!important;
  box-shadow:0 4px 10px rgba(3,22,55,.08);
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.guide-card:hover>a,
.guide-card>a:focus-visible{
  transform:translateY(-2px);
  border-color:transparent;
  background:linear-gradient(105deg,#0752dc,#0a7bff);
  color:#fff!important;
  box-shadow:0 13px 26px rgba(10,123,255,.20);
  outline:none;
}
.guide-card:hover>a>span,
.guide-card>a:focus-visible>span{
  transform:translateX(2px);
  background:rgba(255,255,255,.18);
  color:#fff;
  box-shadow:none;
}
.guide-card>a:focus-visible{
  box-shadow:0 0 0 4px rgba(10,123,255,.13),0 13px 26px rgba(10,123,255,.18);
}

@media(max-width:560px){
  .course-bottom{padding:6px 7px 6px 12px!important;gap:9px!important}
  .course-bottom b{font-size:10px!important}
  .course-arrow{width:25px!important;height:25px!important;flex-basis:25px}
  .course-card[data-type="book"] .course-cover{border-radius:13px!important}
  .guide-card>a{padding:6px 7px 6px 12px!important;gap:9px!important;font-size:10px!important}
  .guide-card>a>span{width:25px!important;height:25px!important;flex-basis:25px}
}

@media(prefers-reduced-motion:reduce){
  .course-bottom,.course-arrow,.guide-card>a,.guide-card>a>span{transition:none!important}
  .course-card:hover .course-bottom,.course-card:focus-visible .course-bottom,.guide-card:hover>a,.guide-card>a:focus-visible{transform:none!important}
}
