/* تم جنگل «آموزشگاه»: هدر رنگی با جست‌وجوی بزرگ، نوار کناری دسته‌ها، بنر آموزشی، کارت دوره‌ای با ریبون، پاورقی رنگی */
:root{--accent:#1f7a4d;--accent-ink:#fff;--bg:#f1f6f3;--surface:#fff;--ink:#12251b;--muted:#4b665a;--line:#d5e4db;--soft:#e4f0e9;--radius:10px;--radius-lg:16px;--ok:#1f7a4d;--fbg:var(--accent);--fink:var(--accent-ink);--fhead:var(--accent-ink);--fline:color-mix(in srgb,var(--accent-ink) 26%,transparent);--e2:0 1px 2px rgba(18,37,27,.06),0 10px 22px -10px rgba(18,37,27,.18)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--accent:#5fd49b;--accent-ink:#06190f;--bg:#0d1612;--surface:#14211a;--ink:#e3f2ea;--muted:#9bb8a9;--line:#23382c;--soft:#1a2b21}}
:root[data-theme=dark]{--accent:#5fd49b;--accent-ink:#06190f;--bg:#0d1612;--surface:#14211a;--ink:#e3f2ea;--muted:#9bb8a9;--line:#23382c;--soft:#1a2b21;color-scheme:dark}
.theme-forest .btn{border-radius:8px}
.theme-forest .chip{border-radius:6px}

/* ----- هدر رنگی؛ جست‌وجوی بزرگ ----- */
.theme-forest .site-header{background:var(--accent);border-bottom:0}
.theme-forest .site-header .brand,.theme-forest .site-header .cats a{color:var(--accent-ink)}
.theme-forest .site-header .brand{font-size:1.35rem}
.theme-forest .site-header .cats a:hover{background:rgba(255,255,255,.18)}
.theme-forest .site-header .cats a[aria-current=page]{background:var(--accent-ink);color:var(--at);border-color:transparent}
.theme-forest .site-header .search input{background:#fff;color:#12251b;border-color:transparent;border-radius:8px;height:50px}
.theme-forest .site-header .search .btn{background:#12251b;color:#fff;border-radius:8px;min-height:50px}
:root[data-theme=dark] .theme-forest .site-header .search input{background:#e9f5ee}
.theme-forest .site-header .icon-btn{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:var(--accent-ink);border-radius:8px}
.theme-forest .site-header .icon-btn:hover{background:rgba(255,255,255,.26)}
@media (min-width:900px){
  .theme-forest .bar{padding-block:14px}
  .theme-forest .search{max-width:720px}
  .theme-forest:has(.side) .site-header .cats{display:none}
}
/* هدر روشن */
.theme-forest[data-o-head=light] .site-header{background:var(--surface);border-bottom:4px solid var(--accent)}
.theme-forest[data-o-head=light] .site-header .brand,.theme-forest[data-o-head=light] .site-header .cats a{color:var(--ink)}
.theme-forest[data-o-head=light] .site-header .cats a:hover{background:var(--soft)}
.theme-forest[data-o-head=light] .site-header .cats a[aria-current=page]{background:var(--soft);color:var(--at)}
.theme-forest[data-o-head=light] .site-header .search input{background:var(--bg);color:var(--ink);border-color:var(--line)}
.theme-forest[data-o-head=light] .site-header .search .btn{background:var(--accent);color:var(--accent-ink)}
.theme-forest[data-o-head=light] .site-header .icon-btn{background:var(--surface);border-color:var(--line);color:var(--ink)}

/* ----- چیدمان با نوار کناری ----- */
.theme-forest .shell{display:grid;grid-template-columns:268px minmax(0,1fr);gap:30px;align-items:start;flex:1;padding-block:26px 56px}
.theme-forest .shell main{padding:0;min-width:0}
.theme-forest[data-o-side=end] .shell{grid-template-columns:minmax(0,1fr) 268px}
.theme-forest[data-o-side=end] .side{order:2}
.theme-forest .side{position:sticky;top:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--e2)}
.theme-forest .side h2{margin:0;padding:13px 18px;font-size:.98rem;background:var(--accent);color:var(--accent-ink)}
.theme-forest .side li a{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px;border-bottom:1px solid var(--line);border-inline-start:4px solid transparent;color:var(--ink);text-decoration:none;font-size:.93rem}
.theme-forest .side li:last-child a{border-bottom:0}
.theme-forest .side li a svg{color:var(--at);opacity:.85}
.theme-forest .side li a:hover{background:var(--soft)}
.theme-forest .side li a[aria-current=page]{background:var(--soft);border-inline-start-color:var(--accent);font-weight:700;color:var(--at)}
.theme-forest .side small{margin-inline-start:auto;min-width:28px;padding:0 8px;border-radius:99px;background:var(--soft);color:var(--muted);text-align:center;font-size:.76rem;line-height:22px}
.theme-forest .side li a:hover small,.theme-forest .side li a[aria-current=page] small{background:var(--surface)}
@media (max-width:899px){.theme-forest .shell{display:block;padding-block:0}.theme-forest .shell main{padding-block:24px 56px}.theme-forest .side{display:none}}
@media (min-width:900px){.theme-forest .shell .sec-cats{display:none}}

/* ----- بنر آموزشی ----- */
.theme-forest .hero{background:linear-gradient(120deg,var(--accent),color-mix(in srgb,var(--accent) 78%,#000));color:var(--accent-ink);border:0;border-radius:var(--radius-lg);box-shadow:var(--e2);grid-template-columns:1fr;gap:22px;padding:clamp(22px,4vw,40px)}
.theme-forest .hero::before{background:radial-gradient(color-mix(in srgb,var(--accent-ink) 30%,transparent) 1.4px,transparent 2px) 0 0/20px 20px;-webkit-mask-image:linear-gradient(to left,#000,transparent 60%);mask-image:linear-gradient(to left,#000,transparent 60%)}
.theme-forest .hero h1{font-size:clamp(1.6rem,4vw,2.3rem)}
.theme-forest .lead{color:color-mix(in srgb,var(--accent-ink) 90%,var(--accent));max-width:60ch}
.theme-forest .hero .search-hero input{border-radius:8px;background:#fff;color:#12251b;border:0;box-shadow:none;height:54px}
.theme-forest .hero .search-hero .btn{background:#12251b;color:#fff;border-radius:8px;min-height:54px}
:root[data-theme=dark] .theme-forest .hero .search-hero input{background:#e9f5ee}
.theme-forest .hero-links{color:color-mix(in srgb,var(--accent-ink) 88%,var(--accent))}
.theme-forest .hero-links a{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.34);color:var(--accent-ink);border-radius:6px}
.theme-forest .hero-links a:hover{background:rgba(255,255,255,.26);color:var(--accent-ink);border-color:rgba(255,255,255,.6)}
.theme-forest .hero .trust-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
.theme-forest .hero .trust-strip li{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:var(--accent-ink);box-shadow:none;border-radius:var(--radius)}
.theme-forest .hero .trust-strip .ico{background:rgba(255,255,255,.2);color:var(--accent-ink);border-radius:50%}
.theme-forest .hero .trust-strip span span{color:color-mix(in srgb,var(--accent-ink) 88%,var(--accent))}
@media (max-width:899px){.theme-forest .hero .trust-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.theme-forest .hero .trust-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}

.theme-forest .sec-head h2::before,.theme-forest section>h2::before{background:var(--accent);width:5px;border-radius:2px}
.theme-forest .sec-head a{border-radius:6px;background:var(--surface);border:1px solid var(--line)}
.theme-forest .cat-grid a{border-radius:var(--radius)}

/* ----- کارت دوره‌ای ----- */
.theme-forest .card{border-radius:10px;border-bottom:4px solid var(--accent);box-shadow:var(--e2)}
.theme-forest .card-img{aspect-ratio:16/10}
.theme-forest[data-o-card=course] .card-body .chip{position:absolute;top:10px;inset-inline-end:10px;background:var(--accent);color:var(--accent-ink);border-radius:6px;min-height:28px;font-weight:700;box-shadow:0 4px 10px -4px rgba(0,0,0,.4)}
.theme-forest[data-o-card=plain] .card{border-bottom-width:1px}
.theme-forest .card-title{-webkit-line-clamp:2;min-height:3.4em}
.theme-forest .card-foot{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px}
.theme-forest .card-foot .btn{background:var(--accent);color:var(--accent-ink);border:0}
.theme-forest .card-foot .btn:hover{background:var(--accent);filter:brightness(1.1)}
@media (min-width:900px){
  .theme-forest[data-o-cols="3"] .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-forest[data-o-cols="4"] .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .theme-forest[data-o-cols="4"] .card-foot .btn{width:100%}
}
.theme-forest .price b{color:var(--at)}
.theme-forest .sorts a,.theme-forest .pager a,.theme-forest .pager span,.theme-forest .tag-list a{border-radius:6px}
.theme-forest .toolbar{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px}

/* ----- محصول ----- */
.theme-forest .product{border-radius:var(--radius-lg);box-shadow:var(--e2);border-top:5px solid var(--accent)}
.theme-forest .buy{background:var(--soft);border-color:transparent;border-radius:var(--radius)}
.theme-forest .p-price .price b{color:var(--at)}

/* ----- پاورقی رنگی ----- */
.theme-forest .site-footer{border-top:0}
.theme-forest .site-footer .foot-note{background:rgba(0,0,0,.16)}
.theme-forest .site-footer .brand,.theme-forest .site-footer .foot-col h2{color:var(--accent-ink)}
.theme-forest .foot-badges li{border-radius:6px}
.theme-forest .to-top{border-radius:6px}
