/* ==========================================================================
 * آکادمی هومت — homat-extra.css (نسخهٔ ۲.۰.۶)
 *  ۱) «سؤال‌های متداول» یکدست در همهٔ سایت (صفحهٔ اصلی، مقاله‌ها، صفحهٔ دوره‌ها، برگه‌ها)
 *  ۲) منوی موبایل: زبان‌ها جمع‌شونده
 *  ۳) هیلدا کمی بزرگ‌تر
 * ========================================================================== */

/* ---------- ۱) سؤال‌های متداول — یک ظاهر برای همه‌جا ----------
   ظاهر مرجع همان کارت‌های بازشوِ «سؤال‌های پرتکرار» صفحهٔ اصلی است.
   homat-extra.js سؤال‌های متداولِ داخل متن مقاله/دوره را خودکار به همین شکل درمی‌آورد. */
body .hm-faq.hm-faq.hm-faq{max-width:820px;margin:18px auto 26px;display:grid;gap:10px;padding:0;font-family:inherit}
body .hm-faq.hm-faq.hm-faq details{background:#FFFEFB;border:1px solid #EEE6DA;border-radius:18px;padding:4px 18px;margin:0;transition:box-shadow .2s,border-color .2s}
body .hm-faq.hm-faq.hm-faq details[open]{box-shadow:0 1px 0 rgba(87,33,42,.04),0 10px 24px -18px rgba(74,29,36,.30);border-color:#E3D7C6}
body .hm-faq.hm-faq.hm-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;margin:0;font-weight:800;font-size:15px;line-height:1.8;color:#4A1D24;cursor:pointer;text-align:start}
body .hm-faq.hm-faq.hm-faq summary::-webkit-details-marker{display:none}
body .hm-faq.hm-faq.hm-faq summary::marker{content:""}
body .hm-faq.hm-faq.hm-faq summary::after{content:"+";width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#E4EFEF;color:#125E67;font-size:18px;font-weight:700;line-height:1;flex:none;transition:transform .2s}
body .hm-faq.hm-faq.hm-faq details[open] summary::after{transform:rotate(45deg);background:#F2E6E5;color:#6E2C36}
body .hm-faq.hm-faq.hm-faq summary :is(h2,h3,h4,h5,h6,p,strong,b,span){all:unset;display:inline;font:inherit;color:inherit}
body .hm-faq.hm-faq.hm-faq .hm-faq__a,body .hm-faq.hm-faq.hm-faq details > p{padding:0 0 14px;margin:0;color:#6B5F5A;font-size:14.5px;line-height:2}
body .hm-faq.hm-faq.hm-faq .hm-faq__a > *{margin:0 0 10px;color:inherit;font-size:inherit;line-height:inherit}
body .hm-faq.hm-faq.hm-faq .hm-faq__a > :last-child{margin-bottom:0}
body .hm-faq.hm-faq.hm-faq .hm-faq__a a{color:#125E67;text-decoration:underline}
body .hm-faq.hm-faq.hm-faq .hm-faq__a ul,body .hm-faq.hm-faq.hm-faq .hm-faq__a ol{padding-inline-start:20px}
/* بلوک «جزئیات» خود وردپرس هم همین شکل */
body details.wp-block-details{background:#FFFEFB;border:1px solid #EEE6DA;border-radius:18px;padding:4px 18px;margin:10px 0}
body details.wp-block-details > summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-weight:800;color:#4A1D24;cursor:pointer}
body details.wp-block-details > summary::-webkit-details-marker{display:none}
body details.wp-block-details > summary::after{content:"+";width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#E4EFEF;color:#125E67;font-size:18px;flex:none;transition:transform .2s}
body details.wp-block-details[open] > summary::after{transform:rotate(45deg);background:#F2E6E5;color:#6E2C36}

/* ---------- ۲) منوی موبایل: زبان‌ها جمع‌شونده ---------- */
body .hm-ui.hm-ui .hm-drawer{height:100%;height:100dvh;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-width:100vw}
body .hm-ui.hm-ui .hm-drawer__group{margin:0}
body .hm-ui.hm-ui .hm-drawer__group > summary{list-style:none;cursor:pointer;width:100%}
body .hm-ui.hm-ui .hm-drawer__group > summary::-webkit-details-marker{display:none}
body .hm-ui.hm-ui .hm-drawer__group > summary::marker{content:""}
body .hm-ui.hm-ui .hm-drawer__count{font-size:11px;font-weight:800;color:#125E67;background:#E4EFEF;border-radius:99px;padding:1px 8px;line-height:1.7}
body .hm-ui.hm-ui .hm-drawer__chev{margin-inline-start:auto;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s;opacity:.7;flex:none}
body .hm-ui.hm-ui .hm-drawer__group[open] .hm-drawer__chev{transform:translateY(2px) rotate(-135deg)}
body .hm-ui.hm-ui .hm-drawer__sub{grid-template-columns:repeat(2,minmax(0,1fr))}
body .hm-ui.hm-ui .hm-drawer__sub a{min-width:0}
body .hm-ui.hm-ui .hm-drawer__sub a > span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .hm-ui.hm-ui .hm-drawer__sub a.hm-drawer__all{grid-column:1 / -1;justify-content:center;background:#F2E6E5;color:#6E2C36;border-color:transparent;font-weight:800}

/* ---------- ۳) هیلدا کمی بزرگ‌تر (همه‌جا) ---------- */
body .hm-ui.hm-ui .hm-hilda .hm-hilda__av{width:68px;height:68px;border-radius:20px}
body .hm-ui.hm-ui .hm-hilda.hm-hilda--sm .hm-hilda__av{width:56px;height:56px;border-radius:17px}
body .hm-ui.hm-ui .hm-hilda .hm-hilda__av::after{width:12px;height:12px}
body .hm-ui.hm-ui .hm-hilda .hm-hilda__name{font-size:13.5px}
body .hm-ui.hm-ui .hm-hilda .hm-hilda__text{font-size:15px}
body .hm-ui.hm-ui .hm-hilda.hm-hilda--sm .hm-hilda__text{font-size:14px}
@media (max-width:560px){
  body .hm-ui.hm-ui .hm-hilda .hm-hilda__av{width:60px;height:60px;border-radius:18px}
  body .hm-ui.hm-ui .hm-hilda.hm-hilda--sm .hm-hilda__av{width:52px;height:52px;border-radius:16px}
  body .hm-ui.hm-ui .hm-hilda .hm-hilda__text{font-size:14.5px}
}

/* ---------- ۴) «نمایش بیشتر» دوره‌های هر زبان ---------- */
body .hm-ui.hm-ui .homat-course-card.hm-course-more{display:none!important}
body .hm-ui.hm-ui .homat-course-card.hm-course-new{animation:hm-more-in .45s ease both}
@keyframes hm-more-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
body .hm-ui.hm-ui .hm-more-wrap{display:flex;justify-content:center;margin-top:24px}
body .hm-ui.hm-ui .hm-more-wrap[hidden]{display:none!important}
body .hm-ui.hm-ui .hm-more-btn{height:50px;padding-inline:24px;gap:8px;font-size:14.5px}
body .hm-ui.hm-ui .hm-more-btn__n{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:99px;background:var(--wine-soft);color:var(--wine);font-size:13px;font-weight:900}
body .hm-ui.hm-ui .hm-more-btn small[hidden]{display:none}
body .hm-ui.hm-ui .hm-more-btn small{font-weight:600;color:var(--ink-muted);font-size:12.5px}
@media (prefers-reduced-motion:reduce){body .hm-ui.hm-ui .homat-course-card.hm-course-new{animation:none}}

/* ---------- ۵) دوره‌های صفحهٔ اصلی (۲.۰.۹): همهٔ دوره‌ها، ردیف آخر وسط‌چین ---------- */
@media (min-width:1100px){
  body .hm-ui.hm-ui .hm-courses-grid.hm-courses-grid--home{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
  body .hm-ui.hm-ui .hm-courses-grid--home > .homat-course-card{flex:0 0 calc((100% - (var(--hm-cols,4) - 1) * 18px) / var(--hm-cols,4));max-width:calc((100% - (var(--hm-cols,4) - 1) * 18px) / var(--hm-cols,4))}
}
@media (min-width:640px) and (max-width:1099.98px){
  body .hm-ui.hm-ui .hm-courses-grid.hm-courses-grid--home{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
  body .hm-ui.hm-ui .hm-courses-grid--home > .homat-course-card{flex:0 0 calc((100% - 18px) / 2);max-width:calc((100% - 18px) / 2)}
}

/* ---------- ۶) برچسب «زبان‌آموز» کنار دوره‌ها در آرشیو Tutor ---------- */
.tutor-course-card .tutor-meta .tutor-meta-value{white-space:nowrap}

