/* Homepage course rails — compact Netflix-like presentation, preserving current brand colors. */
.home-course-section{
  margin:30px 0 34px;
}
.home-course-section .section-head{
  margin-bottom:12px;
  padding-right:2px;
}
.home-course-section .section-head h2{
  font-size:clamp(20px,1.7vw,28px);
  line-height:1.15;
  letter-spacing:-.02em;
}
.home-course-section .section-head a{
  color:#dce9e5;
  font-size:13px;
  font-weight:700;
  opacity:.82;
}
.home-course-section .section-head a:hover{
  opacity:1;
  color:#fff;
}
.home-course-section .rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:clamp(210px,17vw,250px);
  gap:12px;
  overflow-x:auto;
  overflow-y:visible;
  padding:4px 3px 16px;
  scroll-snap-type:x proximity;
  scroll-padding-inline:3px;
  scrollbar-width:none;
}
.home-course-section .rail::-webkit-scrollbar{display:none}
.home-course-section .product-card{
  min-width:0;
  border-radius:10px;
  overflow:hidden;
  background:linear-gradient(180deg,#2f5149 0%,#1d2c28 100%);
  border:1px solid rgba(158,199,186,.16);
  box-shadow:0 10px 28px rgba(0,0,0,.2);
  transform-origin:center bottom;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.home-course-section .product-card:hover{
  transform:translateY(-4px) scale(1.015);
  border-color:rgba(158,199,186,.55);
  box-shadow:0 18px 38px rgba(0,0,0,.32);
}
.home-course-section .product-image{
  aspect-ratio:16/9;
  background:#111a17;
}
.home-course-section .product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.home-course-section .product-body{
  min-height:0;
  padding:10px 11px 11px;
  display:flex;
  flex-direction:column;
}
.home-course-section .product-body small{
  font-size:10px;
  font-weight:700;
  color:#bcd0ca;
  letter-spacing:.01em;
}
.home-course-section .product-body h3{
  margin:4px 0 6px;
  min-height:36px;
  font-size:14px;
  line-height:1.26;
  -webkit-line-clamp:2;
}
.home-course-section .product-body p{
  margin:0 0 7px;
  min-height:30px;
  font-size:11px;
  line-height:1.35;
  -webkit-line-clamp:2;
  color:#c4d0cc;
}
.home-course-section .course-meta{
  grid-template-columns:1fr 1fr;
  gap:4px 8px;
  margin:5px 0 7px;
  font-size:9px;
  line-height:1.2;
}
.home-course-section .course-meta span{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.home-course-section .rating{
  margin-top:1px;
  font-size:10px;
}
.home-course-section .rating span{
  font-size:9px;
}
.home-course-section .price-line{
  min-height:27px;
  margin-top:6px;
  gap:7px;
}
.home-course-section .price-line del{
  font-size:10px;
}
.home-course-section .price-line strong{
  font-size:18px;
}
.home-course-section .product-body em{
  margin:2px 0 8px;
  font-size:9px;
}
.home-course-section .card-actions{
  gap:6px;
}
.home-course-section .card-actions .btn,
.home-course-section .card-actions a.btn{
  min-height:34px;
  padding:7px 9px;
  border-radius:8px;
  font-size:12px;
}
.home-course-section .badges{
  top:7px;
  left:7px;
}
.home-course-section .badges span{
  font-size:9px;
  padding:4px 6px;
}

@media (min-width:1400px){
  .home-course-section .rail{
    grid-auto-columns:clamp(220px,16vw,250px);
  }
}

@media (max-width:1100px) and (min-width:901px){
  .home-course-section .rail{
    grid-auto-columns:clamp(205px,22vw,230px);
  }
}

@media (max-width:900px){
  .home-course-section{
    margin:20px 0 24px;
  }
  .home-course-section .section-head{
    margin-bottom:9px;
  }
  .home-course-section .section-head h2{
    font-size:19px;
  }
  .home-course-section .section-head a{
    font-size:11px;
  }
  .home-course-section .rail{
    grid-auto-columns:minmax(132px,36vw);
    gap:8px;
    padding:2px 1px 10px;
  }
  .home-course-section .product-card{
    border-radius:9px;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
  }
  .home-course-section .product-card:hover{
    transform:none;
  }
  .home-course-section .product-body{
    padding:8px;
  }
  .home-course-section .product-body small{
    font-size:9px;
  }
  .home-course-section .product-body h3{
    min-height:30px;
    font-size:12px;
    margin:3px 0 4px;
  }
  .home-course-section .product-body p{
    min-height:26px;
    font-size:10px;
    margin-bottom:5px;
  }
  .home-course-section .course-meta{
    grid-template-columns:1fr;
    gap:2px;
    margin:4px 0 5px;
    font-size:8.5px;
  }
  .home-course-section .course-meta span:nth-child(2),
  .home-course-section .course-meta span:nth-child(4){
    display:none;
  }
  .home-course-section .rating{
    font-size:9px;
  }
  .home-course-section .price-line{
    min-height:24px;
    margin-top:5px;
  }
  .home-course-section .price-line strong{
    font-size:15px;
  }
  .home-course-section .product-body em{
    display:none;
  }
  .home-course-section .card-actions .btn,
  .home-course-section .card-actions a.btn{
    min-height:31px;
    padding:6px 7px;
    font-size:10px;
  }
}

@media (max-width:420px){
  .home-course-section .rail{
    grid-auto-columns:minmax(126px,38vw);
    gap:7px;
  }
  .home-course-section .product-body{
    padding:7px;
  }
  .home-course-section .product-body h3{
    font-size:11px;
    min-height:28px;
  }
  .home-course-section .product-body p{
    font-size:9px;
    min-height:24px;
  }
  .home-course-section .course-meta{
    font-size:8px;
  }
  .home-course-section .price-line strong{
    font-size:14px;
  }
}
