/* Hot Courses page (/courses/Hot-Courses, frontend/course/hot-courses.blade.php).
   Brand: gold #af990a, forest #152c11. */
.hot-courses {
    --hot-gold: #af990a;
    --hot-gold-deep: #8f7d08;
    --hot-gold-wash: #fbf7e3;
    --hot-forest: #152c11;
    --hot-line: #d6d1b5;
    --hot-muted: #5d6458;
    padding-top: 40px;
}

/* The dark band behind the menu (the menu floats over the top of every page) */
.hot-courses-band .section-overlay { min-height: 0 !important; height: 120px; padding: 0 !important; }

/* Title: the HOT badge, then "Courses" */
.hot-courses__head { text-align: center; margin-bottom: 26px; }
.hot-courses__title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--hot-forest);
    text-wrap: balance;
}
.hot-courses__badge {
    width: 56px;
    height: 56px;
    flex: none;
    animation: hot-badge-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
    transition: transform .3s ease;
}
.hot-courses__title:hover .hot-courses__badge { transform: rotate(-10deg) scale(1.08); }
.hot-courses__lead {
    max-width: 560px;
    margin: 10px auto 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--hot-muted);
}

/* Filters: centred rows that wrap, still centred */
.hot-courses__filters { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 32px; }
.hot-filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; max-width: 980px; }
.hot-pill {
    min-width: 180px;
    padding: 9px 22px;
    border: 1.5px solid var(--hot-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hot-forest);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hot-filter-row:first-child .hot-pill { min-width: 220px; }
.hot-pill:hover:not(:disabled),
.hot-pill:focus-visible {
    border-color: var(--hot-gold);
    background: var(--hot-gold-wash);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 153, 10, .18);
}
.hot-pill:focus-visible { outline: 2px solid var(--hot-forest); outline-offset: 2px; }
.hot-pill.is-active,
.hot-pill.is-active:hover {
    border-color: var(--hot-gold);
    background: var(--hot-gold);
    color: #fff;
    box-shadow: 0 6px 18px rgba(175, 153, 10, .32);
}
.hot-pill:disabled { opacity: .4; cursor: not-allowed; }
a.hot-pill { display: inline-block; text-decoration: none; }
.hot-pill--reset { min-width: 0; }

/* Course cards: three in a row on wide screens (Bootstrap columns in the view) */
.hot-courses__grid { row-gap: 6px; }
.hot-courses__cell.is-hidden { display: none; }
.hot-courses__cell.is-entering { animation: hot-card-in .32s ease both; }
.hot-courses__cell .course-item { transition: transform .25s ease, box-shadow .25s ease; }
.hot-courses__cell .course-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21, 44, 17, .12); }

.hot-courses__none { text-align: center; padding: 30px 0 10px; color: var(--hot-muted); }
.hot-courses__none p { margin: 12px 0 16px; font-size: 16px; }

@keyframes hot-badge-in { from { transform: scale(.4) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hot-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .hot-courses { padding-top: 28px; }
    .hot-courses__badge { width: 46px; height: 46px; }
    .hot-courses__lead { font-size: 15px; }
    .hot-filter-row { gap: 10px; }
    .hot-pill, .hot-filter-row:first-child .hot-pill { min-width: 0; padding: 8px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hot-courses__badge, .hot-courses__cell.is-entering { animation: none; }
    .hot-pill, .hot-courses__badge, .hot-courses__cell .course-item { transition: none; }
    .hot-pill:hover:not(:disabled), .hot-pill:focus-visible, .hot-courses__cell .course-item:hover { transform: none; }
}
