/* ================================================================
   iGurus — All Courses Page  (ig-courses.css)
   Reference: Courses Premium design
   Fonts: Cormorant Garamond (display) · Hanken Grotesk (UI)
   Cards: crs-* · Page: crs-* scoped
   ================================================================ */

/* ── Design tokens ── */
.crs {
    --crs-brand:    #A41034;
    --crs-brand-2:  #7E0C26;
    --crs-brand-g:  #C2143F;
    --crs-hov:      #D91247;
    --crs-bg:       #F5F1EA; /* matches global body bg */
    --crs-paper:    #FFFFFF;
    --crs-ink:      #111827;
    --crs-muted:    #6B7280;
    --crs-faint:    #9CA3AF;
    --crs-line:     #E5E7EB;
    --crs-star:     #F59E0B;
    --crs-ok:       #15803D;
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--crs-bg);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ================================================================
   HERO
================================================================ */
.crs-hero {
    position: relative;
    background: radial-gradient(130% 150% at 12% 0%, #C2143F 0%, var(--crs-brand) 46%, var(--crs-brand-2) 100%);
    border-radius: 20px;
    padding: clamp(16px,1.8vw,22px) clamp(22px,3vw,42px);
    overflow: hidden;
    color: #fff;
    text-align: left;
    margin: 18px 0 0;
    box-shadow: 0 22px 50px -34px rgba(164,16,52,.55);
}

.crs-hero__dots {
    position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask: radial-gradient(80% 100% at 85% 0%, #000, transparent 75%);
    mask: radial-gradient(80% 100% at 85% 0%, #000, transparent 75%);
    pointer-events: none;
}

.crs-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.crs-hero__left {
    flex: 1;
    min-width: 0;
    
}

.crs-hero__right {
    flex-shrink: 0;
    align-self: flex-start;
}

.crs-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.90);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase !important;
    padding: 5px 13px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 10px;
}

.crs-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.02;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    margin: 0 0 6px;
    letter-spacing: -.01em;
    text-transform: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.crs-hero__sub {
    font-size: clamp(13px,1vw,15px);
    color: rgba(255,255,255,.82);
    
    margin: 0 0 14px;
    line-height: 1.5;
}

.crs-hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(10px,1.6vw,20px);
    margin-top: 0;
    background: #F5F1EA;
    border-radius: 12px;
    padding: 10px 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
}

.crs-stat { display: flex; align-items: baseline; gap: 7px; }

.crs-stat b {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px,1.8vw,26px);
    font-weight: 700;
    color: #A41034;
    line-height: 1;
}

.crs-stat span {
    font-size: 10px;
    color: rgba(164,16,52,.65);
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: nowrap;
}

.crs-stat-div {
    width: 1px;
    height: 26px;
    background: rgba(164,16,52,.20);
    flex-shrink: 0;
    align-self: center;
}

/* ================================================================
   SEARCH BAR
================================================================ */
.crs-search-section { padding: 14px 0 0; }

.crs-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 7px 7px 7px 20px;
    box-shadow: 0 10px 30px -20px rgba(17,24,39,.35);
    border: 1px solid var(--crs-line);
    gap: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.crs-search:focus-within {
    border-color: rgba(164,16,52,.35);
    box-shadow: 0 2px 12px rgba(164,16,52,.10);
}

.crs-search__icon { color: var(--crs-brand); font-size: 15px; flex-shrink: 0; }

.crs-search__input {
    flex: 1;
    border: none; outline: none;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    color: var(--crs-ink);
    background: transparent;
    min-width: 0;
    padding: 8px 0;
}

.crs-search__input::placeholder { color: var(--crs-faint); }

.crs-search__btn {
    background: var(--crs-brand);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 12px 26px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.crs-search__btn:hover { background: var(--crs-hov); }

/* ================================================================
   ACTIVE FILTER CHIPS
================================================================ */
.crs-chips-wrap {
    background: var(--crs-paper);
    border: 1px solid var(--crs-line);
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 12px;
    display: none;
}

.crs-chips-wrap.visible { display: block; }

.crs-chips-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.crs-chips__lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--crs-faint);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}

.crs .ig-fc-chip,
.crs-chips-wrap .ig-fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(164,16,52,.07);
    border: 1px solid rgba(164,16,52,.22);
    color: var(--crs-brand);
    border-radius: 50px;
    padding: 4px 8px 4px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.crs .ig-fc-chip strong,
.crs-chips-wrap .ig-fc-chip strong {
    font-weight: 700;
    color: var(--crs-ink);
}

.crs .ig-fc-chip-x,
.crs-chips-wrap .ig-fc-chip-x {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--crs-brand); color: #fff;
    border: none; cursor: pointer;
    font-size: 12px; font-weight: 700; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s; padding: 0;
}

.crs .ig-fc-chip-x:hover,
.crs-chips-wrap .ig-fc-chip-x:hover { background: var(--crs-brand-2); }

.crs-chips__clear {
    font-size: 12px; font-weight: 700;
    color: var(--crs-brand); background: none;
    border: 1.5px solid rgba(164,16,52,.35);
    border-radius: 50px; padding: 3px 14px;
    cursor: pointer; margin-left: 4px;
    transition: all .15s; white-space: nowrap; flex-shrink: 0;
}

.crs-chips__clear:hover { background: var(--crs-brand); color: #fff; border-color: var(--crs-brand); }

/* ================================================================
   PAGE CONTENT WRAPPER
================================================================ */
.crs-content { padding: 20px 0 80px; }

/* ================================================================
   FILTER BAR
================================================================ */
.crs-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--crs-paper);
    border-radius: 14px;
    border: 1px solid var(--crs-line);
    padding: 12px 16px;
    margin-bottom: 18px;
}

/* Wrapper span for the chevron arrow */
.crs-select-wrap {
    position: relative;
    flex: 0 0 auto;
}

.crs-select-wrap::after {
    content: "";
    position: absolute; right: 12px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--crs-muted);
    border-bottom: 2px solid var(--crs-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.crs-filter-select {
    appearance: none; -webkit-appearance: none;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--crs-line);
    border-radius: 9px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--crs-ink);
    background: var(--crs-paper);
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
    min-width: 120px;
}

.crs-filter-select:focus {
    outline: none;
    border-color: var(--crs-brand);
    box-shadow: 0 0 0 3px rgba(164,16,52,.08);
}

.crs-filter-select:hover { border-color: rgba(164,16,52,.45); }

.crs-filter-select.crs-active {
    border-color: rgba(164,16,52,.55);
    color: var(--crs-brand);
    background-color: rgba(164,16,52,.04);
}

/* Sub-category injected by JS */
.sub-category-holder {
    position: relative;
    flex: 0 0 auto;
}

.sub-category-holder::after {
    content: "";
    position: absolute; right: 12px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--crs-muted);
    border-bottom: 2px solid var(--crs-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.sub-category-holder select,
.sub-category-holder .ig-filter-select {
    appearance: none; -webkit-appearance: none;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--crs-line);
    border-radius: 9px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--crs-ink);
    background: var(--crs-paper);
    cursor: pointer;
    min-width: 120px;
    transition: border-color .18s;
}

.sub-category-holder select:focus { outline: none; border-color: var(--crs-brand); }

.crs-filter-bar__spacer { flex: 1; }

.crs-filter-bar__clear {
    font-size: 13px; font-weight: 600;
    color: var(--crs-brand); background: none;
    border: 1px solid var(--crs-brand);
    border-radius: 50px; padding: 7px 18px;
    cursor: pointer; transition: all .2s;
    white-space: nowrap;
    display: none; align-items: center; gap: 5px;
}

.crs-filter-bar__clear.visible { display: inline-flex; }
.crs-filter-bar__clear:hover { background: var(--crs-brand); color: #fff; }

/* ================================================================
   RESULTS TOPBAR
================================================================ */
.crs-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--crs-line);
    flex-wrap: wrap;
    gap: 10px;
}

.crs-count { font-size: 14px; color: var(--crs-muted); margin: 0; }
.crs-count strong { color: var(--crs-ink); font-weight: 700; }

.crs-sort { display: flex; align-items: center; gap: 8px; }
.crs-sort__label { font-size: 13px; color: var(--crs-muted); white-space: nowrap; }

.crs-sort__select {
    appearance: none; -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--crs-line);
    border-radius: 9px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--crs-ink);
    background: var(--crs-paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A41034' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    min-width: 160px;
}

.crs-sort__select:focus { outline: none; border-color: var(--crs-brand); }

/* ================================================================
   CARD GRID
================================================================ */
.crs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1vw, 16px);
}

.crs-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ================================================================
   CARDS  (crs-*)
================================================================ */
.crs-card {
    position: relative;
    display: flex; flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: var(--crs-paper);
    border: 1px solid var(--crs-line);
    box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 14px 30px -24px rgba(17,24,39,.4);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s;
    animation: crsCardIn .42s cubic-bezier(.4,0,.2,1) both;
}

@keyframes crsCardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.crs-card:hover {
    transform: translateY(-6px);
    border-color: var(--crs-brand);
    box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 30px 56px -28px rgba(164,16,52,.36);
}

/* Stretched invisible link (z-index 2; action buttons are z-index 5) */
.crs-cardlink {
    position: absolute; inset: 0; z-index: 2;
    border-radius: 16px;
}

/* ── Thumbnail ── */
.crs-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(140deg, #2A0A14, #5C0E22);
}

.crs-thumb--a { background: linear-gradient(140deg, #2A0A14, #5C0E22); }
.crs-thumb--b { background: linear-gradient(140deg, #16203A, #0B1220); }

/* ── Cover-less fallback — courses with no thumbnail, or whose stored
   thumbnail URL 404s at runtime (see course-card.blade.php's img
   onerror). Neutral light surface + a generated serif initial, instead
   of continuing the dark gradient meant for real photos (which reads
   as an empty solid-color block once the stripe/scrim overlays below
   are also suppressed here). No bundled placeholder image. ── */
.crs-thumb--nocover {
    background: #F9FAFB !important;
}
.crs-thumb--nocover::before,
.crs-thumb--nocover::after {
    content: none !important;
}
.crs-thumb-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crs-thumb-fallback__letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: #A41034;
}
.crs-thumb--c { background: linear-gradient(140deg, #3A1630, #1A0A18); }

/* Stripe texture */
.crs-thumb::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background-image: repeating-linear-gradient(90deg,rgba(255,255,255,.6) 0 2px,transparent 2px 9px);
    -webkit-mask: linear-gradient(180deg,transparent,#000 40%,transparent);
    mask: linear-gradient(180deg,transparent,#000 40%,transparent);
    pointer-events: none; z-index: 0;
}

/* Dark crimson overlay on real photos — blends them into the gradient aesthetic */
.crs-thumb::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(160deg, rgba(28,4,16,.62) 0%, rgba(55,8,24,.52) 100%);
    pointer-events: none;
}

/* Real thumbnail image */
.crs-thumb-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    display: block; z-index: 1;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.crs-card:hover .crs-thumb-img { transform: scale(1.06); }

/* Top-left wrapper: price + verified side by side, same row as actions */
.crs-top-left {
    position: absolute; top: 9px; left: 9px; z-index: 4;
    display: flex; flex-direction: row; gap: 7px;
    align-items: center;
}

/* Price badge inside top-left — button style matching .crs-act */
.crs-top-left .crs-badge {
    position: static;
    display: grid; place-items: center;
    height: 31px; padding: 0 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.92);
    color: var(--crs-brand);
    font-size: 11px; font-weight: 700; letter-spacing: .01em;
    text-transform: none;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}

.crs-top-left .crs-badge--price { color: var(--crs-brand); }

/* Verified icon — square button matching .crs-act exactly */
.crs-verified-pill {
    display: grid; place-items: center;
    width: 31px; height: 31px; border-radius: 9px;
    background: rgba(255,255,255,.92);
    color: #059669;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
    flex-shrink: 0;
}

.crs-verified-pill svg { width: 16px; height: 16px; }

/* Price badge — top-left */
.crs-badge {
    position: absolute; top: 10px; left: 10px; z-index: 4;
    padding: 3px 9px;
    border-radius: 7px;
    background: linear-gradient(120deg, var(--crs-brand), var(--crs-brand-2));
    color: #fff;
    font-size: 9.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
}

.crs-badge--price {
    background: rgba(255,255,255,.93);
    color: var(--crs-brand);
}

/* Duration chip — bottom-left */
.crs-dur {
    position: absolute; bottom: 10px; left: 10px; z-index: 4;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 7px;
    background: rgba(10,6,8,.62);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 600;
}

.crs-dur svg { width: 12px; height: 12px; }

/* Play overlay */
.crs-play {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-items: center;
    opacity: 0; transition: opacity .3s;
}

.crs-play span {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--crs-brand);
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
    transform: scale(.85); transition: transform .3s;
}

.crs-card:hover .crs-play { opacity: 1; }
.crs-card:hover .crs-play span { transform: scale(1); }
.crs-play svg { fill: currentColor; }
a.crs-play { text-decoration: none; }

/* Action buttons — top-right */
.crs-acts {
    position: absolute; top: 9px; right: 9px; z-index: 5;
    display: flex; gap: 7px;
}

.crs-act {
    display: grid; place-items: center;
    width: 31px; height: 31px; border-radius: 9px;
    background: rgba(255,255,255,.92); color: var(--crs-brand);
    border: 0; cursor: pointer;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
    transition: background .2s, color .2s, transform .2s;
}

.crs-act:hover { background: var(--crs-brand); color: #fff; transform: translateY(-1px); }
.crs-act:active { transform: scale(.9); }
.crs-act svg { width: 15px; height: 15px; }

.crs-fav.is-fav { background: var(--crs-brand); color: #fff; }

/* ── Card body ── */
.crs-body {
    display: flex; flex-direction: column;
    gap: 7px; padding: 11px 12px 12px;
}

.crs-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
}

.crs-tag {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--crs-brand);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-decoration: none;
}

.crs-tag:hover { opacity: .75; }

.crs-rate {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    font-size: 12.5px; font-weight: 700; color: #B45309;
}

.crs-rate svg { fill: var(--crs-star); }

.crs-rate--new {
    color: var(--crs-brand);
    background: rgba(164,16,52,.08);
    padding: 2px 9px; border-radius: 999px;
    font-size: 11px; letter-spacing: .04em; flex: none;
}

.crs-card .crs-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700; font-size: 16px !important;
    line-height: 1.25; letter-spacing: -.005em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .2s;
    color: var(--crs-ink);
    position: relative; z-index: 3;
}

.crs-card .crs-title a { color: inherit; text-decoration: none; }
.crs-card:hover .crs-title { color: var(--crs-brand); }

.crs-author {
    display: flex; align-items: center; gap: 8px;
    position: relative; z-index: 3; /* above .crs-cardlink */
}

.crs-author a {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: inherit;
    flex: 1; min-width: 0;
}

.crs-author a:hover .crs-author-name { color: var(--crs-brand); }

.crs-ava {
    display: grid; place-items: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: linear-gradient(140deg, #C2143F, var(--crs-brand-2));
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700; font-size: 12px; flex: none;
    overflow: hidden;
}

.crs-ava img {
    width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover; display: block;
}

.crs-author-name {
    font-size: 13px; font-weight: 600; color: var(--crs-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

/* Quick add-to-cart — inline with the instructor row */
.crs-quick-add {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
    height: 32px; padding: 0 14px; border-radius: 999px;
    background: #A41034; color: #fff;
    border: 0; cursor: pointer;
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
    transition: background .2s, transform .2s;
}
.crs-quick-add__label { color: #fff; }
.crs-quick-add:hover { background: #D91247; transform: scale(1.04); }
.crs-quick-add:active { transform: scale(.96); }

/* ── Card footer: views | verified ── */
.crs-foot {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--crs-line);
}

.crs-views {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 500; color: var(--crs-muted);
}

.crs-views svg { width: 14px; height: 14px; }

.crs-verified {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(21,128,61,.10); color: var(--crs-ok);
    font-size: 11.5px; font-weight: 700;
}

.crs-verified svg { width: 12px; height: 12px; }

/* ================================================================
   PRELOADER
================================================================ */
.preloader-two {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.ig-spin-inner {
    position: relative;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
}

.ig-spin-ring {
    display: none;
}

.ig-spin-logo { display: flex; align-items: center; justify-content: center; }

/* ================================================================
   PAGINATION
================================================================ */
.pagination-wrap { margin-top: 42px; }

.pagination-wrap .pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
}

.pagination-wrap .pagination li a,
.pagination-wrap .pagination li span {
    display: grid !important;
    place-items: center !important;
    min-width: 40px !important; height: 40px !important;
    padding: 0 12px !important; border-radius: 11px !important;
    border: 1px solid var(--crs-line) !important;
    background: var(--crs-paper) !important;
    color: var(--crs-ink) !important;
    font-weight: 600 !important; font-size: 14px !important;
    text-decoration: none !important;
    transition: background .15s, color .15s !important;
}

.pagination-wrap .pagination li.active a,
.pagination-wrap .pagination li.active span {
    background: var(--crs-brand) !important;
    color: #fff !important;
    border-color: var(--crs-brand) !important;
}

.pagination-wrap .pagination li a:hover {
    background: rgba(164,16,52,.08) !important;
    color: var(--crs-brand) !important;
    border-color: rgba(164,16,52,.3) !important;
}

.pagination-wrap .pagination li.disabled span {
    background: transparent !important;
    border-color: var(--crs-line) !important;
    color: var(--crs-faint) !important;
}

/* ================================================================
   SCROLL-REVEAL  (applied by ig-courses.js)
================================================================ */
.crs-hero__inner .crs--reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

.crs-hero__inner .crs--revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1140px) {
    .crs-hero { padding: 24px 32px 20px; }
}

@media (max-width: 980px) {
    .crs-grid, .crs-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .crs-hero { padding: 22px 24px 18px; border-radius: 16px; }
    .crs-stat b { font-size: 20px; }
}

@media (max-width: 768px) {
    .crs-hero { padding: 20px 18px 16px; border-radius: 14px; }
    .crs-hero__inner { flex-direction: column; gap: 14px; }
    .crs-hero__left { max-width: 100%; }
    .crs-hero__right { width: 100%; }
    .crs-hero__stats { flex-wrap: wrap; justify-content: center; }
    .crs-hero__title { font-size: 1.7rem; }
    .crs-hero__sub { font-size: 13px; }
    .crs-stat-div { display: none; }
    .crs-filter-bar { padding: 10px 12px; gap: 8px; }
    .crs-filter-select { min-width: 100px; font-size: 12px; }
    .crs-chips-wrap { padding: 10px 14px; }
    .crs-content { padding: 16px 0 60px; }
}

@media (max-width: 576px) {
    .crs-hero { border-radius: 14px; padding: 24px 18px 20px; }
    .crs-hero__title { font-size: 1.7rem; }
    .crs-filter-bar { flex-direction: column; align-items: stretch; }
    .crs-select-wrap { width: 100%; }
    .crs-filter-select { width: 100%; min-width: unset; }
    .crs-filter-bar__spacer { display: none; }
    .sub-category-holder { width: 100%; }
    .sub-category-holder select { width: 100%; }
    .crs-topbar { flex-direction: column; align-items: flex-start; }
    .crs-search { border-radius: 14px; padding: 8px 10px; gap: 6px; }
    .crs-search__btn { padding: 8px 18px; }
    .crs-grid, .crs-grid--4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .crs-card { animation: none !important; transition: none !important; }
    .crs-thumb-img { transition: none !important; }
    .crs-hero__inner .crs--reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .crs-search__btn, .crs-filter-select, .crs-filter-bar__clear, .crs-chips__clear { transition: none !important; }
}
