/* ==========================================================================
   Kara LMS — hero designs (1.2.11). Loaded only where a designed hero shows.
   Colors: --hx-accent (main) and --hx-gold (emphasis) follow the theme
   colors unless the superadmin sets them on the Appearance page.
   ========================================================================== */
.dk-block--hero.dk-hx-host, .dk-hx { --hx-a: var(--hx-accent, var(--dk-primary)); --hx-g: var(--hx-gold, var(--dk-accent)); }
.dk-hx { position: relative; color: var(--dk-ink); }
.dk-hx h1, .dk-hx h2 { margin: 0; color: inherit; font-weight: 900; }
.dk-hx p { margin: 0; }
.dk-hx a { text-decoration: none; }
.dk-hx-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dk-hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px; font-weight: 900; font-size: 16.5px; font-style: normal; border: 1.5px solid transparent; transition: background .15s, transform .15s, border-color .15s; }
.dk-hx-btn:hover { transform: translateY(-1px); }
.dk-hx-btn--gold { background: var(--hx-g); color: var(--dk-ink); }
.dk-hx-btn--gold:hover { color: var(--dk-ink); filter: brightness(.96); }
.dk-hx-btn--accent { background: var(--hx-a); color: #fff; }
.dk-hx-btn--accent:hover { color: #fff; filter: brightness(.94); }
.dk-hx-btn--ink { background: var(--dk-ink); color: #fff; }
.dk-hx-btn--ink:hover { color: #fff; background: var(--dk-ink-2); }
.dk-hx-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.dk-hx-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.dk-hx-btn--line { border-color: #D9DCD3; color: var(--dk-ink); background: transparent; }
.dk-hx-btn--line:hover { border-color: var(--dk-ink); color: var(--dk-ink); }
.dk-hx-btn--white { background: #fff; color: var(--hx-a); min-height: 46px; }
.dk-hx-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--dk-primary-soft); color: var(--dk-primary-dark); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.dk-hx-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-a); }
.dk-hx-pill--white { background: #fff; border: 1px solid var(--dk-line); align-self: center; }
.dk-hx-pill--glass { background: rgba(255,255,255,.14); color: #fff; }
.dk-hx-pill--warm { background: #fff; border: 1px solid #EADFC8; color: #8F5A00; }
.dk-hx-chip { align-self: flex-start; background: var(--hx-g); color: var(--dk-ink); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.dk-hx-gold { color: #B7791F; }
.dk-hx-live { display: inline-flex; align-items: center; gap: 6px; color: var(--dk-live); font-weight: 800; }
.dk-hx-live i, .dk-hx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dk-live); box-shadow: 0 0 0 4px rgba(194,65,12,.2); display: inline-block; }
.dk-hx-live--dark { color: #FDBA8C; }
.dk-hx-live--dark i { background: #F97316; box-shadow: 0 0 0 4px rgba(249,115,22,.25); }
.dk-hx-badge { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 900; z-index: 1; }
.dk-hx-badge--type { right: 14px; background: #fff; color: var(--dk-ink); }
.dk-hx-badge--off { left: 14px; background: var(--dk-live); color: #fff; }
.dk-hx-badge--gold { right: 14px; background: var(--hx-g); color: var(--dk-ink); }
.dk-hx-tone--video { --hx-tone: #0E6B5C; --hx-tone-soft: #E3F1EC; }
.dk-hx-tone--online { --hx-tone: #1D47A6; --hx-tone-soft: #E5ECFB; }
.dk-hx-tone--inperson { --hx-tone: #8F3F08; --hx-tone-soft: #FBEBDD; }
.dk-hx-hue--0 { background: #E3F1EC; color: #0B5A4D; }
.dk-hx-hue--1 { background: #E5ECFB; color: #1D47A6; }
.dk-hx-hue--2 { background: #FBEBDD; color: #8F3F08; }
.dk-hx-hue--3 { background: #F7EED6; color: #7A5A0E; }
.dk-hx-hue--4 { background: #EDE7F7; color: #5B2C93; }
.dk-hx-hue--5 { background: #E1EFF5; color: #0F5672; }
.dk-hx-cover { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--hx-tone, #0E6B5C), var(--dk-ink)); color: rgba(255,255,255,.75); overflow: hidden; }
.dk-hx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-hx-cover--fill { position: absolute; inset: 0; }
.dk-hx-cover--sq { width: 72px; height: 72px; border-radius: 14px; flex-shrink: 0; }

/* Search */
.dk-hx-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--dk-line); border-radius: 16px; padding: 8px; }
.dk-hx-search input { flex: 1 1 220px; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 16.5px; min-height: 52px; color: var(--dk-ink); }
.dk-hx-search select { min-height: 50px; border: 0; border-right: 1px solid var(--dk-line); background: transparent; padding: 0 12px; font-size: 15px; color: var(--dk-ink); }
.dk-hx-search button { min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; background: var(--hx-a); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.dk-hx-search--soft { background: var(--dk-ground); }
.dk-hx-search--bar { box-shadow: 0 16px 40px rgba(0,0,0,.18); border: 0; padding: 6px; }
.dk-hx-search--bar button { background: var(--hx-g); color: var(--dk-ink); font-weight: 900; }
.dk-hx-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-hx-tags a { border: 1px solid #D9DCD3; color: #33405A; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: all .15s; }
.dk-hx-tags a:hover { background: var(--hx-a); border-color: var(--hx-a); color: #fff; }

/* Category tiles */
.dk-hx-cats { display: grid; gap: 14px; }
.dk-hx-cats--tile { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dk-hx-cats--round { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 8px; }
.dk-hx-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--dk-ink); transition: transform .15s, border-color .15s; }
.dk-hx-cats--tile .dk-hx-cat { border: 1px solid var(--dk-line); border-radius: 16px; padding: 18px 12px; }
.dk-hx-cats--tile .dk-hx-cat:hover { border-color: var(--hx-a); transform: translateY(-2px); color: var(--dk-ink); }
.dk-hx-cats--round .dk-hx-cat { width: 132px; }
.dk-hx-cat__ic { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.dk-hx-cats--round .dk-hx-cat__ic { width: 66px; height: 66px; }
.dk-hx-cats--round .dk-hx-cat:hover .dk-hx-cat__ic { background: var(--hx-a); color: #fff; }
.dk-hx-cat b { font-size: 15.5px; }
.dk-hx-cat small { font-size: 13px; color: var(--dk-faint); }
.dk-hx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--dk-line-2); padding-top: 20px; }
.dk-hx-stats div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; }
.dk-hx-stats div + div { border-right: 1px solid var(--dk-line-2); }
.dk-hx-stats b { font-size: 30px; font-weight: 900; color: var(--hx-a); }
.dk-hx-stats span { color: var(--dk-muted); line-height: 1.6; max-width: 90px; }

/* Floating cards */
.dk-hx-float { position: absolute; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--dk-ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 14px 34px rgba(8,30,26,.28); z-index: 2; }
.dk-hx-float:hover { color: var(--dk-ink); }
.dk-hx-float b { display: block; font-size: 14.5px; line-height: 1.7; }
.dk-hx-float small { display: block; font-size: 12.5px; color: var(--dk-faint); }
.dk-hx-float__ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--hx-tone-soft); color: var(--hx-tone); flex-shrink: 0; }
.dk-hx-float--live { top: 56px; right: -44px; width: 280px; }
.dk-hx-float--pill { top: 250px; left: -56px; background: var(--dk-ink); color: #fff; border-radius: 999px; padding: 10px 18px 10px 14px; }
.dk-hx-float--pill:hover { color: #fff; }
.dk-hx-float__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--hx-g); color: var(--dk-ink); display: flex; align-items: center; justify-content: center; }
.dk-hx-float--cert { bottom: 34px; right: -30px; }

/* ---------- Persian ---------- */
.dk-hx-persian__band { position: relative; background: var(--hx-band); color: #fff; overflow: hidden; }
.dk-hx-persian__pattern { position: absolute; inset: 0; opacity: var(--hx-pattern, .07); }
.dk-hx-persian__in { position: relative; max-width: var(--dk-max); margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.dk-hx-persian__in.has-panel { padding-bottom: 168px; }
.dk-hx-persian__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dk-hx-persian__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: rgba(242,181,68,.16); border: 1px solid rgba(242,181,68,.55); color: #F7D58E; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.dk-hx-persian__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-g); }
.dk-hx-persian h1 { font-size: 58px; line-height: 1.45; }
.dk-hx-persian__hl { color: var(--hx-g); position: relative; display: inline-block; }
.dk-hx-persian__hl::after { content: ""; position: absolute; right: 0; left: 0; bottom: -2px; height: 10px; border-bottom: 4px solid var(--hx-g); border-radius: 0 0 50% 50%; opacity: .55; }
.dk-hx-persian p { font-size: 19px; line-height: 2; color: rgba(255,255,255,.88); max-width: 600px; }
.dk-hx-persian__trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dk-hx-persian__trust b { font-size: 16.5px; }
.dk-hx-avatars { display: flex; }
.dk-hx-avatars i { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--hx-band); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: var(--dk-ink); background: #F7D58E; }
.dk-hx-avatars i + i { margin-right: -12px; }
.dk-hx-avatars i:nth-child(2) { background: #E3F1EC; }
.dk-hx-avatars i:nth-child(3) { background: #E5ECFB; }
.dk-hx-avatars i:nth-child(4) { background: #FBEBDD; }
.dk-hx-persian__sep { width: 1px; height: 36px; background: rgba(255,255,255,.25); }
.dk-hx-persian__rate { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); }
.dk-hx-persian__rate svg { color: var(--hx-g); }
.dk-hx-persian__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.dk-hx-arch { position: relative; width: 400px; max-width: 100%; height: 500px; }
.dk-hx-arch__line { position: absolute; inset: 0; border-radius: 200px 200px 28px 28px; border: 2px solid rgba(242,181,68,.7); transform: translate(-14px, 14px); }
.dk-hx-arch__frame { position: absolute; inset: 0; border-radius: 200px 200px 28px 28px; background: #F7F2E6; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(14,107,92,.25); }
.dk-hx-arch__frame img { width: 100%; height: 100%; object-fit: cover; }
.dk-hx-persian__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; display: block; fill: var(--dk-ground); }
.dk-hx-persian__panelwrap { position: relative; max-width: var(--dk-max); margin: -128px auto 0; padding: 0 24px 56px; }
.dk-hx-persian__panel { background: #fff; border: 1px solid var(--dk-line); border-radius: 24px; box-shadow: 0 18px 40px rgba(22,33,58,.10); padding: 28px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Slider ---------- */
.dk-hx-slider { max-width: var(--dk-max); margin: 0 auto; padding: 28px 24px 48px; }
.dk-hx-slider__top { display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; }
.dk-hx-slides { flex: 2 1 720px; min-width: 0; position: relative; border-radius: 24px; overflow: hidden; min-height: 440px; display: flex; }
.dk-hx-slide { flex: 1; display: flex; background: linear-gradient(120deg, var(--hx-slide) 0%, color-mix(in srgb, var(--hx-slide) 72%, #000) 100%); color: #fff; animation: dk-hx-fade .45s ease; }
.dk-hx-slide[hidden] { display: none !important; }
@keyframes dk-hx-fade { from { opacity: .3; } to { opacity: 1; } }
.dk-hx-slide__text { flex: 1 1 55%; padding: 48px 48px 84px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.dk-hx-slide h1, .dk-hx-slide h2 { font-size: 44px; line-height: 1.45; }
.dk-hx-slide p { font-size: 17.5px; line-height: 2; color: rgba(255,255,255,.86); max-width: 520px; }
.dk-hx-slide__note { font-size: 15px; color: rgba(255,255,255,.82); }
.dk-hx-slide__media { flex: 1 1 40%; display: flex; align-items: flex-end; justify-content: center; padding: 32px 24px 0; }
.dk-hx-slide__media img { max-height: 380px; width: auto; border-radius: 150px 150px 0 0; object-fit: cover; }
.dk-hx-slide__arch { width: 280px; height: 330px; border-radius: 140px 140px 0 0; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.dk-hx-slides__dots { position: absolute; bottom: 26px; right: 48px; display: flex; gap: 8px; }
.dk-hx-slides__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s, background .25s; }
.dk-hx-slides__dots button[aria-selected="true"] { width: 30px; background: var(--hx-g); }
.dk-hx-slides__arrows { position: absolute; bottom: 16px; left: 24px; display: flex; gap: 8px; }
.dk-hx-slides__arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dk-hx-slides__arrows button:hover { background: #fff; color: var(--dk-ink); }
.dk-hx-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dk-hx-banner { flex: 1; border-radius: 24px; padding: 26px; display: flex; gap: 16px; align-items: center; color: var(--dk-ink); transition: transform .2s; }
.dk-hx-banner:hover { transform: translateY(-3px); color: var(--dk-ink); }
.dk-hx-banner.is-dark, .dk-hx-banner.is-dark:hover { color: #fff; }
.dk-hx-banner__text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dk-hx-banner__text small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #8F5A00; }
.dk-hx-banner.is-dark small { color: #FCA57A; }
.dk-hx-banner__text b { font-size: 20px; font-weight: 900; line-height: 1.55; }
.dk-hx-banner__text span { font-size: 14px; opacity: .78; }
.dk-hx-banner__text em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--hx-a); margin-top: 4px; }
.dk-hx-banner.is-dark em { color: var(--hx-g); }
.dk-hx-banner__ic { width: 88px; height: 88px; border-radius: 22px; background: var(--hx-g); color: var(--dk-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dk-hx-banner.is-dark .dk-hx-banner__ic { background: rgba(255,255,255,.1); color: var(--hx-g); }
.dk-hx-slider__cats { margin-top: 24px; background: #fff; border-radius: 24px; border: 1px solid var(--dk-line); padding: 22px 16px; }
.dk-hx-count { margin-top: 20px; border-radius: 20px; background: linear-gradient(90deg, var(--hx-a), color-mix(in srgb, var(--hx-a) 80%, #fff)); color: #fff; padding: 16px 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.dk-hx-count__label { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.dk-hx-count__label .dk-ic { color: var(--hx-g); }
.dk-hx-count__boxes { display: flex; gap: 10px; }
.dk-hx-count__boxes > span { background: rgba(255,255,255,.14); border-radius: 12px; padding: 6px 14px; text-align: center; min-width: 72px; }
.dk-hx-count__boxes b { display: block; font-size: 24px; }
.dk-hx-count__boxes small { font-size: 12px; opacity: .85; }

/* ---------- Bento ---------- */
.dk-hx-bento { max-width: var(--dk-max); margin: 0 auto; padding: 32px 24px 52px; }
.dk-hx-bento__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.dk-hx-tile { border-radius: 26px; padding: 26px; position: relative; overflow: hidden; color: var(--dk-ink); background: #fff; border: 1px solid var(--dk-line); transition: transform .2s, box-shadow .2s; }
a.dk-hx-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,33,58,.10); color: var(--dk-ink); }
.dk-hx-tile--main { grid-column: span 7; grid-row: span 2; padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.dk-hx-tile--main h1 { font-size: 50px; line-height: 1.4; }
.dk-hx-bento__hl { background: linear-gradient(transparent 62%, var(--hx-mark) 62%); padding: 0 4px; }
.dk-hx-tile--main p { font-size: 17.5px; line-height: 2; color: var(--dk-muted); max-width: 600px; }
.dk-hx-tile--live { grid-column: span 5; background: var(--dk-ink); border-color: var(--dk-ink); color: #fff; display: flex; flex-direction: column; gap: 14px; }
a.dk-hx-tile--live:hover { color: #fff; }
.dk-hx-tile__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #AEB6C8; }
.dk-hx-tile--live > b { font-size: 21px; line-height: 1.7; }
.dk-hx-tile--live > b span { display: block; font-weight: 500; color: #C9D0DE; font-size: 16px; }
.dk-hx-tile__count { display: flex; gap: 8px; margin-top: auto; }
.dk-hx-tile__count > span { flex: 1; background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px; text-align: center; }
.dk-hx-tile__count b { display: block; font-size: 21px; }
.dk-hx-tile__count small { color: #AEB6C8; }
.dk-hx-tile__count em { flex: 1.4; background: var(--hx-g); color: var(--dk-ink); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-style: normal; min-height: 52px; }
.dk-hx-tile--stat { grid-column: span 2; background: var(--hx-stat); border-color: var(--hx-stat); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.dk-hx-tile--stat b, .dk-hx-tile--rate b { font-size: 28px; font-weight: 900; display: block; }
.dk-hx-tile--stat small { opacity: .85; }
.dk-hx-tile--rate { grid-column: span 3; background: #FFF4DC; border-color: #FFF4DC; display: flex; flex-direction: column; justify-content: space-between; }
.dk-hx-tile--rate small { color: #6B4A00; }
.dk-hx-stars { color: #E9A62F; font-size: 20px; letter-spacing: 2px; }
.dk-hx-tile--teacher { grid-column: span 3; grid-row: span 2; background: var(--dk-primary-soft); border-color: var(--dk-primary-soft); padding: 0; display: flex; flex-direction: column; }
.dk-hx-tile__photo { flex: 1; min-height: 230px; margin: 14px 14px 0; border-radius: 18px 18px 120px 120px; background: #D3E7E0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dk-hx-tile__photo img { width: 100%; height: 100%; object-fit: cover; }
.dk-hx-tile__photo b { font-size: 64px; color: var(--dk-primary); }
.dk-hx-tile__who { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 2px; }
.dk-hx-tile__who small { color: #33605A; }
.dk-hx-tile__who em, .dk-hx-tile--mock em { font-style: normal; font-weight: 800; font-size: 14px; color: var(--hx-a); margin-top: 8px; }
.dk-hx-tile--mock { grid-column: span 5; display: flex; gap: 20px; align-items: center; }
.dk-hx-tile--mock > span { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dk-hx-tile--mock small { color: var(--hx-a); font-weight: 800; }
.dk-hx-tile--mock b { font-size: 19px; line-height: 1.6; }
.dk-hx-tile--mock .a { fill: var(--dk-primary-soft); } .dk-hx-tile--mock .b { fill: #C7E3D9; } .dk-hx-tile--mock .c { fill: var(--hx-a); } .dk-hx-tile--mock .d { fill: var(--hx-g); }
.dk-hx-tile--cert { grid-column: span 4; display: flex; gap: 16px; align-items: center; }
.dk-hx-tile--cert b { display: block; font-size: 18px; }
.dk-hx-tile--cert small { color: var(--dk-faint); }
.dk-hx-tile__qr { width: 80px; height: 80px; border-radius: 16px; background: var(--dk-ink); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dk-hx-tile--paths { grid-column: span 9; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 26px; }
.dk-hx-tile--paths > b { margin-left: 8px; }
.dk-hx-tile--paths a { display: inline-flex; align-items: center; gap: 10px; background: var(--dk-ground-2); border-radius: 16px; padding: 10px 16px; color: var(--dk-ink); font-weight: 800; }
.dk-hx-tile--paths a > span { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.dk-hx-tile--paths small { color: var(--dk-faint); font-weight: 500; }

/* ---------- Finder ---------- */
.dk-hx-finder { overflow: hidden; background: radial-gradient(600px 380px at 85% 10%, #D7EEE6 0%, rgba(215,238,230,0) 70%), radial-gradient(520px 360px at 10% 20%, #FCE7CF 0%, rgba(252,231,207,0) 70%), radial-gradient(700px 420px at 50% 110%, #E2E9FA 0%, rgba(226,233,250,0) 70%), var(--dk-ground); }
.dk-hx-finder__in { position: relative; max-width: 1180px; margin: 0 auto; padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.dk-hx-finder h1 { font-size: 54px; line-height: 1.35; }
.dk-hx-finder__in > p { font-size: 18.5px; line-height: 2; color: var(--dk-muted); max-width: 680px; }
.dk-hx-chipfloat { position: absolute; z-index: 1; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(22,33,58,.10); display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; font-weight: 800; animation: dk-hx-bob 6s ease-in-out infinite; }
.dk-hx-chipfloat > span { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.dk-hx-chipfloat--0 { top: 70px; right: 5%; }
.dk-hx-chipfloat--1 { top: 200px; left: 4%; animation-delay: .8s; }
.dk-hx-chipfloat--2 { top: 96px; left: 13%; animation-delay: .4s; }
@keyframes dk-hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dk-hx-seg { display: inline-flex; gap: 6px; background: rgba(255,255,255,.6); border: 1px solid var(--dk-line); padding: 6px; border-radius: 20px; flex-wrap: wrap; justify-content: center; }
.dk-hx-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 15px; border: 0; background: transparent; color: #33405A; font-weight: 700; font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.dk-hx-seg button:hover { background: rgba(255,255,255,.8); }
.dk-hx-seg button[aria-selected="true"] { background: var(--dk-ink); color: #fff; font-weight: 900; box-shadow: 0 10px 24px rgba(22,33,58,.2); }
.dk-hx-seg button i { width: 8px; height: 8px; border-radius: 50%; background: var(--hx-tone); }
.dk-hx-seg--soft { background: var(--dk-line-2); border: 0; padding: 5px; border-radius: 14px; align-self: flex-start; }
.dk-hx-seg--soft button { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.dk-hx-seg--soft button[aria-selected="true"] { background: #fff; color: var(--dk-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dk-hx-finder__panel { width: 100%; background: rgba(255,255,255,.88); border: 1px solid var(--dk-line); border-radius: 28px; padding: 22px; box-shadow: 0 30px 70px rgba(22,33,58,.10); display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 22px; text-align: right; }
.dk-hx-finder__panel[hidden] { display: none !important; }
.dk-hx-finder__course { background: var(--hx-tab); color: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dk-hx-finder__course:hover { color: #fff; filter: brightness(1.04); }
.dk-hx-finder__tag { align-self: flex-start; background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.dk-hx-finder__course > b { font-size: 22px; line-height: 1.6; }
.dk-hx-finder__course > span { font-size: 14.5px; opacity: .9; line-height: 1.9; }
.dk-hx-finder__buy { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); opacity: 1 !important; }
.dk-hx-finder__buy em { background: var(--hx-g); color: var(--dk-ink); border-radius: 12px; padding: 8px 16px; font-weight: 900; font-style: normal; }
.dk-hx-finder__steps { padding: 6px 4px; }
.dk-hx-finder__steps > b { display: block; font-size: 17px; margin-bottom: 14px; }
.dk-hx-finder__steps ol { list-style: none; margin: 0; padding: 0; }
.dk-hx-finder__steps li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; position: relative; }
.dk-hx-finder__steps li:not(:last-child)::before { content: ""; position: absolute; right: 15px; top: 32px; bottom: 0; border-right: 2px dashed color-mix(in srgb, var(--hx-tab) 35%, #fff); }
.dk-hx-finder__steps li > span:first-child { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--hx-tab); color: var(--hx-tab); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.dk-hx-finder__steps li b { display: block; font-size: 15.5px; }
.dk-hx-finder__steps li small { color: var(--dk-faint); font-size: 13.5px; }
.dk-hx-finder__facts { display: flex; flex-direction: column; gap: 10px; }
.dk-hx-finder__facts > div { background: var(--dk-ground); border-radius: 16px; padding: 12px 16px; }
.dk-hx-finder__facts small { color: var(--dk-faint); display: block; }
.dk-hx-finder__facts b { font-size: 16.5px; }
.dk-hx-finder__res { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px dashed var(--hx-tab); border-radius: 14px; color: var(--hx-tab); font-weight: 800; }

/* ---------- Showcase ---------- */
.dk-hx-showcase { max-width: var(--dk-max); margin: 0 auto; padding: 52px 24px 52px; }
.dk-hx-showcase__top { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.dk-hx-showcase__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dk-hx-showcase h1 { font-size: 52px; line-height: 1.4; }
.dk-hx-showcase h1 .dk-hx-hl, .dk-hx-finder h1 .dk-hx-hl, .dk-hx-catalog h1 .dk-hx-hl { color: var(--hx-a); }
.dk-hx-showcase__text > p { font-size: 18px; line-height: 2; color: var(--dk-muted); }
.dk-hx-mini-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 4px; }
.dk-hx-mini-stats b { display: block; font-size: 26px; font-weight: 900; }
.dk-hx-mini-stats span { font-size: 14px; color: var(--dk-faint); }
.dk-hx-showcase__feat { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dk-hx-feature { display: block; background: #fff; border: 1px solid var(--dk-line); border-radius: 26px; overflow: hidden; color: var(--dk-ink); box-shadow: 0 24px 60px rgba(22,33,58,.10); }
.dk-hx-feature:hover { color: var(--dk-ink); }
.dk-hx-feature[hidden] { display: none !important; }
.dk-hx-feature__media { position: relative; display: block; height: 260px; }
.dk-hx-feature__play { position: absolute; bottom: -32px; left: 28px; width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--hx-a); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.dk-hx-feature__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 28px 24px; }
.dk-hx-feature__title { font-size: 23px; line-height: 1.6; padding-left: 86px; }
.dk-hx-feature__teacher { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #33405A; }
.dk-hx-feature__meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dk-muted); font-size: 14.5px; }
.dk-hx-feature__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.dk-hx-feature__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--dk-line-2); flex-wrap: wrap; }
.dk-hx-feature__foot s { color: #8A93A6; font-size: 14px; }
.dk-hx-feature__foot b { font-size: 23px; font-weight: 900; }
.dk-hx-feature__foot small { display: block; color: var(--hx-a); font-weight: 700; }
.dk-hx-feature__foot .dk-hx-btn { min-height: 50px; }
.dk-hx-strip { margin-top: 36px; }
.dk-hx-strip__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dk-hx-strip__head b { font-size: 19px; }
.dk-hx-strip__head a { font-weight: 800; }
.dk-hx-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.dk-hx-mini { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--dk-line); border-radius: 18px; padding: 12px; color: var(--dk-ink); transition: transform .2s, box-shadow .2s; }
.dk-hx-mini:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,33,58,.10); color: var(--dk-ink); }
.dk-hx-mini > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk-hx-mini b { font-size: 15px; line-height: 1.6; }
.dk-hx-mini small { color: var(--dk-faint); }
.dk-hx-mini em { font-style: normal; font-weight: 800; color: var(--hx-a); font-size: 14px; }

/* ---------- Catalog ---------- */
.dk-hx-catalog { max-width: var(--dk-max); margin: 0 auto; padding: 28px 24px 52px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.dk-hx-catalog__subjects { flex: 0 0 280px; background: #fff; border: 1px solid var(--dk-line); border-radius: 22px; padding: 12px; }
.dk-hx-catalog__navtitle { display: flex; align-items: center; gap: 8px; padding: 8px 14px 12px; font-size: 16px; border-bottom: 1px solid var(--dk-line-2); margin-bottom: 6px; }
.dk-hx-catalog__subjects [role="tab"] { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; color: var(--dk-ink); font-weight: 700; font-size: 15px; cursor: pointer; text-align: right; }
.dk-hx-catalog__subjects [role="tab"]:hover { background: var(--dk-ground-2); }
.dk-hx-catalog__subjects [role="tab"][aria-selected="true"] { background: var(--dk-primary-soft); color: var(--dk-primary-dark); }
.dk-hx-catalog__ini { width: 34px; height: 34px; border-radius: 10px; background: var(--dk-ground-2); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; flex-shrink: 0; }
[aria-selected="true"] > .dk-hx-catalog__ini { background: var(--hx-a); color: #fff; }
.dk-hx-catalog__name { flex: 1; }
.dk-hx-catalog__subjects [role="tab"] small { color: #8A93A6; font-weight: 600; }
.dk-hx-catalog__all { display: block; text-align: center; padding: 12px; margin-top: 6px; border-top: 1px solid var(--dk-line-2); font-weight: 800; font-size: 14px; }
.dk-hx-catalog__main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dk-hx-catalog__band { background: linear-gradient(120deg, var(--hx-band) 0%, var(--hx-a) 100%); border-radius: 26px; padding: 34px 36px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.dk-hx-catalog h1 { font-size: 42px; line-height: 1.45; }
.dk-hx-catalog h1 .dk-hx-hl { color: var(--hx-g); }
.dk-hx-catalog__band > p { font-size: 17px; color: rgba(255,255,255,.84); margin-bottom: 8px; }
.dk-hx-catalog__panel[hidden] { display: none !important; }
.dk-hx-catalog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dk-hx-catalog__head b { font-size: 19px; }
.dk-hx-catalog__head span { display: flex; gap: 6px; }
.dk-hx-catalog__head a { border-radius: 999px; padding: 5px 12px; color: var(--dk-faint); font-size: 14px; }
.dk-hx-catalog__head a:first-child { background: #fff; border: 1px solid var(--dk-line); font-weight: 800; color: var(--hx-a); }
.dk-hx-catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.dk-hx-catalog__empty { background: #fff; border: 1px dashed var(--dk-line); border-radius: 18px; padding: 24px; color: var(--dk-faint); }
.dk-hx-ccard { background: #fff; border: 1px solid var(--dk-line); border-radius: 20px; overflow: hidden; color: var(--dk-ink); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.dk-hx-ccard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,33,58,.12); color: var(--dk-ink); }
.dk-hx-ccard__media { position: relative; display: block; height: 140px; }
.dk-hx-ccard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dk-hx-ccard__body > b { font-size: 16px; line-height: 1.7; }
.dk-hx-ccard__body > small { color: var(--dk-faint); }
.dk-hx-ccard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--dk-line-2); }

/* ---------- Formats ---------- */
.dk-hx-formats { background: var(--hx-ground); }
.dk-hx-formats__top { max-width: var(--dk-max); margin: 0 auto; padding: 56px 24px 0; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.dk-hx-formats__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dk-hx-formats h1 { font-size: 56px; line-height: 1.38; }
.dk-hx-formats__hl { position: relative; white-space: nowrap; background: linear-gradient(transparent 78%, var(--hx-g) 78%, var(--hx-g) 92%, transparent 92%); }
.dk-hx-formats__text > p { font-size: 18px; line-height: 2; color: var(--dk-muted); }
.dk-hx-fan { flex: 1 1 520px; min-width: 0; position: relative; height: 470px; display: flex; justify-content: center; }
.dk-hx-fan__card { position: absolute; top: 40px; width: 290px; height: 390px; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: 0 30px 60px rgba(22,33,58,.22); display: flex; flex-direction: column; background: var(--hx-tone); transition: transform .35s; }
.dk-hx-fan__card:hover { color: #fff; }
.dk-hx-fan__card--0 { top: 10px; z-index: 2; }
.dk-hx-fan__card--1 { transform: translateX(120px) rotate(9deg); }
.dk-hx-fan__card--2 { transform: translateX(-120px) rotate(-9deg); }
.dk-hx-fan:hover .dk-hx-fan__card--1 { transform: translateX(150px) rotate(12deg); }
.dk-hx-fan:hover .dk-hx-fan__card--2 { transform: translateX(-150px) rotate(-12deg); }
.dk-hx-fan__media { position: relative; flex: 1; display: block; }
.dk-hx-fan__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: rgba(0,0,0,.2); }
.dk-hx-fan__card--0 .dk-hx-fan__body { background: #fff; color: var(--dk-ink); }
.dk-hx-fan__body small { font-weight: 800; opacity: .85; }
.dk-hx-fan__card--0 .dk-hx-fan__body small { color: var(--hx-tone); opacity: 1; }
.dk-hx-fan__body b { font-size: 17px; line-height: 1.6; }
.dk-hx-fan__foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--dk-faint); }
.dk-hx-fan__foot b { color: var(--dk-ink); font-size: 15px; }
.dk-hx-fan__badge { position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 30px rgba(22,33,58,.14); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.dk-hx-fan__badge--a { bottom: 4px; right: 4%; }
.dk-hx-fan__badge--a i { width: 10px; height: 10px; border-radius: 50%; background: #22A06B; box-shadow: 0 0 0 4px rgba(34,160,107,.2); }
.dk-hx-fan__badge--b { top: 0; left: 2%; background: var(--dk-ink); color: #fff; }
.dk-hx-formats__cards { max-width: var(--dk-max); margin: 0 auto; padding: 36px 24px 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dk-hx-fmt { background: #fff; border: 1.5px solid #EADFC8; border-radius: 22px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; color: var(--dk-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dk-hx-fmt:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,33,58,.10); border-color: var(--hx-a); color: var(--dk-ink); }
.dk-hx-fmt__ic { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--hx-tone-soft); color: var(--hx-tone); flex-shrink: 0; }
.dk-hx-fmt > span:last-child { display: flex; flex-direction: column; }
.dk-hx-fmt b { font-size: 18px; }
.dk-hx-fmt span span { font-size: 14px; color: var(--dk-faint); line-height: 1.9; }
.dk-hx-fmt small { margin-top: 6px; font-weight: 800; color: var(--hx-tone, var(--hx-a)); }
.dk-hx-fmt:has(.dk-hx-tone--video) small { color: #0E6B5C; }
.dk-hx-fmt:has(.dk-hx-tone--online) small { color: #1D47A6; }
.dk-hx-fmt:has(.dk-hx-tone--inperson) small { color: #8F3F08; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dk-hx-bento__grid > * { grid-column: span 12 !important; grid-row: auto !important; }
  .dk-hx-finder__panel { grid-template-columns: 1fr; }
  .dk-hx-chipfloat { display: none; }
  .dk-hx-float--live { right: 0; }
  .dk-hx-float--pill { left: 0; }
  .dk-hx-float--cert { right: 0; }
}
@media (max-width: 900px) {
  .dk-hx-persian h1, .dk-hx-formats h1, .dk-hx-showcase h1, .dk-hx-finder h1 { font-size: 36px; }
  .dk-hx-tile--main h1, .dk-hx-catalog h1 { font-size: 32px; }
  .dk-hx-slide h1, .dk-hx-slide h2 { font-size: 30px; }
  .dk-hx-persian__in { padding: 44px 16px 72px; gap: 32px; }
  .dk-hx-persian__in.has-panel { padding-bottom: 120px; }
  .dk-hx-persian__panelwrap { padding: 0 16px 40px; margin-top: -88px; }
  .dk-hx-persian__panel { padding: 18px; }
  .dk-hx-arch { height: 380px; width: 300px; }
  .dk-hx-float--live { width: 230px; top: 20px; }
  .dk-hx-slider, .dk-hx-bento, .dk-hx-showcase, .dk-hx-catalog { padding-right: 16px; padding-left: 16px; }
  .dk-hx-slide { flex-direction: column; }
  .dk-hx-slide__text { padding: 28px 24px 84px; }
  .dk-hx-slide__media { display: none; }
  .dk-hx-tile--main { padding: 26px; }
  .dk-hx-catalog__subjects { flex: 1 1 100%; }
  .dk-hx-catalog__subjects [role="tablist"] { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .dk-hx-catalog__subjects [role="tab"] { width: auto; flex-shrink: 0; }
  .dk-hx-catalog__band { padding: 24px 20px; }
  .dk-hx-search select { border-right: 0; flex: 1 1 30%; }
  .dk-hx-fan { height: 420px; flex-basis: 100%; }
  .dk-hx-fan__card { width: 230px; height: 330px; }
  .dk-hx-fan__card--1 { transform: translateX(70px) rotate(8deg); }
  .dk-hx-fan__card--2 { transform: translateX(-70px) rotate(-8deg); }
  .dk-hx-fan:hover .dk-hx-fan__card--1 { transform: translateX(80px) rotate(9deg); }
  .dk-hx-fan:hover .dk-hx-fan__card--2 { transform: translateX(-80px) rotate(-9deg); }
  .dk-hx-formats__top { padding: 36px 16px 0; }
  .dk-hx-formats__cards { grid-template-columns: 1fr; padding: 28px 16px 40px; }
  .dk-hx-feature__title { padding-left: 0; padding-top: 18px; }
  .dk-hx-stats div + div { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dk-hx *, .dk-hx *::before { animation: none !important; transition: none !important; }
}
.dk-hx-banner__text small.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F97316; box-shadow: 0 0 0 4px rgba(249,115,22,.25); display: inline-block; }
.dk-hx-finder__steps li small:empty { display: none; }
.dk-hx-catalog__subjects, .dk-hx-catalog__subjects [role="tablist"] { min-width: 0; max-width: 100%; }
.dk-hx-formats { overflow-x: clip; }
.dk-hx-catalog__ini .dk-ic { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .dk-hx-float--pill { display: none; }
  .dk-hx-float--cert { bottom: 18px; }
  .dk-hx-cats--tile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dk-hx-cats--tile .dk-hx-cat { padding: 14px 8px; }
  .dk-hx-cats--round .dk-hx-cat { width: 30%; }
  .dk-hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dk-hx-stats div { flex-direction: column; gap: 2px; text-align: center; }
  .dk-hx-stats b { font-size: 24px; }
  .dk-hx-catalog__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 1100px) {
  .dk-hx-bento__grid > .dk-hx-tile--stat, .dk-hx-bento__grid > .dk-hx-tile--rate { grid-column: span 6 !important; }
  .dk-hx-tile--teacher { flex-direction: row; align-items: center; }
  .dk-hx-tile__photo { flex: 0 0 120px; min-height: 140px; height: 140px; margin: 14px; border-radius: 18px 18px 60px 60px; }
  .dk-hx-tile__photo b { font-size: 44px; }
}
