/* صفحه اصلی ویرگول (نسخه ۴): چیدمان سفید و تخت، اسلایدر کاراکترها و بلوک‌های رنگی هر حوزه */

.home-block { margin-top: clamp(56px, 7vw, 96px); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.block-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.block-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- هیرو */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 4vw, 52px); }
.kicker { color: var(--primary); font-weight: 600; font-size: 14px; }
.home-hero h1 { margin-block: 10px 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.55; }
.home-hero h1 em { font-style: normal; color: var(--primary); }
.home-hero-text > p { color: var(--text-2); line-height: 2.1; max-width: 54ch; }
.home-hero-cta { margin-top: 26px; gap: 10px; }
.home-stats { display: flex; margin-top: 34px; }
.home-stats li { display: flex; align-items: center; gap: 12px; padding-inline: 22px; border-inline-start: 1px solid var(--border); }
.home-stats li:first-child { padding-inline-start: 0; border: 0; }
.home-stats .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.home-stats strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.4; }
.home-stats small { color: var(--muted); font-size: 13px; }

.slider { position: relative; padding: 8px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); }
.slider-track { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; }
.slide { position: absolute; inset: 0; display: block; color: #fff; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s;
  background:
    radial-gradient(55% 60% at 25% 70%, hsl(var(--h) 90% 72% / 0.8), transparent 70%),
    radial-gradient(40% 50% at 90% 10%, hsl(calc(var(--h) + 30) 85% 65% / 0.55), transparent 70%),
    linear-gradient(150deg, hsl(var(--h) 70% 52%), hsl(var(--h) 68% 34%)); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.6px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 65%); mask-image: linear-gradient(200deg, #000, transparent 65%); }
.slide::after { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); left: -12%; bottom: -30%; z-index: -1; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-text { position: absolute; z-index: 2; top: 9%; inset-inline-start: 7%; max-width: 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.slide-chip { padding: 3px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slide-text strong { font-size: clamp(24px, 3vw, 40px); font-weight: 900; line-height: 1.45; text-shadow: 0 4px 22px hsl(var(--h) 70% 18% / 0.35); }
.slide-go { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 16px; border-radius: 10px; background: #fff; color: hsl(var(--h) 62% 32%); font-size: 14px; font-weight: 700; transition: gap 0.25s; }
.slide:hover .slide-go { gap: 12px; }
.slide-char { position: absolute; z-index: 1; bottom: -4%; left: 2%; height: 96%; max-width: 62%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 22px 26px hsl(var(--h) 70% 16% / 0.4)); transform: translateY(8%) scale(0.94); transition: transform 0.8s var(--ease); }
.slide-char.is-emoji { height: 54%; bottom: 14%; left: 8%; }
.slide.is-active .slide-char { transform: none; }
.slider-nav { position: absolute; z-index: 3; bottom: 22px; left: 22px; display: flex; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3); }
.slider-nav button { width: 38px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); }
.slider-nav button:hover { background: var(--surface-2); color: var(--primary); }
.slider-dots { position: absolute; z-index: 3; bottom: 34px; right: 30px; display: flex; gap: 5px; }
.slider-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.5); transition: width 0.3s, background 0.3s; }
.slider-dots i.is-active { width: 24px; background: #fff; }

/* ---------------------------------------------------------------- دسته‌بندی‌ها */
.cat-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.cat-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px 16px; border: 1px solid var(--border); border-radius: 22px; text-align: center; transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease); }
.cat-face { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; background: var(--cat-soft); color: var(--cat); transition: background 0.25s; }
.cat-face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(4%); transition: transform 0.4s var(--ease); }
.cat-box strong { font-size: 14px; font-weight: 700; line-height: 1.6; }
.cat-box small { color: var(--muted); font-size: 12.5px; }
.cat-box:hover { border-color: var(--cat); background: var(--cat-soft); transform: translateY(-3px); }
.cat-box:hover .cat-face { background: var(--cat); }
.cat-box:hover .cat-face img { transform: scale(1.22) translateY(2%) rotate(-4deg); }
.cat-box:hover strong { color: var(--cat-deep); }

/* ---------------------------------------------------------------- چرا ویرگول */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.why-text h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; line-height: 1.6; }
.why-text > p { margin-top: 14px; color: var(--text-2); line-height: 2.1; }
.checks { margin-block: 22px 26px; }
.checks li { display: flex; align-items: center; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }
.checks li:last-child { border: 0; }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 3; }
.why-art { position: relative; aspect-ratio: 1 / 0.9; }
.why-panel { position: absolute; inset: 12% 0 0 14%; border-radius: 34px; background: linear-gradient(160deg, var(--gold-100), var(--primary-soft)); }
[data-theme="dark"] .why-panel { background: linear-gradient(160deg, rgba(46, 199, 116, 0.18), rgba(46, 199, 116, 0.05)); }
.why-tile { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; overflow: hidden; background: var(--surface); color: var(--cat);
  box-shadow: 0 14px 30px -12px hsl(var(--h) 60% 30% / 0.45), 0 0 0 4px var(--cat-soft); animation: bob 6s var(--ease) infinite alternate; }
.why-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateY(5%); }
.why-tile.t1 { top: 0; right: 30%; }
.why-tile.t2 { top: 18%; right: 0; width: 22%; animation-delay: -1s; }
.why-tile.t3 { top: 24%; right: 52%; animation-delay: -2s; }
.why-tile.t4 { top: 44%; right: 24%; width: 24%; animation-delay: -3s; }
.why-tile.t5 { top: 40%; right: 76%; width: 16%; animation-delay: -1.5s; }
.why-tile.t6 { top: 66%; right: 4%; animation-delay: -2.5s; }
.why-tile.t7 { top: 70%; right: 54%; width: 20%; animation-delay: -0.5s; }
.why-tile.t8 { top: 4%; right: 72%; width: 15%; animation-delay: -3.5s; }
.why-tile.t9 { top: 82%; right: 30%; width: 14%; animation-delay: -4s; }
@keyframes bob { to { translate: 0 -10px; } }

/* ---------------------------------------------------------------- مسیرهای یادگیری */
.rail.rail-3 { grid-auto-columns: calc((100% - 44px) / 3); }
.path { display: flex; flex-direction: column; }
.path-banner { position: relative; isolation: isolate; overflow: hidden; height: 190px; border-radius: 20px; color: #fff;
  background: radial-gradient(60% 80% at 20% 80%, hsl(var(--h) 85% 70% / 0.7), transparent 70%), linear-gradient(150deg, hsl(var(--h) 55% 30%), hsl(var(--h) 60% 16%)); }
.path-banner::after { content: "،"; position: absolute; z-index: -1; right: 6%; bottom: -36%; font-size: 220px; font-weight: 900; line-height: 1; color: hsl(var(--h) 80% 70% / 0.18); }
.path-banner span { position: absolute; top: 18%; right: 8%; font-size: 26px; font-weight: 900; line-height: 1.4; }
.path-banner small { display: block; font-size: 13px; font-weight: 600; opacity: 0.8; }
.path-banner img { position: absolute; left: 4%; bottom: -12%; height: 108%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35)); transition: transform 0.5s var(--ease); }
.path:hover .path-banner img { transform: translateY(-4%) rotate(-3deg); }
.path h3 { font-size: 15px; font-weight: 700; padding-block: 14px; border-bottom: 1px solid var(--border); }
.path ol { padding-block: 8px; border-bottom: 1px solid var(--border); }
.path li a { display: flex; align-items: center; gap: 12px; padding-block: 9px; font-size: 14px; color: var(--text-2); }
.path li a:hover { color: var(--cat-deep); }
.path li b { color: var(--cat); font-size: 17px; font-weight: 900; min-width: 26px; }
.path-more { display: flex; align-items: center; gap: 8px; padding-top: 14px; color: var(--cat); font-weight: 600; font-size: 14px; }
.path-more span { margin-inline-start: auto; }

/* ---------------------------------------------------------------- مشاوره */
.consult { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: linear-gradient(120deg, var(--primary-soft), var(--surface-2)); border: 1px solid var(--border); }
.consult h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.6; }
.consult p { margin-block: 10px 22px; color: var(--text-2); }
.consult-faces { position: relative; height: 210px; }
.consult-faces img { position: absolute; bottom: -48px; height: 250px; left: calc(var(--i) * 30%); object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.18)); transition: transform 0.4s var(--ease); }
.consult-faces img:nth-child(2) { z-index: 1; height: 270px; bottom: -56px; }
.consult:hover .consult-faces img { transform: translateY(-6px); }

/* ---------------------------------------------------------------- مجله و پرسش‌ها */
.post-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faq-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--muted); transition: transform 0.25s; }
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--primary); }
.faq-item p { padding-bottom: 18px; color: var(--text-2); line-height: 2.1; }

/* ---------------------------------------------------------------- واکنش‌گرا */
@media (max-width: 1180px) {
  .cat-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .post-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-hero, .why, .consult, .faq-wrap { grid-template-columns: 1fr; }
  .home-hero .slider { order: -1; }
  .why-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .rail.rail-3 { grid-auto-columns: calc((100% - 22px) / 2); }
  .consult-faces { height: 170px; }
  .faq-wrap { gap: 0; }
}
@media (max-width: 720px) {
  .cat-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cat-box { padding: 14px 6px 12px; border-radius: 18px; }
  .cat-face { width: 52px; height: 52px; border-radius: 15px; }
  .cat-box strong { font-size: 13px; }
  .home-stats li { padding-inline: 12px; gap: 8px; }
  .home-stats .ic { width: 36px; height: 36px; }
  .home-stats strong { font-size: 15px; }
  .slider-track { aspect-ratio: 1 / 1; }
  .slide-text { max-width: 62%; }
  .rail.rail-3 { grid-auto-columns: 82%; }
  .post-grid.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .home-stats { justify-content: space-between; }
  .home-stats li { flex-direction: column; text-align: center; padding-inline: 6px; gap: 6px; }
  .home-stats li:first-child { padding-inline-start: 6px; }
}
