/* EduDesk LMS — public website */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --dark: #0b1220;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --brand-soft: rgba(var(--brand-rgb), .09);
  --brand-soft-2: rgba(var(--brand-rgb), .16);
}
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
.min-w-0 { min-width: 0; }
.container { max-width: 1240px; }

/* buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; padding: .6rem 1.15rem; }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 86%, #000); border-color: color-mix(in srgb, var(--brand) 86%, #000); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); padding: .55rem 1.1rem; background: #fff; }
.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand); }
.btn-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 20px; padding: 0; }
.btn-icon:hover { background: var(--bg-soft); }
.dot-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.pill-soft, .pill-light, .pill-dark { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.pill-soft { background: var(--brand-soft); color: var(--brand); }
.pill-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.pill-dark { background: #fff; color: var(--ink); }
.chip { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.topbar { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; }
.main-nav { gap: 4px; margin-left: 18px; }
.main-nav a { color: var(--ink-2); font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.nav-signin { color: var(--ink); text-decoration: none; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; }
.searchbar { display: flex; gap: 12px; padding: 0 0 14px; }
.btn-explore { display: inline-flex; align-items: center; gap: 8px; height: 46px; background: var(--brand-soft); color: var(--brand); border: 0; padding: 0 16px; white-space: nowrap; }
.btn-explore:hover, .btn-explore.show { background: var(--brand-soft-2); color: var(--brand); }
.cat-menu { min-width: 280px; padding: 8px; border-radius: 14px; border-color: var(--line); }
.cat-menu .dropdown-item { border-radius: 8px; padding: 8px 10px; }
.cat-menu i { color: var(--brand); font-size: 18px; }
.search-form { flex: 1; display: flex; position: relative; }
.search-form .form-control { height: 46px; border-radius: 12px; background: var(--bg-soft); border: 1px solid transparent; padding-right: 56px; }
.search-form .form-control:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-form .btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; padding: 0; background: var(--ink); color: #fff; border-radius: 9px; font-size: 18px; }
.mobile-nav a { display: block; padding: 10px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.active { color: var(--brand); }
.dropdown-menu { border-radius: 12px; border-color: var(--line); }
.dropdown-item:active { background: var(--brand); }

/* avatars & stars */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar.rounded-4 { border-radius: 16px !important; }
.avatar-ph { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.stars { color: #f5a524; display: inline-flex; gap: 2px; }
.stars i { opacity: .35; }
.stars i.on { opacity: 1; }

/* sections */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head.text-center { justify-content: center; text-align: center; }
.section-head.text-center p { margin-inline: auto; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.section-head.light h2, .section-head.light p { color: #fff; }
.section-head.light p { opacity: .85; }
.section-head .pill-light { margin-bottom: 12px; }
.link-arrow { font-weight: 700; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { color: var(--brand); }
.display-title { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0; }
.lead-muted { color: var(--muted); font-size: 16px; }
.band-brand { background: var(--brand); background-image: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .14), transparent 45%), radial-gradient(circle at 100% 100%, rgba(0, 0, 0, .18), transparent 50%); }

/* hero */
.hero { background: var(--dark); background-image: radial-gradient(900px 500px at 85% 20%, rgba(var(--brand-rgb), .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(var(--brand-rgb), .18), transparent 60%); color: #fff; padding: 72px 0 84px; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, #000 0%, transparent 55%); pointer-events: none; }
.hero .container { position: relative; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.hero-kicker i { color: color-mix(in srgb, var(--brand) 60%, #fff); }
.hero-title { color: #fff; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; margin: 22px 0 18px; text-wrap: balance; }
.hero-text { color: rgba(255, 255, 255, .78); font-size: 18px; max-width: 520px; }
.hero-search { margin-top: 28px; background: #fff; border-radius: 16px; padding: 7px; display: flex; align-items: center; gap: 6px; max-width: 560px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.hero-search i { color: var(--muted); font-size: 22px; margin-left: 10px; }
.hero-search input { flex: 1; border: 0; outline: 0; font-size: 16px; min-width: 0; padding: 8px 4px; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(255, 255, 255, .6); font-size: 14px; }
.hero-tags a { color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 12px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .12); }
.hero-art { position: relative; height: 460px; }
.hero-card { position: absolute; width: 270px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); color: var(--ink); transition: transform .3s; }
.hero-card:hover { transform: translateY(-6px) rotate(0deg) !important; color: var(--ink); }
.hero-card .hc-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.hero-card .hc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.hero-card b { font-size: 15px; line-height: 1.3; }
.hc-cat { font-size: 12px; color: var(--brand); font-weight: 700; }
.hc-meta { font-size: 12.5px; color: var(--muted); }
.hc-meta i { color: #f5a524; }
.hc-0 { top: 0; left: 4%; transform: rotate(-4deg); z-index: 3; }
.hc-1 { top: 44px; right: 0; transform: rotate(3deg); z-index: 2; }
.hc-2 { bottom: 0; left: 28%; transform: rotate(-1deg); z-index: 1; }
.hero-badge { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); z-index: 4; font-size: 13px; }
.hero-badge i { font-size: 28px; color: var(--brand); }
.hero-badge b { display: block; font-size: 14px; }
.hero-badge span { color: var(--muted); }
.hb-1 { left: -10px; bottom: 90px; }
.hb-2 { right: 10px; top: -8px; }

/* stats */
.stats-band { background: #111827; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 16px; align-items: center; }
.stats-intro h2 { color: #fff; font-size: 22px; margin: 12px 0 0; }
.stat-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; color: #fff; }
.sc-icon { width: 50px; height: 50px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 26px; color: var(--brand); flex: none; }
.stat-card b { font-size: 26px; display: block; line-height: 1.1; }
.stat-card div > span { color: rgba(255, 255, 255, .7); font-size: 13.5px; display: block; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); background: #fff; transition: .2s; position: relative; overflow: hidden; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-3px); }
.cat-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; font-size: 28px; color: var(--brand); margin-bottom: 10px; transition: .2s; }
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-card b { font-size: 17px; }
.cat-count { color: var(--muted); font-size: 13.5px; }
.cat-go { font-size: 13px; font-weight: 700; color: var(--brand); margin-top: 6px; opacity: 0; transform: translateY(4px); transition: .2s; }
.cat-card:hover .cat-go { opacity: 1; transform: none; }

/* course cards */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: .2s; min-width: 0; }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.cc-media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.cc-media .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.course-card:hover .cc-media .thumb { transform: scale(1.05); }
.thumb-ph { display: grid !important; place-items: center; color: rgba(255, 255, 255, .85); font-size: 54px; width: 100%; height: 100%; }
.cc-flag { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cc-flag.sale { background: #ef4444; color: #fff; }
.cc-wish { position: absolute; right: 12px; top: 12px; z-index: 2; }
.cc-wish button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 18px; color: var(--ink-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: .15s; }
.cc-wish button:hover { transform: scale(1.08); color: #ef4444; }
.cc-wish button.on { color: #fff; background: #ef4444; }
.cc-body { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.cc-rating { font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.cc-rating i { color: #f5a524; }
.cc-rating span { color: var(--muted); font-weight: 500; }
.cc-title { font-size: 16.5px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-title a { color: var(--ink); }
.cc-title a:hover { color: var(--brand); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12.5px; }
.cc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cc-meta i { font-size: 15px; }
.cc-author { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; margin-top: auto; min-width: 0; }
.cc-author span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-foot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; }
.cc-students { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.cc-progress { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cc-progress .bar, .progress-line { height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.cc-progress .bar span, .progress-line span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.price { font-weight: 800; font-size: 19px; color: var(--ink); }
.price.free { color: #16a34a; }
.price.lg { font-size: 30px; }
.price-old { color: var(--muted); font-size: 14px; }

/* horizontal scrollers */
.course-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.course-scroller > * { scroll-snap-align: start; }
.scroller-wrap { position: relative; }
.scroller-btn { position: absolute; top: calc(50% - 30px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 20px; z-index: 5; color: var(--ink); }
.scroller-btn.prev { left: -18px; }
.scroller-btn.next { right: -18px; }
.scroller-btn[disabled] { opacity: 0; pointer-events: none; }

/* tutors */
.tutor-card { background: #fff; border-radius: var(--radius); padding: 18px; color: var(--ink); display: flex; flex-direction: column; gap: 14px; transition: .2s; min-width: 0; }
.tutor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tc-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tc-top b { display: block; font-size: 16px; }
.tc-head { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-rating { font-size: 13px; font-weight: 700; display: inline-flex; gap: 3px; align-items: center; margin-top: 2px; }
.tc-rating i { color: #f5a524; }
.tc-rating span { color: var(--muted); font-weight: 500; }
.tc-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; color: var(--ink-2); }
.tc-foot span { display: inline-flex; gap: 5px; align-items: center; }
.tc-foot i { color: var(--brand); font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-no { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.step-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--bg-soft); display: grid; place-items: center; font-size: 38px; color: var(--brand); margin: 10px 0 6px; }
.step b { color: var(--brand); font-size: 16px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* why */
.check-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check-list i { color: var(--brand); font-size: 21px; flex: none; }
.why-art { position: relative; height: 440px; }
.why-img { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.why-img img, .why-img .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.wi-0 { width: 62%; height: 74%; right: 0; top: 0; border-radius: 200px 200px 28px 28px; }
.wi-1 { width: 48%; height: 52%; left: 0; bottom: 0; border-radius: 28px 28px 200px 200px; border: 6px solid #fff; }
.why-art::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--brand-soft-2); left: 14%; top: 8%; }
.why-chip { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13px; }
.why-chip i { font-size: 26px; color: var(--brand); }
.why-chip b { display: block; font-size: 14px; }
.why-chip span { color: var(--muted); }
.wc-1 { left: 4%; top: 30%; }
.wc-2 { right: 6%; bottom: 8%; }

/* faq */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-weight: 700; color: var(--ink); padding: 18px 20px; }
.faq .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--ink); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 4px var(--brand-soft); }
.faq .accordion-body { color: var(--ink-2); }
.help-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--bg-soft); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.help-card .hc-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 36px; margin-bottom: 14px; }
.help-card h3 { font-size: 20px; }
.help-card p { color: var(--muted); }

/* testimonials */
.testimonials { background: var(--bg-soft); }
.quote-card { background: #fff; border-radius: var(--radius); padding: 22px; margin: 0; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.quote-card blockquote { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.quote-card figcaption { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.quote-card figcaption b { display: block; font-size: 14px; }
.quote-card figcaption a { font-size: 12.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* page header */
.page-hero { background: var(--bg-soft); padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 8px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--brand); font-weight: 600; }
.crumbs i { font-size: 12px; }
.cat-strip { background: var(--dark); }
.cat-strip .inner { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cat-strip a { color: rgba(255, 255, 255, .78); white-space: nowrap; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.cat-strip a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cat-strip a.active { background: var(--brand); color: #fff; }

/* listing */
.filters { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; position: sticky; top: 150px; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "\2212"; color: var(--muted); }
.filter-group:not([open]) summary::after { content: "+"; }
.filter-group .opts { padding: 0 16px 14px; display: grid; gap: 8px; }
.filter-group label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.filter-group label span.n { margin-left: auto; color: var(--muted); font-size: 12px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.list-toolbar .count { font-weight: 700; }
.list-toolbar .form-select { border-radius: 10px; min-width: 210px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.active-filters a:hover { border-color: #ef4444; color: #ef4444; }
.site-pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.site-pager a, .site-pager span { min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); font-weight: 600; padding: 0 10px; }
.site-pager a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.site-pager a.disabled { opacity: .4; pointer-events: none; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 54px; color: var(--brand); display: block; margin-bottom: 10px; }

/* course page */
.course-hero { background: var(--dark); background-image: radial-gradient(700px 400px at 90% 0%, rgba(var(--brand-rgb), .3), transparent 60%); color: #fff; padding: 34px 0 40px; }
.course-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 10px; letter-spacing: -.025em; }
.course-hero .sub { color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 700px; }
.course-hero .crumbs { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.course-hero .crumbs a { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 22px; }
.hero-facts > div { display: flex; flex-direction: column; font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero-facts b { color: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hero-facts .stars { font-size: 14px; }
.inst-tag { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; margin-top: 16px; }
.inst-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; position: sticky; top: 160px; margin-top: -250px; }
.buy-media { position: relative; display: block; aspect-ratio: 16/10; background: #000; }
.buy-media img, .buy-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.buy-media .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)); color: #fff; border: 0; width: 100%; }
.buy-media .play span { width: 70px; height: 70px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.buy-media .play:hover span { transform: scale(1.08); }
.buy-media .play em { position: absolute; bottom: 12px; font-style: normal; font-weight: 600; font-size: 14px; }
.buy-body { padding: 22px; }
.buy-body .btn { width: 100%; padding: .8rem; font-size: 16px; }
.includes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.includes li { display: flex; gap: 10px; align-items: center; }
.includes i { font-size: 19px; color: var(--brand); }
.share-row { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; font-size: 14px; font-weight: 600; }
.share-row a, .share-row button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; font-size: 18px; }
.share-row a:hover, .share-row button:hover { border-color: var(--brand); color: var(--brand); }
.c-block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.c-block:last-child { border-bottom: 0; }
.c-block h2 { font-size: 22px; margin-bottom: 16px; }
.learn-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-soft); }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.learn-grid li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.learn-grid i { color: var(--brand); font-size: 20px; flex: none; }
.rich { color: var(--ink-2); line-height: 1.75; }
.rich.clamp { max-height: 180px; overflow: hidden; position: relative; }
.rich.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }
.show-more { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; margin-top: 8px; }
.cert-promo { background: var(--brand); color: #fff; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.cert-promo .txt { padding: 30px; }
.cert-promo h3 { color: #fff; font-size: 24px; }
.cert-promo p { color: rgba(255, 255, 255, .85); }
.cert-promo .img { background: rgba(0, 0, 0, .14); display: grid; place-items: center; padding: 24px; }
.cert-mock { background: #fff; border-radius: 10px; width: 100%; max-width: 330px; aspect-ratio: 1.41; padding: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transform: rotate(-3deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 8px double var(--brand); gap: 4px; color: var(--ink); }
.cert-mock small { letter-spacing: .2em; font-size: 9px; color: var(--muted); text-transform: uppercase; }
.cert-mock b { font-family: Georgia, serif; font-size: 20px; }
.cert-mock .ln { width: 60%; height: 1px; background: var(--line); margin: 6px 0; }
.cert-mock .qr { width: 34px; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, #fff 3px 6px), repeating-linear-gradient(0deg, var(--ink) 0 3px, #fff 3px 6px); background-blend-mode: multiply; margin-top: 6px; opacity: .8; }
.curr-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.curr-head .meta { color: var(--muted); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.curriculum .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: 10px; overflow: hidden; }
.curriculum .accordion-button { padding: 16px 18px; flex-wrap: wrap; gap: 4px; box-shadow: none; }
.curriculum .accordion-button:not(.collapsed) { background: var(--bg-soft); color: var(--ink); }
.curriculum .mod-title { font-weight: 700; width: 100%; }
.curriculum .mod-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.lesson-row i.lt { font-size: 19px; color: var(--muted); }
.lesson-row .lname { flex: 1; min-width: 0; color: var(--ink-2); }
.lesson-row .ldur { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-row .prev { font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 999px; padding: 3px 10px; }
.lesson-row .lock { color: var(--muted); }
.live-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; }
.live-date { width: 62px; text-align: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); padding: 8px 0; flex: none; }
.live-date b { display: block; font-size: 22px; line-height: 1; }
.live-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.live-card .t { font-weight: 700; }
.live-card .m { color: var(--muted); font-size: 13px; }
.badge-live { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.instructor-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.instructor-box .top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.instructor-box .name { font-size: 19px; font-weight: 800; color: var(--ink); }
.instructor-box .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.instructor-box .facts i { color: var(--brand); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--ink-2); }
.rating-sum { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rating-big { text-align: center; background: #fff8eb; border-radius: 14px; padding: 18px; }
.rating-big b { font-size: 46px; line-height: 1; display: block; }
.rating-big span { color: #b7791f; font-weight: 600; font-size: 13px; }
.rbar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rbar .track { flex: 1; height: 8px; border-radius: 8px; background: var(--bg-soft); overflow: hidden; }
.rbar .track span { display: block; height: 100%; background: #f5a524; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.review:last-child { border-bottom: 0; }
.review b { display: block; }
.review .when { color: var(--muted); font-size: 12.5px; }
.review p { color: var(--ink-2); margin: 6px 0 0; }
.mobile-buy { display: none; }

/* instructors page */
.tutor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tutor-grid .tutor-card { border: 1px solid var(--line); }
.profile-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; }
.profile-card { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.profile-card h1 { font-size: 32px; margin: 0 0 4px; }
.profile-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.profile-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.profile-stats b { display: block; font-size: 20px; }
.profile-stats span { color: var(--muted); font-size: 12.5px; }

/* cart */
.cart-item { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; background: #fff; }
.cart-item .ci-img { width: 150px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; flex: none; }
.cart-item .ci-img img, .cart-item .ci-img .thumb-ph { width: 100%; height: 100%; object-fit: cover; font-size: 30px; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item h3 { font-size: 16px; margin: 4px 0; }
.cart-item h3 a { color: var(--ink); }
.cart-item .ci-side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.summary-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 160px; background: #fff; }
.summary-box .row-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.summary-box .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 20px; color: var(--ink); }
.btn-link-danger { background: none; border: 0; color: #ef4444; font-size: 13px; font-weight: 600; padding: 0; }

/* help, forms, content pages */
.form-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.form-control, .form-select { border-radius: 10px; border-color: #dfe3ea; padding: .62rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-label { font-weight: 600; font-size: 14px; }
.content-page { max-width: 820px; }
.content-page p { color: var(--ink-2); line-height: 1.8; }
.info-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; background: #fff; }
.info-tile i { font-size: 26px; color: var(--brand); }
.info-tile b { display: block; }
.info-tile span, .info-tile a { color: var(--muted); font-size: 14px; }

/* footer */
.site-footer { background: #0b1220; color: rgba(255, 255, 255, .72); padding: 54px 0 0; margin-top: 0; }
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 22px; gap: 18px; margin-bottom: 44px; }
.contact-item { display: flex; gap: 14px; align-items: center; }
.ci-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 22px; color: #fff; flex: none; }
.ci-label { color: #fff; font-weight: 700; font-size: 17px; }
.contact-item a, .ci-val { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-cols h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer-cols a { display: block; color: rgba(255, 255, 255, .65); padding: 4px 0; font-size: 14px; }
.footer-cols a:hover { color: #fff; }
.footer-cols a.brand { display: inline-flex; color: #fff; font-size: 20px; }
.brand-light { color: #fff; }
.footer-logo { height: 44px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.footer-about { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid !important; place-items: center; color: #fff !important; font-size: 18px; padding: 0 !important; }
.social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }

/* video modal */
.modal-content { border-radius: 18px; overflow: hidden; border: 0; }
.video-frame { aspect-ratio: 16/9; background: #000; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* responsive */
@media (max-width: 1199.98px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .course-scroller { grid-auto-columns: calc((100% - 44px) / 3); }
  .tutor-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-intro { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .stats-intro h2 { margin: 0; }
}
@media (max-width: 991.98px) {
  .section { padding: 54px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-art { height: 380px; max-width: 560px; margin: 0 auto; }
  .hero-card { width: 230px; }
  .course-grid, .course-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .course-scroller { grid-auto-columns: calc((100% - 22px) / 2); }
  .cat-grid, .steps, .tutor-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { position: static; }
  .buy-box { position: static; margin-top: 24px; }
  .contact-strip { grid-template-columns: 1fr; }
  .why-art { height: 360px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; z-index: 1020; box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
  .mobile-buy .btn { flex: 1; }
  .has-mobile-buy .site-footer { padding-bottom: 70px; }
  .scroller-btn { display: none; }
}
@media (max-width: 575.98px) {
  body { font-size: 14.5px; }
  .topbar { height: 64px; gap: 8px; }
  .brand img { height: 34px; max-width: 130px; }
  .brand { font-size: 17px; }
  .btn-brand { padding: .5rem .9rem; }
  .searchbar { gap: 8px; }
  .btn-explore { padding: 0 13px; }
  .hero-title { font-size: 40px; }
  .hero-text { font-size: 16px; }
  .hero-art { height: 330px; }
  .hero-card { width: 190px; }
  .hero-card .hc-body { padding: 10px; }
  .hero-card b { font-size: 13px; }
  .hc-1 { top: 90px; }
  .hb-1 { left: 0; bottom: 40px; }
  .hb-2 { display: none; }
  .course-grid, .course-grid.cols-3 { grid-template-columns: 1fr; }
  .course-scroller { grid-auto-columns: 82%; gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 16px; }
  .cat-icon { width: 46px; height: 46px; font-size: 24px; }
  .steps, .tutor-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat-card b { font-size: 22px; }
  .learn-grid { grid-template-columns: 1fr; }
  .cert-promo { grid-template-columns: 1fr; }
  .rating-sum { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item .ci-img { width: 100%; }
  .cart-item .ci-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .why-art { height: 300px; }
  .section-head { margin-bottom: 20px; }
  .footer-bottom { flex-direction: column; }
}
.stars i.on::before { opacity: 1 !important; }
.cert-promo .btn { background: #fff; color: var(--ink); border-color: #fff; width: auto; }
.cert-promo .btn:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }
.list-toolbar label { white-space: nowrap; }
@media (max-width: 575.98px) {
  .hero-art { height: 250px; }
  .hc-2, .hero-badge { display: none; }
  .hero-card { width: 56%; }
  .hc-0 { left: 0; top: 0; }
  .hc-1 { right: 0; top: 34px; }
  .cat-go { display: none; }
  .cat-card { gap: 2px; }
  .why-chip { display: none; }
}
