/* Homepage only: compact discovery cards and a native RTL scrolling rail. */
body[data-page="home"] #courses,body[data-page="home"] .featured-carousel{min-width:0}
body[data-page="home"] .featured-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:29%;gap:24px;max-width:none;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:var(--accent) transparent;padding:8px 4px 20px;margin:0 -4px;align-items:stretch}
body[data-page="home"] .featured-grid[data-moving="true"]{scroll-snap-type:none}
body[data-page="home"] .featured-grid>.course-card{min-width:0;scroll-snap-align:start;scroll-snap-stop:always;transition:border-color .2s,box-shadow .2s}
body[data-page="home"] .featured-grid:has(>.empty-state){display:block}
body[data-page="home"] .featured-grid .card-image-wrap{aspect-ratio:3/2;margin:7px 7px 0;border-radius:17px}
body[data-page="home"] .featured-grid .card-body{padding:18px;gap:0}
body[data-page="home"] .featured-grid .card-category{font-size:12px;line-height:1.8;margin:0 0 8px;color:var(--text-secondary)}
body[data-page="home"] .featured-grid .card-title{font-size:18px;line-height:1.85;min-height:3.7em;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body[data-page="home"] .featured-grid .card-subtitle{font-size:14px;line-height:1.9;min-height:3.8em;margin:8px 0 14px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body[data-page="home"] .featured-facts{display:flex;flex-wrap:wrap;gap:6px 14px;padding:0 0 14px;margin:0;color:var(--text-secondary);font-size:13px;line-height:1.85}
body[data-page="home"] .featured-facts>div{display:flex;gap:5px;min-width:0}
body[data-page="home"] .featured-facts dt,body[data-page="home"] .featured-facts dd{margin:0}
body[data-page="home"] .featured-facts dd{color:var(--primary);font-weight:550;overflow-wrap:anywhere}
body[data-page="home"] .featured-grid .card-bottom{margin-top:auto;padding-top:12px;gap:12px}
body[data-page="home"] .featured-grid .fee-label{font-size:12px;margin:0}
body[data-page="home"] .featured-grid .price{font-size:18px;line-height:1.8}
body[data-page="home"] .featured-grid .card-detail{font-size:14px;min-height:46px;padding:10px 13px;background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
body[data-page="home"] .featured-grid .card-detail:hover{background:var(--primary-hover)}
.featured-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:8px}
.featured-navigation{display:flex;align-items:center;gap:10px}
.featured-navigation button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border-control);border-radius:50%;background:var(--surface);color:var(--primary);font-size:22px}
.featured-navigation button:hover:not(:disabled){background:var(--surface-soft)}
.featured-navigation button:disabled{opacity:.5;cursor:default}
.featured-count{font-size:13px;color:var(--text-secondary);font-variant-numeric:tabular-nums;margin-inline-start:5px}
.featured-rotation{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius);background:transparent;color:var(--primary);font-size:13px}
.featured-rotation:hover{background:var(--surface-soft)}
.featured-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:1101px){body[data-page="home"] .featured-grid:has(>.course-card:nth-child(3):last-child){grid-auto-columns:31.9%}body[data-page="home"] .featured-grid:has(>.course-card:nth-child(2):last-child),body[data-page="home"] .featured-grid:has(>.course-card:only-child){grid-auto-columns:minmax(0,350px)}}
@media(min-width:701px) and (max-width:1100px){body[data-page="home"] .featured-grid{grid-auto-columns:44%;gap:20px}body[data-page="home"] .featured-grid:has(>.course-card:nth-child(2):last-child){grid-auto-columns:49%}body[data-page="home"] .featured-grid:has(>.course-card:only-child){grid-auto-columns:minmax(0,350px)}}
@media(max-width:700px){body[data-page="home"] .featured-grid{grid-auto-columns:86%;gap:16px}body[data-page="home"] .featured-grid:has(>.course-card:only-child){grid-auto-columns:100%}body[data-page="home"] .featured-grid .card-body{padding:16px}body[data-page="home"] .featured-grid .card-title{font-size:17px}.featured-controls{gap:8px}.featured-navigation{gap:8px}.featured-count{font-size:12px}.featured-rotation{font-size:12px;padding-inline:9px}}
@media(prefers-reduced-motion:reduce){body[data-page="home"] .featured-grid{scroll-behavior:auto}body[data-page="home"] .featured-grid>.course-card{transition:none}}
