/* ===== My Udemy Courses (2026-11-29) =====
   Isolated styles for partials/udemy-courses.hbs.
   Cards use the clickable navy (#174A9E) + yellow border from the
   rest of the theme. Do not fold this into screen.css or shorts.css.
   Contrast vs #174A9E: #fff 8.37:1, #DCE8FA 6.77:1, #FFD84D 6.05:1.
   Button #0A2A63 on #FFD84D: 9.97:1. All >= WCAG AA 4.5:1.
*/
.tp-udemy{
  --udemy-card:#174A9E;
  --udemy-card-hover:#1B55B5;
  --udemy-line:rgba(255,216,77,.85);
  padding:56px 0 80px;
}
.tp-udemy-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:38px;
  line-height:48px;
  color:#fff;
  margin:12px 0 8px;
}
.tp-udemy-sub{
  font-size:18px;
  line-height:28px;
  color:#DCE8FA;
  margin:0 0 32px;
  max-width:640px;
}
.tp-udemy-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.tp-udemy-card{
  display:flex;
  flex-direction:column;
  background:var(--udemy-card);
  box-shadow:inset 0 0 0 2px var(--yellow),0 6px 0 rgba(4,20,52,.35);
  min-width:0;
  transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
}
.tp-udemy-card:hover,
.tp-udemy-card:focus-within{
  background:var(--udemy-card-hover);
  transform:translateY(-4px);
  box-shadow:inset 0 0 0 2px var(--yellow),0 10px 0 rgba(4,20,52,.35);
}
.tp-udemy-media{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#0E3F8F;
  border-bottom:2px solid var(--udemy-line);
}
.tp-udemy-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s;
}
.tp-udemy-card:hover .tp-udemy-media img,
.tp-udemy-card:focus-within .tp-udemy-media img{
  transform:scale(1.04);
}
.tp-udemy-body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:18px 18px 22px;
  min-width:0;
}
.tp-udemy-course-title{
  font-family:var(--font-head);
  font-weight:700;
  font-size:22px;
  line-height:28px;
  color:#fff;
  margin:0 0 10px;
  overflow-wrap:anywhere;
}
.tp-udemy-course-title a{
  color:#fff;
  text-decoration:none;
}
.tp-udemy-course-title a:hover,
.tp-udemy-course-title a:focus-visible{
  text-decoration:underline;
  text-decoration-color:var(--yellow);
  text-underline-offset:4px;
}
.tp-udemy-headline{
  font-size:15px;
  line-height:22px;
  color:#DCE8FA;
  margin:0 0 12px;
  overflow-wrap:anywhere;
}
.tp-udemy-meta{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:12.5px;
  line-height:18px;
  color:#fff;
  margin:0 0 18px;
}
.tp-udemy-btn{
  margin-top:auto;
  align-self:flex-start;
  height:48px;
  padding:0 22px;
  font-size:16px;
  white-space:nowrap;
}
.tp-udemy-btn:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}
.tp-udemy-all{
  margin:28px 0 0;
  font-family:var(--font-mono);
  font-weight:700;
  font-size:13px;
}
.tp-udemy-all a{
  color:var(--yellow);
  text-decoration:none;
}
.tp-udemy-all a:hover,
.tp-udemy-all a:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}
@media (max-width:1100px){
  .tp-udemy-grid{grid-template-columns:1fr 1fr}
  .tp-udemy-title{font-size:32px;line-height:40px}
}
@media (max-width:700px){
  .tp-udemy{padding:40px 0 64px}
  .tp-udemy-grid{grid-template-columns:1fr;gap:20px}
  .tp-udemy-title{font-size:28px;line-height:36px}
  .tp-udemy-sub{font-size:16px;line-height:24px;margin-bottom:24px}
  .tp-udemy-course-title{font-size:20px;line-height:26px}
  .tp-udemy-btn{width:100%;justify-content:center}
}
