

/*fonta inja vared mishe.......................................*/
/* IranSans */
@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/Iransans/eot/IRANSansWeb_Black.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_Black.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_Black.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_Black.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_Black.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/Iransans/eot/IRANSansWeb_Bold.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/Iransans/eot/IRANSansWeb_Medium.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Iransans/eot/IRANSansWeb_Light.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/Iransans/eot/IRANSansWeb_UltraLight.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/Iransans/eot/IRANSansWeb_UltraLight.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Iransans/eot/IRANSansWeb.eot');
  src: url('../fonts/Iransans/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Iransans/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Iransans/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Iransans/ttf/IRANSansWeb.ttf') format('truetype');
}

/* LalezarWeb */
@font-face {
  font-family: LalezarWeb;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/Lalezar/Lalezar-Regular.eot');
  src: url('../fonts/Lalezar/Lalezar-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Lalezar/Lalezar-Regular.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Lalezar/Lalezar-Regular.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Lalezar/Lalezar-Regular.ttf') format('truetype');
}

@font-face {
  font-family: LalezarWeb;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Lalezar/Lalezar-Regular.eot');
  src: url('../fonts/Lalezar/Lalezar-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Lalezar/Lalezar-Regular.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Lalezar/Lalezar-Regular.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Lalezar/Lalezar-Regular.ttf') format('truetype');
}

/* VazirWeb */
@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/Vazir/Vazir-Black.eot');
  src: url('../fonts/Vazir/Vazir-Black.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Black.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Black.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Black.ttf') format('truetype');
}

@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/Vazir/Vazir-Bold.eot');
  src: url('../fonts/Vazir/Vazir-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Bold.ttf') format('truetype');
}

@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/Vazir/Vazir-Medium.eot');
  src: url('../fonts/Vazir/Vazir-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Medium.ttf') format('truetype');
}

@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/Vazir/Vazir-Light.eot');
  src: url('../fonts/Vazir/Vazir-Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Light.ttf') format('truetype');
}

@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/Vazir/Vazir-Thin.eot');
  src: url('../fonts/Vazir/Vazir-Thin.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Thin.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Thin.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Thin.ttf') format('truetype');
}

@font-face {
  font-family: VazirWeb;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Vazir/Vazir-Medium.eot');
  src: url('../fonts/Vazir/Vazir-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
  url('../fonts/Vazir/Vazir-Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
  url('../fonts/Vazir/Vazir-Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
  url('../fonts/Vazir/Vazir-Medium.ttf') format('truetype');
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%; 
  font-family: IRANSans , VazirWeb ;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #037891;
}

body { 
  font-family: IRANSans , VazirWeb ;
}
/*Change carousel caption style in core*/
.carousel-caption {
  bottom: 15%;
}

.ellipsisOverflow{
  max-width: 150px;
  max-height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.btn-size-100 {
  width: 100px;
}

.btn-size-150 {
  width: 150px;
}

.btn-size-200 {
  width: 200px;
}

.modal-xl-custom {
  max-width: 80% !important; /* یا هر مقدار دلخواه مثل 1200px */
}

.news-text img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

/* for gallery and news*/
.hover-card {
  transition: all .3s ease;
}
.hover-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}
.hover-zoom {
  transition: 1s;
}
.hover-card:hover .hover-zoom {
  transform: scale(1.08);
}

/* نقطه چشمک زن روی آیکون کارت های هشدار داشبورد (کامنت/پیام/کاربر جدید) */
.hh-alert-card .avatar {
  overflow: visible;
}
.hh-blink-dot {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4c51;
  animation: hh-blink-pulse 1.6s infinite;
}
@keyframes hh-blink-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 76, 81, .6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 76, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 76, 81, 0); }
}

/* for about us*/
/* CSS (یا در scoped style کامپوننت Vue) */
:root{
  --hh-primary: #037891; /* رنگ اصلی پالت سایت */
  --bg-start: #f4fbfb;
  --bg-end: #eef9f7;
}

.about-section{
  padding: 4.5rem 0;
  /* پس‌زمینه گرادیانت مشابه تصویر */
  background: linear-gradient(90deg, var(--bg-start) 0%, #e7f6f7 50%, var(--bg-end) 100%);
  direction: rtl; /* مهم: جهت متن راست به چپ */
}

/* عنوان */
.about-title{
  color: var(--hh-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.9rem;
  text-align: right;
}

/* متن اصلی */
.about-text{
  color: #143a41;
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;           /* justify */
  text-justify: inter-word;      /* بهبود فاصله بین کلمات */
  text-align-last: right;        /* تراز کردن آخرین خط به راست (برای پاراگراف‌های فارسی) */
  -moz-text-align-last: right;   /* موزیلا */
  hyphens: none;
  word-break: normal;
}

/* blockquote */
.about-quote{
  border-right: 4px solid var(--hh-primary); /* چون راست به چپ است، border-right */
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem 0;
  background: rgba(3, 120, 145,0.05);
  border-radius: 6px;
}

/* متن داخل نقل قول */
.quote-body{
  margin: 0;
  font-style: normal;
  color: #333;
}

/* هایلایت با رنگ اصلی */
.highlight{
  color: var(--hh-primary);
  font-weight: 700;
}

/* کارت تصویر */
.about-image img{
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(6, 48, 56, 0.12);
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* برخی تنظیمات ریسپانسیو */
@media (max-width: 991.98px){
  .about-title{ text-align: center; }
  .about-text{ text-align: justify; text-align-last: center; }
  .about-quote{ border-right-width: 3px; }
}

/* جابه‌جایی متن و تصویر با order-lg-* */

/* مخفی کردن template Customizer */
#template-customizer {
  display: none !important;
}

/* کاروسل عمومی صفحه اصلی */
#carouselExample {
  overflow: hidden;
}

.carousel-link {
  display: block;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
  padding: 20px;
  border-radius: 8px;
  text-shadow: 1px 1px 3px #000;
}

/* کاروسل — دسکتاپ تمام‌صفحه */
@media (min-width: 1200px) {  /* دسکتاپ بزرگ */
  #carouselExample {
    height: 100vh;  /* کل صفحه */
  }

  .carousel-img {
    object-fit: cover;
  }

  .carousel-item img.carousel-img {
    height: 100vh; /* عکس کل صفحه */
  }

  .carousel-caption h4 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1.2rem;
  }
  .swiper-link {
    font-size: 1rem;
  }
  #swiper-3d-coverflow-effect .swiper-slide {
    max-width: 470px;
  }
}

/* Desktop معمولی - هنوز بزرگتر از موبایل */
@media (min-width: 769px) and (max-width: 1199px) {
  #carouselExample {
    max-height: 70vh;
  }

  .carousel-img {
    object-fit: contain;
  }
  .carousel-item img.carousel-img {
    height: 70vh;
  }

  .carousel-caption h4 {
    font-size: 1.4rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
  .swiper-link {
    font-size: 1rem;
  }
  #swiper-3d-coverflow-effect .swiper-slide {
    max-width: 400px;
  }
}

/* کاروسل و اسلایدر — موبایل */
@media (max-width: 768px) {
  #carouselExample {
    max-height: 45vh;
  }

  .carousel-img {
    object-fit: contain;
  }

  .carousel-item img.carousel-img {
    height: 45vh;
  }

  .carousel-caption {
    bottom: 5px;
    padding: 0 10px;
  }

  .carousel-caption h4 {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .carousel-caption p {
    font-size: 0.6rem;
    margin-bottom: 0;
  }
  .swiper-slide {
    margin-top: 40px;
    height: 160px;
  }
  .swiper-link {
    font-size: 0.8rem;
  }
  #swiper-multiple-slides, #swiper-3d-coverflow-effect {
    height: 250px;
  }
}

/* اسلایدر Swiper */
.swiper-slide {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
}

.swiper-link {
  display: block;
  width: 100%;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
  border-radius: 0 0 12px 12px;
  text-shadow: 1px 1px 6px #000;
}

/* گالری رسانه */
.embed-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

@media (max-width: 767.98px) {
  .embed-wrapper { height: 100px; }
}

.embed-wrapper iframe,
.embed-wrapper video {
  pointer-events: none;
}

.gallery-item.expanded .embed-wrapper iframe,
.gallery-item.expanded .embed-wrapper video {
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .gallery-item video { pointer-events: none; }
  .gallery-item.expanded video { pointer-events: auto; }
}

/* همه iframe ها */
.embed-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

/* بعضی embed ها video tag دارند */
.embed-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* برای بزرگ شدن ایتم های گالری بعد از کلیک */
.gallery-item.expanded{
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important; 
}
 
.gallery-item.expanded .card-img-top,
.gallery-item.expanded img,
.gallery-item.expanded video{
  max-height: 70vh !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Embed ها */
.gallery-item.expanded .embed-wrapper{
  height: 60vh !important;
  aspect-ratio: auto !important;
}

.gallery-item.expanded .embed-wrapper iframe,
.gallery-item.expanded .embed-wrapper video{
  height: 100% !important;
  width: 100% !important;
}
/* نمایش تعداد ویو شبیه اینستاگرام  */
.gallery-meta{ 
  color: #262626;
  position: absolute; 

  background: rgba(0,0,0,.55);
  color: #fff;
  
  border-radius: 20px;

  display: flex;
  align-items: center;
  gap: 3px;

  font-size: 11px;
  backdrop-filter: blur(2px);
}

/* Gallery grid view toggle */
.gallery-view-btn.active { pointer-events: none; }

/* Mobile: Instagram-style grid */
@media (max-width: 767.98px) {
  .gallery-item .gallery-detail { display: none; }
  .gallery-item.expanded .gallery-detail { display: block; }

  /* نمایش جزئیات در حالت تک ستونه موبایل */
  .gallery-view-1 .gallery-item .gallery-detail { display: block; }
}

/* مودال جزئیات گالری */
.hh-media-detail-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, .03);
}

.hh-media-detail-viewer iframe,
.hh-media-detail-viewer video.embed-video {
  width: 100%;
  min-height: 60vh;
  border: 0;
}

.hh-media-detail-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}

.hh-media-detail-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 10px;
}

.hh-media-detail-audio-wrap {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hh-media-detail-content {
  max-height: 220px;
  overflow-y: auto;
}

.hh-media-detail-stats {
  font-size: .85rem;
}

/* چیپ‌های هشتگ/موضوع/مبحث (hh-tag-*) */
.hh-tags-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 100%;
}

.hh-tags-group {
  min-width: 0;
  max-width: 100%;
}

/* حالت فشرده چیپ‌ها داخل آکاردیون */
.hh-tags-section-sm {
  gap: .5rem;
}

.hh-tags-section-sm .hh-tags-group h6 {
  font-size: .8rem;
}

.hh-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  max-width: 100%;
}

.hh-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 50rem;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
  /* جلوگیری از سرریز چیپ‌های طولانی */
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hh-tag-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 .35rem .75rem rgba(0, 0, 0, .08);
}

/* چیپ‌های لینک‌شده به جستجو: بدون زیرخط و با حفظ رنگ خود چیپ */
a.hh-tag-hashtag, a.hh-tag-hashtag:hover { color: var(--bs-primary); text-decoration: none; }
a.hh-tag-subject, a.hh-tag-subject:hover { color: #037891; text-decoration: none; }
a.hh-tag-topic, a.hh-tag-topic:hover { color: #b5750d; text-decoration: none; }

.hh-tag-chip i {
  font-size: .85rem;
}

.hh-tag-hashtag {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
  border-color: rgba(var(--bs-primary-rgb), .15);
}

.hh-tag-subject {
  color: #037891;
  background: rgba(3, 120, 145, .1);
  border-color: rgba(3, 120, 145, .15);
}

.hh-tag-topic {
  color: #b5750d;
  background: rgba(181, 117, 13, .1);
  border-color: rgba(181, 117, 13, .15);
}

/* چیپ‌های ریزتر در آکاردیون */
.hh-tags-section-sm .hh-tag-chip {
  padding: .2rem .6rem;
  font-size: .7rem;
}

.hh-tags-section-sm .hh-tag-chip i {
  font-size: .75rem;
}

/* کلمات کلیدی و ابر واژه جلسات */
.keyword-badge {
  font-size: .85rem;
  font-weight: 500;
  transition: all .3s ease;
  cursor: default;
}
.keyword-badge:nth-child(4n+1) { background: rgba(var(--bs-primary-rgb), .15); color: var(--bs-primary); }
.keyword-badge:nth-child(4n+2) { background: rgba(var(--bs-success-rgb), .15); color: var(--bs-success); }
.keyword-badge:nth-child(4n+3) { background: rgba(var(--bs-info-rgb), .15); color: var(--bs-info); }
.keyword-badge:nth-child(4n)   { background: rgba(var(--bs-warning-rgb), .15); color: var(--bs-warning); }
.keyword-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.wc-word {
  display: inline-block;
  padding: 2px 8px;
  margin: 3px;
  border-radius: 6px;
  cursor: default;
  transition: all .3s ease;
  font-weight: 500;
}
.wc-word:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* پنل کاربری — پیام‌های من */
.hh-mymsg-timeline {
  position: relative;
  padding-inline-start: 28px;
}
.hh-mymsg-timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), .35), rgba(var(--bs-primary-rgb), .05));
  border-radius: 2px;
}
.hh-mymsg-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.hh-mymsg-item:last-child {
  margin-bottom: 0;
}
.hh-mymsg-dot {
  position: absolute;
  inset-inline-start: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bs-body-bg);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .35);
  background: var(--bs-warning);
}
.hh-mymsg-dot-success {
  background: var(--bs-success);
  box-shadow: 0 0 0 2px rgba(var(--bs-success-rgb), .35);
}
.hh-mymsg-dot-pending {
  background: var(--bs-warning);
  box-shadow: 0 0 0 2px rgba(var(--bs-warning-rgb), .35);
}
.hh-mymsg-bubble {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  border: 1px solid rgba(var(--bs-primary-rgb), .12);
  background: rgba(var(--bs-primary-rgb), .05);
}
.hh-mymsg-bubble-admin {
  background: rgba(var(--bs-success-rgb), .07);
  border-color: rgba(var(--bs-success-rgb), .18);
  margin-inline-start: 1.5rem;
  position: relative;
}
.hh-mymsg-bubble-admin::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.5rem;
  top: -0.75rem;
  bottom: .75rem;
  width: 1.5rem;
  border-inline-start: 2px dashed rgba(var(--bs-success-rgb), .35);
  border-bottom: 2px dashed rgba(var(--bs-success-rgb), .35);
  border-end-start-radius: 12px;
}
.hh-mymsg-text {
  white-space: pre-wrap;
  line-height: 1.9;
}
/* حفظ خطوط جدید متن در مدال جزئیات */
.hh-details-value {
  white-space: pre-wrap;
  word-break: break-word;
}
.hh-mymsg-date {
  font-size: .75rem;
}
.hh-mymsg-empty-icon {
  font-size: 3rem;
  color: rgba(var(--bs-primary-rgb), .35);
}

/* پنل کاربری — فعالیت‌های من */
.hh-activity-stat {
  display: block;
  transition: all .25s ease;
  cursor: pointer;
}
.hh-activity-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.hh-activity-stat-active {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25);
}
.hh-activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hh-activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: all .25s ease;
}
.hh-activity-item:hover {
  border-color: rgba(var(--bs-primary-rgb), .35);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.hh-activity-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.hh-activity-icon-like {
  background: rgba(var(--bs-danger-rgb), .12);
  color: var(--bs-danger);
}
.hh-activity-icon-dislike {
  background: rgba(var(--bs-secondary-rgb), .12);
  color: var(--bs-secondary);
}
.hh-activity-icon-rate {
  background: rgba(var(--bs-warning-rgb), .15);
  color: var(--bs-warning);
}
.hh-activity-icon-comment {
  background: rgba(var(--bs-info-rgb), .12);
  color: var(--bs-info);
}
.hh-activity-content {
  flex-grow: 1;
  min-width: 0;
}
.hh-activity-model-badge {
  font-weight: 500;
}
.hh-activity-target-link {
  text-decoration: none;
}
.hh-activity-target-link:hover {
  text-decoration: underline;
}
.hh-activity-date {
  font-size: .75rem;
  white-space: nowrap;
}
.hh-activity-stars i {
  font-size: .95rem;
}
.hh-activity-comment {
  background: rgba(var(--bs-info-rgb), .06);
  border-inline-start: 3px solid var(--bs-info);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-style: normal;
  line-height: 1.8;
}
.hh-activity-empty-icon {
  font-size: 3rem;
  color: rgba(var(--bs-primary-rgb), .35);
}

/* حالت فشرده کارت‌های آماری و آیتم‌های فعالیت در موبایل */
@media (max-width: 575.98px) {
  .hh-activity-stat .card-body {
    padding: .65rem .75rem;
  }
  .hh-activity-stat .avatar {
    width: 28px;
    height: 28px;
  }
  .hh-activity-stat .avatar-initial {
    width: 28px;
    height: 28px;
  }
  .hh-activity-stat .avatar-initial i {
    font-size: .85rem;
  }
  .hh-activity-stat .card-title {
    font-size: 1rem;
  }
  .hh-activity-stat span.fw-semibold {
    font-size: .7rem;
  }
  .hh-activity-item {
    padding: .65rem;
    gap: .6rem;
  }
  .hh-activity-icon {
    width: 32px;
    height: 32px;
    font-size: .85rem;
  }
  .hh-activity-model-badge {
    font-size: .7rem;
  }
  .hh-activity-date {
    font-size: .65rem;
  }
}

/* سیستم طراحی صفحات درس و جلسه (hh-learn-*) */

/* دامنه رنگ: جلسه = تیل تیره، درس = فیروزه‌ای روشن */
.hh-learn-scope--session {
  --hh-learn-accent: #037891;
  --hh-learn-accent-rgb: 3, 120, 145;
  --hh-learn-accent-dark: #026779;
  --hh-learn-grad-a: #026779;
  --hh-learn-grad-b: #037891;
  --hh-learn-grad-c: #1c95a8;
}

.hh-learn-scope--lesson {
  --hh-learn-accent: #1c95a8;
  --hh-learn-accent-rgb: 28, 149, 168;
  --hh-learn-accent-dark: #037891;
  --hh-learn-grad-a: #037891;
  --hh-learn-grad-b: #1c95a8;
  --hh-learn-grad-c: #5cb8b7;
}

/* ---------- هیرو (هدر) فشرده با گرادیان و دایره‌های تزئینی ---------- */
.hh-learn-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--hh-learn-grad-a) 0%, var(--hh-learn-grad-b) 55%, var(--hh-learn-grad-c) 100%);
  color: #fff;
  box-shadow: 0 .75rem 2rem rgba(var(--hh-learn-accent-rgb), .30);
}

/* دو دایره محو تزئینی در گوشه‌های هیرو برای حس مدرن */
.hh-learn-hero::before,
.hh-learn-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hh-learn-hero::before { width: 240px; height: 240px; top: -90px; inset-inline-start: -70px; background: rgba(255, 255, 255, .09); }
.hh-learn-hero::after { width: 170px; height: 170px; bottom: -80px; inset-inline-end: 8%; background: rgba(255, 255, 255, .06); }

.hh-learn-hero-body {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.5rem;
}
.hh-learn-hero-body .flex-grow-1 { min-width: 0; }

/* عنوان و زیرعنوان روی گرادیان — سایه ملایم برای خوانایی روی بخش روشن گرادیان */
.hh-learn-hero-title {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
  margin-bottom: .25rem;
}
.hh-learn-hero-subtitle {
  color: rgba(255, 255, 255, .88);
  margin-bottom: 0;
}

/* بج شماره درس/جلسه — افکت شیشه‌ای (frosted glass) */
.hh-learn-order-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .9rem;
  border-radius: 50rem;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(4px);
}

/* چیپ‌های متادیتا (مدت، شهر، محل، تاریخ، صفحات، استاد) داخل هیرو */
.hh-learn-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .8rem;
  border-radius: 50rem;
  font-size: .78rem;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
  max-width: 100%;
}
.hh-learn-meta-chip i { font-size: .95rem; }
.hh-learn-meta-chip a { color: #fff; text-decoration: none; }
.hh-learn-meta-chip a:hover { text-decoration: underline; }
.hh-learn-meta-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .6);
}

/* تصویر بندانگشتی هیرو — کلیک = نمایش بزرگ در مودال گالری */
.hh-learn-hero-thumb {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  display: block;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .25);
  cursor: pointer;
  appearance: none;
}
.hh-learn-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.hh-learn-hero-thumb:hover img { transform: scale(1.08); }

/* نوار پایین هیرو: لایک/امتیاز/بازدید + دکمه‌های نمایش/دانلود — شیشه‌ای */
.hh-learn-hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: .7rem 1.5rem;
  background: rgba(255, 255, 255, .13);
  border-top: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.hh-learn-hero-footer,
.hh-learn-hero-footer a { color: #fff; }
.hh-learn-hero-footer .text-muted { color: rgba(255, 255, 255, .85) !important; }
.hh-learn-hero-footer .ti-star.text-muted { color: rgba(255, 255, 255, .55) !important; }

/* دکمه‌های اکشن هیرو (نمایش مودالی / دانلود) */
.hh-learn-hero-actions {
  display: inline-flex;
  gap: .4rem;
}
.hh-learn-hero-actions .btn {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .4);
}
.hh-learn-hero-actions .btn:hover {
  color: var(--hh-learn-accent-dark);
  background: #fff;
}

/* ---------- کارت بخش‌های محتوا در صفحه جزئیات کامل ---------- */
.hh-learn-card {
  border: 0;
  border-radius: 1.1rem;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .25rem 1.1rem rgba(34, 41, 47, .07);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.hh-learn-card:hover {
  box-shadow: 0 .5rem 1.7rem rgba(var(--hh-learn-accent-rgb), .16);
}
.hh-learn-card-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.05rem 1.35rem .35rem;
}
/* مربع آیکون گرادیانی کنار عنوان هر کارت */
.hh-learn-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .7rem;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--hh-learn-grad-b), var(--hh-learn-grad-c));
  box-shadow: 0 .25rem .6rem rgba(var(--hh-learn-accent-rgb), .35);
}
.hh-learn-card-title {
  margin: 0;
  font-weight: 700;
  color: var(--hh-learn-accent-dark);
}
.hh-learn-card-body {
  padding: .75rem 1.35rem 1.3rem;
}

/* کارت «نکات کلیدی» با تاکید زرد هشدار */
.hh-learn-card--tips { border-inline-start: 4px solid var(--bs-warning); }
.hh-learn-card--tips .hh-learn-card-icon {
  background: linear-gradient(135deg, #f5a623, #ffc107);
  box-shadow: 0 .25rem .6rem rgba(var(--bs-warning-rgb), .35);
}
.hh-learn-card--tips .hh-learn-card-title { color: #b07b00; }

/* ---------- نسخه فشرده (mini) برای بدنه آکاردیون‌ها ---------- */
.hh-learn-mini {
  border-radius: .85rem;
  border: 1px solid rgba(var(--hh-learn-accent-rgb), .18);
  border-inline-start: 4px solid var(--hh-learn-accent);
  background: rgba(var(--hh-learn-accent-rgb), .04);
  padding: .7rem .9rem;
  margin-bottom: .9rem;
}
.hh-learn-mini-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--hh-learn-accent-dark);
}
.hh-learn-mini-title i { font-size: .95rem; }
/* نسخه mini نکات با تاکید زرد */
.hh-learn-mini--tips {
  border-color: rgba(var(--bs-warning-rgb), .3);
  border-inline-start-color: var(--bs-warning);
  background: rgba(var(--bs-warning-rgb), .06);
}
.hh-learn-mini--tips .hh-learn-mini-title { color: #b07b00; }

/* ---------- اسکرول داخلی متن‌های بلند (رنگ اسکرول‌بار هماهنگ با صفحه) ---------- */
.hh-learn-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding-inline-end: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hh-learn-accent) transparent;
}
.hh-learn-scroll::-webkit-scrollbar { width: 5px; }
.hh-learn-scroll::-webkit-scrollbar-thumb { background: var(--hh-learn-accent); border-radius: 10px; }
.hh-learn-scroll--lg { max-height: 600px; }
.hh-learn-scroll--sm { max-height: 200px; }
/* بدون اسکرول عمودی — کل متن نمایش داده می‌شود (برای بخش‌هایی که نباید محدود به ارتفاع ثابت باشند) */
.hh-learn-scroll--free { max-height: none; overflow-y: visible; padding-inline-end: 0; }

/* ---------- نمایش استاندارد و بزرگ‌تر عکس اصلی (کتاب/دوره/جلسه/درس) ---------- */
.hh-learn-main-image {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
}
.hh-learn-main-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.hh-learn-main-image:hover img { transform: scale(1.03); }
@media (max-width: 575.98px) {
  .hh-learn-main-image img { height: 240px; }
}

/* نسخه مخصوص تصاویر عمودی (جلد کتاب/پوستر دوره) — به‌جای کراپ زشت با object-fit:cover، کل تصویر با نسبت درست و در وسط نمایش داده می‌شود */
.hh-learn-main-image--portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--hh-learn-accent-rgb), .1), rgba(var(--hh-learn-accent-rgb), .03));
}
.hh-learn-main-image--portrait img {
  width: auto; 
  max-width: 100%;
  object-fit: contain;
}

/* موبایل: هیرو فشرده‌تر */
@media (max-width: 575.98px) {
  .hh-learn-hero-body { padding: 1rem 1.1rem; }
  .hh-learn-hero-footer { padding: .6rem 1.1rem; gap: .6rem 1rem; }
  .hh-learn-hero-thumb { width: 88px; height: 88px; }
}

/* دامنه رنگ: کتاب = سبزآبی، دوره = سبزآبی اقیانوسی */
.hh-learn-scope--book {
  --hh-learn-accent: #0a8b85;
  --hh-learn-accent-rgb: 10, 139, 133;
  --hh-learn-accent-dark: #077470;
  --hh-learn-grad-a: #077470;
  --hh-learn-grad-b: #0a8b85;
  --hh-learn-grad-c: #40b0ac;
}

.hh-learn-scope--course {
  --hh-learn-accent: #169a96;
  --hh-learn-accent-rgb: 22, 154, 150;
  --hh-learn-accent-dark: #0f827f;
  --hh-learn-grad-a: #0f827f;
  --hh-learn-grad-b: #169a96;
  --hh-learn-grad-c: #5cb8b7;
}

/* دامنه رنگ: استاد = تیل عمیق (سایه‌ی تیره‌تر Primary Dark) برای حس متین و باوقار صفحه اساتید */
.hh-learn-scope--teacher {
  --hh-learn-accent: #026779;
  --hh-learn-accent-rgb: 2, 103, 121;
  --hh-learn-accent-dark: #014e5c;
  --hh-learn-grad-a: #014e5c;
  --hh-learn-grad-b: #026779;
  --hh-learn-grad-c: #037891;
}

/* ---------- گونه‌های تصویر بندانگشتی هیرو ---------- */
/* جلد کتاب — عمودی مثل جلد واقعی */
.hh-learn-hero-thumb--book { width: 132px; height: 176px; border-radius: .9rem; }
/* بنر دوره — افقی */
.hh-learn-hero-thumb--wide { width: 176px; height: 110px; border-radius: .9rem; }
/* آواتار استاد — دایره‌ای با حلقه‌ی درخشان، بزرگ‌تر برای تاکید بر تصویر شخص */
.hh-learn-hero-thumb--person {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .7);
  box-shadow: 0 .6rem 1.6rem rgba(0, 0, 0, .3), 0 0 0 6px rgba(255, 255, 255, .1);
}
@media (max-width: 575.98px) {
  .hh-learn-hero-thumb--person { width: 108px; height: 108px; border-width: 3px; }
}

/* آیکون بزرگ شیشه‌ای هدر صفحات لیست (کتاب‌ها / دوره‌ها) */
.hh-learn-hero-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
}

/* ---------- تب‌های رنگی (nav-pills) صفحات کتاب و دوره ---------- */
.hh-learn-tabs .nav-link {
  color: var(--hh-learn-accent-dark);
  background: rgba(var(--hh-learn-accent-rgb), .08);
  border: 1px solid rgba(var(--hh-learn-accent-rgb), .15);
}
.hh-learn-tabs .nav-link.active {
  color: #fff;
  background-color: var(--hh-learn-grad-b);
  background-image: linear-gradient(135deg, var(--hh-learn-grad-b), var(--hh-learn-grad-c));
  border-color: transparent;
  box-shadow: 0 .35rem .9rem rgba(var(--hh-learn-accent-rgb), .35);
}
/* بج شمارنده داخل تب — bg-primary بوت‌استرپ !important دارد، پس اینجا هم لازم است */
.hh-learn-tabs .nav-link .badge { background-color: var(--hh-learn-accent) !important; }
.hh-learn-tabs .nav-link.active .badge { background-color: rgba(255, 255, 255, .25) !important; }

/* ---------- آکاردیون دروس/جلسات با رنگ صفحه ---------- */
[class*="hh-learn-scope--"] .accordion-button:not(.collapsed) {
  color: var(--hh-learn-accent-dark);
  background: rgba(var(--hh-learn-accent-rgb), .07);
  box-shadow: inset 0 -1px 0 rgba(var(--hh-learn-accent-rgb), .15);
}

/* پیل شماره درس/جلسه با رنگ صفحه (جایگزین bg-primary) */
.hh-learn-accent-pill {
  background-color: var(--hh-learn-accent) !important;
  color: #fff;
}

/* آیکون‌های هماهنگ با رنگ صفحه (جایگزین text-primary داخل کارت‌های مشخصات) */
.hh-learn-ico { color: var(--hh-learn-accent); }

/* عنوان‌های فرعی هماهنگ با رنگ صفحه (داخل تب درباره مدرس و ...) */
.hh-learn-subtitle-heading {
  color: var(--hh-learn-accent-dark);
  font-weight: 700;
}

/* دکمه گرادیانی عمومی هماهنگ با رنگ صفحه */
.hh-learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 50rem;
  padding: .5rem 1.25rem;
  color: #fff !important;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  background-color: var(--hh-learn-grad-b);
  background-image: linear-gradient(135deg, var(--hh-learn-grad-b), var(--hh-learn-grad-c));
  box-shadow: 0 .25rem .75rem rgba(var(--hh-learn-accent-rgb), .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hh-learn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.2rem rgba(var(--hh-learn-accent-rgb), .45);
}

/* ---------- کارت آیتم صفحات لیست (کتاب‌ها / دوره‌ها) ---------- */
.hh-learn-item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--bs-card-bg, #fff);
  box-shadow: 0 .25rem 1.1rem rgba(34, 41, 47, .07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hh-learn-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 .9rem 2rem rgba(var(--hh-learn-accent-rgb), .22);
}
/* ناحیه تصویر: عکس کامل (بدون برش) روی پس‌زمینه ملایم رنگ صفحه */
.hh-learn-item-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--hh-learn-accent-rgb), .10), rgba(var(--hh-learn-accent-rgb), .03));
}
.hh-learn-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .8s ease;
}
.hh-learn-item-card:hover .hh-learn-item-media img { transform: scale(1.06); }

/* چیپ آماری روی تصویر کارت لیست */
.hh-learn-item-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  border-radius: 50rem;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(var(--hh-learn-accent-rgb), .9);
  backdrop-filter: blur(3px);
}
.hh-learn-item-chip--amber { background: rgba(245, 166, 35, .92); }

.hh-learn-item-body {
  flex-grow: 1;
  padding: 1rem 1.15rem .5rem;
}
.hh-learn-item-title {
  font-weight: 700;
  color: var(--hh-learn-accent-dark);
  margin-bottom: .35rem;
}
.hh-learn-item-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: .35rem;
}
.hh-learn-item-meta i { color: var(--hh-learn-accent); }
.hh-learn-item-footer { padding: 0 1.15rem 1.15rem; }

/* موبایل: گونه‌های thumb هیرو کوچک‌تر */
@media (max-width: 575.98px) {
  .hh-learn-hero-thumb--book { width: 104px; height: 140px; }
  .hh-learn-hero-thumb--wide { width: 140px; height: 88px; }
  .hh-learn-hero-icon { width: 52px; height: 52px; font-size: 1.6rem; }
}

/* دامنه رنگ: خبر = فیروزه‌ای روشن (Soft Accent) برای حس تازه/امروزی صفحه اخبار */
.hh-learn-scope--news {
  --hh-learn-accent: #5cb8b7;
  --hh-learn-accent-rgb: 92, 184, 183;
  --hh-learn-accent-dark: #3c7877;
  --hh-learn-grad-a: #3c7877;
  --hh-learn-grad-b: #5cb8b7;
  --hh-learn-grad-c: #95d1d0;
}

/* ---------- تصویر شاخص خبر: کاور بزرگ با نسبت تصویر ثابت و واکنش‌گرا در همه سایزها ---------- */
.hh-news-cover {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 .75rem 2rem rgba(var(--hh-learn-accent-rgb), .22);
}
.hh-news-cover > a { display: block; }
.hh-news-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hh-news-cover:hover img { transform: scale(1.04); }

/* دکمه شناور دانلود تصویر — شیشه‌ای، گوشه بالای کاور */
.hh-news-cover-download {
  position: absolute;
  top: .85rem;
  inset-inline-end: .85rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 61, 69, .45);
  border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.hh-news-cover-download:hover {
  background: var(--hh-learn-accent-dark);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 575.98px) {
  .hh-news-cover img { aspect-ratio: 4 / 3; }
  .hh-news-cover-download { width: 36px; height: 36px; }
}

/* نگهداری خط‌های جدید متن‌های ساده (غیر CKEditor مثل چکیده/توضیحات) بدون نیاز به HTML */
.hh-text-preline { white-space: pre-line; }

/* ================================================================
   سیستم طراحی بخش نظرات (hh-comments-*)
   استفاده مشترک در تمام صفحات جزئیات: اخبار، اساتید، کتاب، درس کتاب، دوره، جلسه
   (Views/Shared/_CommentsSection.cshtml) — طراحی خودکفا و مستقل از رنگ hh-learn هر صفحه
   ================================================================ */
/* توجه: این کلاس روی مودال پاسخ (Bootstrap .modal با position:fixed) هم زده می‌شود تا متغیرهای
   رنگی --hh-c-* در دسترس باشند؛ به همین دلیل این selector فقط متغیر تعریف می‌کند و هیچ خاصیت
   چیدمانی (margin/padding/...) اینجا نمی‌گذاریم — آن‌ها روی .hh-comments-panel هستند */
.hh-comments {
  --hh-c-primary: #037891;
  --hh-c-primary-dark: #026779;
  --hh-c-primary-light: #1c95a8;
  --hh-c-surface: #e7f6f7;
  --hh-c-border: #c5e5e8;
  --hh-c-text: #103d45;
  --hh-c-muted: #4d7277;
}
.hh-comments-panel { margin-top: 1.5rem; }
html.dark-style .hh-comments {
  --hh-c-primary: #1c95a8;
  --hh-c-primary-dark: #037891;
  --hh-c-primary-light: #5cb8b7;
  --hh-c-surface: #2c474b;
  --hh-c-border: #43585b;
  --hh-c-text: #cfe4e5;
  --hh-c-muted: #93b4b8;
}

/* عنوان بخش با آیکون گرادیانی و شمارنده */
.hh-comments-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.hh-comments-icon {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: .9rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--hh-c-primary), var(--hh-c-primary-light));
  box-shadow: 0 .3rem .7rem rgba(3, 120, 145, .3);
}
.hh-comments-heading h5 { margin: 0; font-weight: 800; color: var(--hh-c-text); }
.hh-comments-heading .badge { background: var(--hh-c-primary) !important; }

/* فرم ارسال نظر — کارت مدرن با آواتار کنار textarea */
.hh-comments-composer {
  display: flex; gap: .85rem; padding: 1.1rem; border-radius: 1.1rem;
  background: var(--bs-card-bg, #fff); border: 1px solid var(--hh-c-border);
  box-shadow: 0 .3rem 1rem rgba(3, 120, 145, .08); margin-bottom: 1.5rem;
}
.hh-comments-composer-body { flex: 1 1 auto; min-width: 0; }
.hh-comments-textarea {
  width: 100%; border: 1px solid var(--hh-c-border); border-radius: .9rem; padding: .7rem 1rem;
  resize: vertical; min-height: 64px; background: var(--hh-c-surface); color: var(--hh-c-text);
  transition: border-color .2s, box-shadow .2s;
}
.hh-comments-textarea:focus {
  outline: none; border-color: var(--hh-c-primary); box-shadow: 0 0 0 .2rem rgba(3, 120, 145, .15);
}
.hh-comments-composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.hh-comments-counter { font-size: .75rem; color: var(--hh-c-muted); }

/* دکمه گرادیانی مشترک (ارسال نظر / ثبت پاسخ / ورود) */
.hh-comments-submit {
  border: 0; border-radius: 50rem; padding: .5rem 1.4rem; font-weight: 700; color: #fff !important; font-size: .87rem;
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  background: linear-gradient(135deg, var(--hh-c-primary), var(--hh-c-primary-light));
  box-shadow: 0 .3rem .8rem rgba(3, 120, 145, .35); transition: transform .2s ease, box-shadow .2s ease;
}
.hh-comments-submit:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.1rem rgba(3, 120, 145, .45); color: #fff; }

/* دعوت به ورود برای مهمان‌ها */
.hh-comments-guest {
  text-align: center; padding: 1.75rem 1rem; border-radius: 1.1rem; margin-bottom: 1.5rem;
  background: var(--hh-c-surface); border: 1px dashed var(--hh-c-border); color: var(--hh-c-muted);
}
.hh-comments-guest i { font-size: 1.8rem; color: var(--hh-c-primary-light); }

/* آواتار گرد — با حرف اول به‌عنوان جایگزین وقتی عکس ندارد */
.hh-comments-avatar { flex: 0 0 auto; }
.hh-comments-avatar img, .hh-comments-avatar-initial {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--hh-c-border);
}
.hh-comments-avatar-initial {
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--hh-c-primary), var(--hh-c-primary-light));
}
.hh-comments-item--reply .hh-comments-avatar img,
.hh-comments-item--reply .hh-comments-avatar-initial { width: 34px; height: 34px; }

/* فهرست و حباب هر نظر */
.hh-comments-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.hh-comments-item { display: flex; gap: .75rem; }
.hh-comments-bubble {
  flex: 1 1 auto; min-width: 0; background: var(--bs-card-bg, #fff); border: 1px solid var(--hh-c-border);
  border-radius: 1rem; padding: .8rem 1.05rem; transition: box-shadow .2s ease, border-color .2s ease;
}
.hh-comments-item:hover > .hh-comments-bubble { box-shadow: 0 .35rem 1rem rgba(3, 120, 145, .1); border-color: var(--hh-c-primary-light); }
.hh-comments-bubble-header { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.hh-comments-author { font-weight: 700; color: var(--hh-c-text); font-size: .92rem; }
.hh-comments-time { font-size: .72rem; color: var(--hh-c-muted); }
.hh-comments-text { color: var(--hh-c-text); margin: 0; line-height: 1.85; white-space: pre-line; }
.hh-comments-actions { display: flex; gap: 1rem; margin-top: .5rem; }
.hh-comments-action-btn {
  border: 0; background: none; padding: 0; font-size: .78rem; font-weight: 600; color: var(--hh-c-muted);
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; transition: color .2s ease;
}
.hh-comments-action-btn:hover { color: var(--hh-c-primary); }

/* پاسخ‌ها — تورفته با خط راهنمای عمودی */
.hh-comments-replies {
  margin-top: .9rem; padding-inline-start: 1.1rem; border-inline-start: 2px solid var(--hh-c-border);
  display: flex; flex-direction: column; gap: .9rem;
}

/* حالت خالی */
.hh-comments-empty { text-align: center; padding: 2.5rem 1rem; color: var(--hh-c-muted); }
.hh-comments-empty i { font-size: 2.8rem; color: var(--hh-c-primary-light); opacity: .5; }

/* مودال پاسخ به نظر */
.hh-comments-modal-content { border: 0; border-radius: 1.1rem; overflow: hidden; }
.hh-comments-modal-header {
  background: linear-gradient(135deg, var(--hh-c-primary), var(--hh-c-primary-light));
  border: 0;
}
.hh-comments-quote {
  background: var(--hh-c-surface); border-inline-start: 4px solid var(--hh-c-primary);
  border-radius: .6rem; padding: .6rem .9rem; font-size: .85rem; color: var(--hh-c-muted); margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
  .hh-comments-composer { padding: .85rem; gap: .6rem; }
  .hh-comments-avatar img, .hh-comments-avatar-initial { width: 38px; height: 38px; }
}

/* جستجوی سراسری سایت در نوبار (hh-search-*) */

/* ظرف کلی ویجت جستجو */
.hh-search-wrap {
  position: relative;
  list-style: none;
}

/* باکس جستجو — سفید نیمه‌شفاف تا روی عکس تیره هم کاملا واضح باشد */
.hh-search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(255, 255, 255, 0.30);

  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(3, 120, 145, .25);
  border-radius: 50rem;
  transition: width .3s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* حالت فوکوس باکس */
.hh-search-box:focus-within {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(var(--bs-primary-rgb), .6);
  box-shadow: 0 0 0 .22rem rgba(var(--bs-primary-rgb), .14);
}

/* آیکون ذره‌بین — درشت و پررنگ به رنگ اصلی سایت */
.hh-search-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #037891;
  transition: color .2s ease;
}

/* ورودی متن — تیره و خوانا روی پس‌زمینه سفید باکس */
.hh-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #103d45;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
}
.hh-search-input::placeholder {
  color: #35636b;
  font-size: .9rem;
  font-weight: 600;
  opacity: 1;
}

/* دارک‌مود: باکس شیشه‌ای روشن با متن روشن */
html.dark-style .hh-search-box { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
html.dark-style .hh-search-box:focus-within { background: rgba(255, 255, 255, .18); }
html.dark-style .hh-search-icon { color: #5cb8b7; }
html.dark-style .hh-search-input { color: #ffffff; }
html.dark-style .hh-search-input::placeholder { color: #cfe4e5; }

/* دکمه پاک‌کردن متن */
.hh-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary);
  font-size: .8rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
}
.hh-search-clear:hover { background: rgba(var(--bs-primary-rgb), .2); transform: scale(1.08); }
.hh-search-has-value .hh-search-clear { display: inline-flex; }

/* دکمه بستن پنل موبایل */
.hh-search-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-heading-color, #103d45);
  font-size: 1.25rem;
  cursor: pointer;
}

/* کارت پیشنهادها */
.hh-search-card {
  position: absolute;
  top: calc(100% + .625rem);
  inset-inline-end: 0;
  width: min(480px, calc(100vw - 2rem));
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #c5e5e8);
  border-radius: 1rem;
  box-shadow: 0 .75rem 2.5rem rgba(34, 41, 47, .16);
  z-index: 1092;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transform-origin: top center;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.hh-search-card.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* سایه پررنگ‌تر در دارک‌مود */
html.dark-style .hh-search-card { box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .45); }

/* بدنه کارت با اسکرول داخلی */
.hh-search-card-body {
  padding: 1rem 1.15rem;
  max-height: min(62vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* گروه‌های نتایج (هشتگ/موضوع/مبحث) */
.hh-search-group + .hh-search-group {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--bs-border-color, #c5e5e8);
}

/* عنوان هر گروه */
.hh-search-group-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .6rem;
  font-size: .85rem;
  font-weight: 700;
}
.hh-search-group-title i { font-size: 1rem; }

/* شمارنده تعداد نتایج گروه */
.hh-search-count {
  margin-inline-start: auto;
  padding: .05rem .5rem;
  border: 1px solid currentColor;
  border-radius: 50rem;
  font-size: .7rem;
  font-weight: 600;
  opacity: .85;
}

/* رنگ ثابت هر دسته */
.hh-search-title-hashtag { color: var(--bs-primary); }
.hh-search-title-subject { color: #037891; }
.hh-search-title-topic   { color: #b5750d; }

/* ردیف چیپ‌های پیشنهاد */
.hh-search-items {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

/* آیتم پیشنهاد (چیپ قابل کلیک) */
.hh-search-item {
  cursor: pointer;
  text-align: start;
  font-family: inherit;
}
/* حالت انتخاب با کیبورد */
.hh-search-item.active {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  transform: translateY(-2px);
}

/* هایلایت بخش منطبق عنوان */
.hh-search-mark {
  background: transparent;
  color: inherit;
  font-weight: 800;
  padding: 0;
}

/* حالت‌های راهنما / لودینگ / بدون نتیجه */
.hh-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: 1.25rem .5rem;
  text-align: center;
}
.hh-search-state-icon {
  font-size: 1.9rem;
  color: var(--bs-secondary-color, #9db8bb);
  opacity: .7;
}
.hh-search-state-text {
  margin: 0;
  font-size: .85rem;
  color: var(--bs-secondary-color, #85a2a6);
}
/* لژیوند سه دسته در حالت راهنما */
.hh-search-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: .6rem;
}

/* چیپ‌های دسته قابل کلیک برای محدود کردن جستجو */
.hh-search-legend-btn {
  cursor: pointer;
  font-family: inherit;
}
.hh-search-legend-btn.active {
  outline: 2px solid currentColor;
  outline-offset: 1px;
  font-weight: 700;
}

/* تبلت و دسکتاپ: باکس داخل نوبار - با اضافه‌شدن آیتم‌های بیشتر به منو، عرض کاهش یافت */
@media (min-width: 768px) {
  .hh-search { position: relative; }
  .hh-search-box { width: 150px; }
}
/* دسکتاپ: باکس با فوکوس پهن‌تر می‌شود */
@media (min-width: 992px) {
  .hh-search-box { width: 190px; }
  .hh-search-box:focus-within { width: 280px; }
}
@media (min-width: 1200px) {
  .hh-search-box { width: 215px; }
  .hh-search-box:focus-within { width: 320px; }
}

/* موبایل: پنل تمام‌عرض از بالای صفحه */
@media (max-width: 767.98px) {
  .hh-search {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 2001;
    padding: .75rem .875rem;
    background: var(--bs-card-bg, #fff);
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .12);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
  }
  .hh-search-wrap.hh-search-open .hh-search {
    transform: none;
    visibility: visible;
  }

  /* کارت تمام‌عرض زیر باکس */
  .hh-search-card {
    position: static;
    width: 100%;
    margin-top: .625rem;
    border: 0;
    box-shadow: none;
    transform: none;
    display: none;
  }
  .hh-search-card.show { display: block; opacity: 1; visibility: visible; }
  .hh-search-card-body {
    padding: .5rem .25rem;
    max-height: calc(100dvh - 7.5rem);
  }

  /* بک‌دراپ پشت پنل موبایل */
  .hh-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 30, 34, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .hh-search-wrap.hh-search-open .hh-search-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

/* چیپ دامنه جستجو (هشتگ/موضوع/مبحث) داخل باکس */
.hh-search-scope {
  display: none;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  max-width: 40%;
  padding: .2rem .3rem .2rem .55rem;
  border-radius: 50rem;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-search-has-scope .hh-search-scope { display: inline-flex; }

/* دکمه حذف چیپ دامنه */
.hh-search-scope-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  color: inherit;
  font-size: .65rem;
  cursor: pointer;
}
.hh-search-scope-clear:hover { background: rgba(0, 0, 0, .18); }

/* غیرفعال‌سازی انیمیشن‌ها با تنظیم کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .hh-search,
  .hh-search-box,
  .hh-search-card,
  .hh-search-backdrop,
  .hh-search-item { transition: none !important; }
}

/* صفحه نتایج جستجو (hh-sr-*) */
.hh-sr-hero {
  background: linear-gradient(135deg, #026779 0%, #037891 100%);
  color: #fff;
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 .5rem 1.75rem rgba(3, 120, 145, .28);
  max-width: 900px;
  margin: 0 auto 1.75rem;
}

/* چیدمان داخلی هدر */
.hh-sr-hero-inner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* آیکون بزرگ ذره‌بین هدر */
.hh-sr-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 2rem;
}

.hh-sr-hero-title {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: .4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  overflow-wrap: anywhere;
}

.hh-sr-hero-sub {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}

/* چیپ‌های متادیتا هدر (تعداد نتیجه / دامنه) */
.hh-sr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hh-sr-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, .16);
  font-size: .8rem;
  font-weight: 600;
}
.hh-sr-hero-chip-tag { background: rgba(255, 224, 102, .25); }

/* هایلایت زرد عبارت پیدا شده */
.hh-sr-mark {
  background: #ffe066;
  color: #4a3b00;
  padding: 0 .15rem;
  border-radius: .25rem;
  font-weight: 700;
}

/* لیست گروه‌های نتیجه */
.hh-sr-groups {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

/* باکس هر مدل — رنگ اختصاصی هر مدل با متغیرهای hh-sr-accent */
.hh-sr-group {
  --hh-sr-accent: #037891;
  --hh-sr-accent-rgb: 3, 120, 145;
  --hh-sr-accent-dark: #026779;
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #c5e5e8);
  border-top: 3px solid var(--hh-sr-accent);
  border-radius: 1rem;
  box-shadow: 0 .35rem 1.25rem rgba(34, 41, 47, .07);
  overflow: hidden;
}

/* رنگ هر مدل: کتاب/درس/جلسه/دوره هم‌رنگ صفحات خودشان؛ استاد/خبر/گالری رنگ متمایز */
.hh-sr-group--coursesession { --hh-sr-accent: #037891; --hh-sr-accent-rgb: 3, 120, 145;  --hh-sr-accent-dark: #026779; }
.hh-sr-group--booklesson    { --hh-sr-accent: #1c95a8; --hh-sr-accent-rgb: 28, 149, 168; --hh-sr-accent-dark: #037891; }
.hh-sr-group--book          { --hh-sr-accent: #0a8b85; --hh-sr-accent-rgb: 10, 139, 133; --hh-sr-accent-dark: #08706b; }
.hh-sr-group--course        { --hh-sr-accent: #169a96; --hh-sr-accent-rgb: 22, 154, 150; --hh-sr-accent-dark: #0e7c78; }
.hh-sr-group--teacher       { --hh-sr-accent: #b5750d; --hh-sr-accent-rgb: 181, 117, 13; --hh-sr-accent-dark: #8f5c0a; }
.hh-sr-group--news          { --hh-sr-accent: #c0564a; --hh-sr-accent-rgb: 192, 86, 74;  --hh-sr-accent-dark: #9c443a; }
.hh-sr-group--fileresource  { --hh-sr-accent: #5b8def; --hh-sr-accent-rgb: 91, 141, 239; --hh-sr-accent-dark: #3f6fd8; }

/* هدر باکس گروه */
.hh-sr-group-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.25rem;
  background: rgba(var(--hh-sr-accent-rgb), .07);
  border-bottom: 1px solid rgba(var(--hh-sr-accent-rgb), .14);
}
.hh-sr-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: .7rem;
  background: rgba(var(--hh-sr-accent-rgb), .12);
  color: var(--hh-sr-accent);
  font-size: 1.25rem;
}
.hh-sr-group-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--hh-sr-accent-dark);
}
.hh-sr-group-count {
  margin-inline-start: auto;
  padding: .15rem .7rem;
  border-radius: 50rem;
  background: rgba(var(--hh-sr-accent-rgb), .12);
  color: var(--hh-sr-accent-dark);
  font-size: .75rem;
  font-weight: 700;
}

/* آیتم‌های داخل هر گروه */
.hh-sr-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}
.hh-sr-item + .hh-sr-item { border-top: 1px dashed var(--bs-border-color, #e3f0f1); }
.hh-sr-item:hover { background: rgba(var(--hh-sr-accent-rgb), .05); color: inherit; }

.hh-sr-item-body { min-width: 0; flex: 1 1 auto; }
.hh-sr-item-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--bs-heading-color, #103d45);
  margin-bottom: .2rem;
  overflow-wrap: anywhere;
}
.hh-sr-item-snippet {
  font-size: .82rem;
  line-height: 1.9;
  color: var(--bs-secondary-color, #739699);
  overflow-wrap: anywhere;
}
.hh-sr-item-arrow {
  flex-shrink: 0;
  color: var(--hh-sr-accent);
  font-size: 1.1rem;
  transition: transform .15s ease;
}
.hh-sr-item:hover .hh-sr-item-arrow { transform: translateX(-4px); }

/* لودر Ajax انتهای گروه — ادامه نتایج با اسکرول لود می‌شود */
.hh-sr-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border-top: 1px solid var(--bs-border-color, #e3f0f1);
  font-size: .78rem;
  color: var(--hh-sr-accent-dark);
}
.hh-sr-load-more .spinner-border {
  width: .95rem;
  height: .95rem;
  color: var(--hh-sr-accent);
}

/* حالت بدون نتیجه / بدون عبارت */
.hh-sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 3.5rem 1rem;
  text-align: center;
}
.hh-sr-empty i {
  font-size: 3rem;
  color: #037891;
  opacity: .5;
}
.hh-sr-empty p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bs-heading-color, #103d45);
}

/* موبایل: هدر و باکس‌ها فشرده‌تر */
@media (max-width: 575.98px) {
  .hh-sr-hero { padding: 2.25rem 0 2rem; }
  .hh-sr-hero-icon { width: 50px; height: 50px; font-size: 1.5rem; border-radius: .9rem; }
  .hh-sr-hero-title { font-size: 1.15rem; }
  .hh-sr-group-header { padding: .75rem 1rem; }
  .hh-sr-item { padding: .8rem 1rem; }
}

/* ===== دسترسی سریع صفحه اصلی ===== */
.hh-qn-tile {
  --qn: #037891;
  --qn2: #1c95a8;
  display: flex;
  align-items: center;
  gap: .875rem;
  height: 100%;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-border-color, #c5e5e8);
  box-shadow: 0 4px 14px rgba(3, 120, 145, .06);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hh-qn-tile::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--qn), var(--qn2));
}
.hh-qn-tile:hover,
.hh-qn-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--qn);
  box-shadow: 0 12px 28px rgba(3, 120, 145, .16);
}
.hh-qn-tile:focus-visible {
  outline: 2px solid var(--qn);
  outline-offset: 2px;
}
.hh-qn-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: .875rem;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--qn), var(--qn2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  transition: transform .25s ease;
}
.hh-qn-tile:hover .hh-qn-ico { transform: scale(1.08) rotate(-4deg); }
.hh-qn-body { min-width: 0; }
.hh-qn-title {
  display: block;
  font-weight: 700;
  color: var(--bs-heading-color, #103d45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-qn-sub {
  display: block;
  font-size: .75rem;
  color: var(--bs-secondary-color, #4d7277);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-qn-arrow {
  margin-inline-start: auto;
  color: var(--qn);
  font-size: 1.125rem;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.hh-qn-tile:hover .hh-qn-arrow { opacity: 1; transform: none; }
@media (max-width: 575.98px) {
  .hh-qn-tile { padding: .75rem .625rem; gap: .5rem; }
  .hh-qn-ico { width: 36px; height: 36px; font-size: 17px; border-radius: .7rem; }
  .hh-qn-title { white-space: normal; font-size: .85rem; line-height: 1.45; }
  .hh-qn-sub { white-space: normal; font-size: .7rem; line-height: 1.5; }
  .hh-qn-arrow { display: none; }
}

/* ===== ویترین آموزشی صفحه اصلی ===== */
.hh-sc { position: relative; overflow: hidden; }
.hh-sc::before,
.hh-sc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hh-sc::before {
  width: 420px;
  height: 420px;
  top: -80px;
  inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(3, 120, 145, .10), transparent 70%);
}
.hh-sc::after {
  width: 380px;
  height: 380px;
  bottom: -100px;
  inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(10, 139, 133, .10), transparent 70%);
}
.hh-sc-lead {
  font-weight: 800;
  font-size: 1.375rem;
  color: #037891;
}
html.dark-style .hh-sc-lead { color: #1c95a8; }
.hh-sc-intro { max-width: 640px; margin-inline: auto; }
.hh-sc-panel {
  --sc: 3, 120, 145;
  --scHex: #037891;
  background: var(--bs-card-bg, #fff);
  border: 1px solid rgba(var(--sc), .18);
  border-radius: 1.25rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(var(--sc), .07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hh-sc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--scHex), transparent 75%);
}
.hh-sc-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(var(--sc), .14);
}
.hh-sc-head {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.25rem;
}
.hh-sc-head-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  font-size: 24px;
  color: var(--scHex);
  background: rgba(var(--sc), .10);
  box-shadow: inset 0 0 0 1px rgba(var(--sc), .18);
}
.hh-sc-head-text { min-width: 0; }
.hh-sc-head-title {
  margin-bottom: .125rem;
  font-weight: 800;
  color: var(--bs-heading-color, #103d45);
}
.hh-sc-head-sub {
  display: block;
  font-size: .8125rem;
  color: var(--bs-secondary-color, #4d7277);
}
.hh-sc-more {
  margin-inline-start: auto;
  flex-shrink: 0;
  padding: .375rem .875rem;
  border-radius: 2rem;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--scHex);
  background: rgba(var(--sc), .08);
  transition: background-color .25s ease, color .25s ease;
}
.hh-sc-more:hover { background: var(--scHex); color: #fff; }
.hh-sc-more i { font-size: .9375rem; vertical-align: -2px; }
.hh-sc-book { display: block; text-align: center; }
.hh-sc-book-cover {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: .875rem;
  overflow: hidden;
  margin-bottom: .625rem;
  background: rgba(var(--sc), .06);
  border: 1px solid rgba(var(--sc), .15);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.hh-sc-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .375rem;
  transition: transform .35s ease;
}
.hh-sc-book:hover .hh-sc-book-cover {
  border-color: var(--scHex);
  box-shadow: 0 10px 24px rgba(var(--sc), .22);
}
.hh-sc-book:hover .hh-sc-book-cover img { transform: scale(1.05); }
.hh-sc-book-title {
  display: block;
  font-weight: 700;
  font-size: .875rem;
  color: var(--bs-heading-color, #103d45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-sc-book-author {
  display: block;
  font-size: .75rem;
  color: var(--bs-secondary-color, #4d7277);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-sc-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border-radius: .875rem;
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.hh-sc-row + .hh-sc-row { margin-top: .5rem; }
.hh-sc-row:hover {
  background: rgba(var(--sc), .06);
  border-color: rgba(var(--sc), .2);
  transform: translateX(-4px);
}
.hh-sc-row-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: .75rem;
  font-weight: 800;
  color: var(--scHex);
  background: rgba(var(--sc), .10);
}
.hh-sc-row-play {
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--scHex), rgba(var(--sc), .7));
}
.hh-sc-row-body { min-width: 0; }
.hh-sc-row-title {
  display: block;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--bs-heading-color, #103d45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-sc-row-meta {
  display: block;
  font-size: .75rem;
  color: var(--bs-secondary-color, #4d7277);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-sc-row-meta i { font-size: .8125rem; vertical-align: -2px; }
.hh-sc-row-dot { margin-inline: .25rem; }
.hh-sc-row-arrow {
  margin-inline-start: auto;
  flex-shrink: 0;
  color: var(--scHex);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.hh-sc-row:hover .hh-sc-row-arrow { opacity: 1; transform: none; }

/* ===== فوتر با رنگ سازمانی ===== */
.hh-footer .footer-top {
  background: linear-gradient(150deg, #026779 0%, #037891 45%, #08828b 75%, #0a8b85 100%);
}
.hh-footer .footer-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hh-footer .footer-top::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -220px;
  inset-inline-end: -140px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 184, 183, .30), transparent 70%);
  pointer-events: none;
}
.hh-footer .footer-link:hover { opacity: 1; color: #fff; }
.hh-footer .footer-bottom { background-color: #026779; }
.hh-footer .footer-bottom-text { color: rgba(255, 255, 255, .78); }
.hh-footer .footer-form label { color: #fff; }
.hh-footer .footer-form small { color: rgba(255, 255, 255, .72) !important; }
.hh-footer .footer-form input {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.hh-footer .footer-form input:hover:not([disabled]):not([focus]) {
  border-color: rgba(255, 255, 255, .7);
}
.hh-footer .footer-form input::placeholder { color: rgba(255, 255, 255, .55); }
.hh-footer .footer-form .btn {
  background: #fff;
  border-color: #fff;
  color: #037891;
  font-weight: 700;
}
.hh-footer .footer-form .btn:hover,
.hh-footer .footer-form .btn:focus,
.hh-footer .footer-form .btn:active {
  background: #e7f6f7 !important;
  border-color: #e7f6f7 !important;
  color: #026779 !important;
}
.hh-footer #footer-stats .text-success { color: #7de3b1 !important; }

/* ===== مدرن‌سازی بخش‌های اساتید، درباره و تماس ===== */
.hh-team .hh-teacher-card {
  border-radius: 1.25rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hh-team .hh-teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(3, 120, 145, .15) !important;
}
.hh-team .hh-teacher-card .team-image-box {
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(165deg, #e7f6f7 0%, #cfeaec 100%) !important;
}
html.dark-style .hh-team .hh-teacher-card .team-image-box {
  background: linear-gradient(165deg, #225962 0%, #16424c 100%) !important;
}
.hh-team .hh-teacher-card .card-body { border-radius: 0 0 1.25rem 1.25rem; }
.hh-about .about-image img {
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(6, 48, 56, .18);
}
.hh-about .about-quote {
  box-shadow: 0 8px 24px rgba(3, 120, 145, .07);
  border-radius: .875rem;
}
.hh-contact .card,
.hh-contact .contact-img-box {
  border-radius: 1.25rem;
  overflow: hidden;
}
.hh-contact .card {
  border: 1px solid var(--bs-border-color, #c5e5e8);
  box-shadow: 0 10px 32px rgba(3, 120, 145, .08);
}
.hh-contact .btn-primary { padding-inline: 2rem; }

/* ===== افکت نمایش تدریجی هنگام اسکرول ===== */
html.hh-js .hh-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.hh-js .hh-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.hh-js .hh-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hh-qn-tile,
  .hh-sc-panel,
  .hh-sc-row,
  .hh-team .hh-teacher-card { transition: none; }
}

/* ===== تالار گفتگو (Forum) — طراحی رنگی و مدرن ===== */

/* پالت رنگی متنوع برای اتاق‌ها و لهجه‌های رنگی (گرم و سرد، جذاب و باکلاس) */
.hh-forum-scope {
  --hh-fr-primary: #037891;
  --hh-fr-warm: #ff7a59;
  --hh-fr-rose: #ff4d6d;
  --hh-fr-amber: #ff9f43;
  --hh-fr-violet: #8f7bff;
  --hh-fr-teal: #0a8b85;
}

/* هیروی تالار گفتگو — گرادیانت سه‌رنگ زنده */
.hh-forum-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(120deg, #026779 0%, #037891 38%, #0a8b85 68%, #169a96 100%);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(3, 120, 145, .32);
}
.hh-forum-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 159, 67, .40) 0, transparent 38%),
    radial-gradient(circle at 92% 20%, rgba(255, 77, 109, .32) 0, transparent 40%),
    radial-gradient(circle at 82% 92%, rgba(143, 123, 255, .38) 0, transparent 45%);
  pointer-events: none;
}
.hh-forum-hero-body { position: relative; padding: 1.9rem 1.9rem; }
.hh-forum-hero-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
  font-size: 33px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 159, 67, .95), rgba(255, 77, 109, .9));
  box-shadow: 0 .5rem 1.2rem rgba(255, 77, 109, .4);
}
.hh-forum-hero-subtitle { color: #eaf7f7; font-size: .93rem; }
.hh-forum-hero-stats { display: flex; gap: .75rem; }
.hh-forum-hero-stat {
  min-width: 86px;
  padding: .6rem .85rem;
  text-align: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
}
.hh-forum-hero-stat strong { display: block; font-size: 1.2rem; color: #fff; }
.hh-forum-hero-stat span { font-size: .74rem; color: #eaf7f7; }

/* کارت هر اتاق — لهجه رنگی از متغیر --hh-ac (چرخشی از ویو) */
.hh-forum-room-card {
  --hh-ac: #037891;
  --hh-ac2: #0a8b85;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem 1.05rem 1.1rem;
  border-radius: 1.15rem;
  background: var(--bs-card-bg, #fff);
  border: 1px solid #d9ecee;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hh-forum-room-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--hh-ac), var(--hh-ac2));
  opacity: .9;
}
.hh-forum-room-card:hover {
  transform: translateY(-4px);
  border-color: var(--hh-ac);
  box-shadow: 0 .85rem 2rem color-mix(in srgb, var(--hh-ac) 22%, transparent);
  color: inherit;
}
.hh-forum-room-card--pinned { background:
    linear-gradient(90deg, color-mix(in srgb, var(--hh-ac) 8%, transparent) 0%, transparent 40%), var(--bs-card-bg, #fff); }
.hh-forum-room-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.05rem;
  font-size: 27px;
  color: #fff;
  background: linear-gradient(135deg, var(--hh-ac), var(--hh-ac2));
  box-shadow: 0 .4rem 1rem color-mix(in srgb, var(--hh-ac) 35%, transparent);
}
.hh-forum-room-icon--head { color: #fff; }
.hh-forum-room-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.hh-forum-room-title { font-weight: 700; font-size: 1.04rem; color: #103d45; transition: color .18s ease; }
.hh-forum-room-card:hover .hh-forum-room-title { color: var(--hh-ac); }
.hh-forum-room-subtitle {
  font-size: .82rem;
  color: #4d7277;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.hh-forum-room-stats { display: flex; gap: 1rem; flex: 0 0 auto; }
.hh-forum-room-stat { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.hh-forum-room-stat strong { color: var(--hh-ac); font-size: 1rem; }
.hh-forum-room-stat small { color: #90a9ac; font-size: .68rem; }
.hh-forum-room-last { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; min-width: 150px; }
.hh-forum-room-last-info { display: flex; flex-direction: column; }
.hh-forum-room-last-info span { font-size: .8rem; font-weight: 600; color: #103d45; }
.hh-forum-room-last-info small { font-size: .72rem; color: #90a9ac; }
.hh-forum-room-last-info--empty span { color: var(--hh-ac); }
.hh-forum-room-arrow { color: var(--hh-ac); font-size: 21px; flex: 0 0 auto; transition: transform .2s ease; opacity: .7; }
.hh-forum-room-card:hover .hh-forum-room-arrow { transform: translateX(-5px); opacity: 1; }

.hh-forum-badge-pinned { background: rgba(255, 159, 67, .16); color: #d97a12; font-size: .7rem; }
.hh-forum-badge-closed { background: rgba(130, 134, 139, .16); color: #6b7280; font-size: .7rem; }

.hh-forum-empty { color: #4d7277; }
.hh-forum-empty > i {
  font-size: 54px;
  background: linear-gradient(135deg, #037891, #ff9f43);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* سربرگ اتاق */
.hh-forum-room-head {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  /* رنگ سربرگ اتاق دقیقا همان رنگ کارت همان اتاق در فهرست /Forum است */
  background: linear-gradient(125deg, var(--hh-ac, #037891) 0%, var(--hh-ac2, #0a8b85) 100%);
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: 0 .7rem 1.8rem color-mix(in srgb, var(--hh-ac, #037891) 30%, transparent);
}
.hh-forum-room-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .22) 0, transparent 40%),
    radial-gradient(circle at 12% 100%, rgba(0, 0, 0, .12) 0, transparent 55%);
  pointer-events: none;
}
.hh-forum-room-head--embed { border-radius: 1.1rem; }
.hh-forum-room-head-body { position: relative; padding: 1.4rem 1.5rem; }
.hh-forum-room-head-title { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.hh-forum-room-head-subtitle {
  font-size: .88rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, .92);
  margin-top: .35rem;
}
.hh-forum-room-head .hh-forum-room-icon--head {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: none;
}

.hh-forum-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border-radius: 50rem;
  font-size: .77rem;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  text-decoration: none;
}
.hh-forum-chip i { font-size: 15px; }
a.hh-forum-chip--link:hover { background: rgba(255, 255, 255, .30); color: #fff; }

.hh-forum-rules-toggle {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .16);
  border-radius: 50rem;
  padding: .35rem .95rem;
  margin-top: .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  transition: background .15s ease;
}
.hh-forum-rules-toggle:hover { background: rgba(255, 255, 255, .26); }
.hh-forum-rules {
  margin-top: .7rem;
  padding: .95rem 1.1rem .95rem 1.1rem;
  font-size: .83rem;
  line-height: 2;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-inline-start: 3px solid rgba(255, 255, 255, .75);
  border-radius: .75rem;
  white-space: pre-line;
  backdrop-filter: blur(2px);
}

/* کامپوزر ارسال گفتگو */
.hh-forum-composer {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1.05rem 1.2rem;
  border-radius: 1.15rem;
  background: var(--bs-card-bg, #fff);
  border: 1px solid #d9ecee;
  box-shadow: 0 .5rem 1.3rem rgba(3, 120, 145, .07);
}
.hh-forum-composer .hh-forum-avatar { border-color: rgba(255, 122, 89, .35); }

.hh-forum-login-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.2rem;
  border-radius: 1.15rem;
  font-size: .9rem;
  color: #026779;
  background: linear-gradient(120deg, rgba(3, 120, 145, .08), rgba(255, 159, 67, .09));
  border: 1px dashed #7bc4c9;
}
.hh-forum-login-cta > i { font-size: 23px; color: #ff9f43; }
.hh-forum-login-cta--closed { color: #6b7280; background: rgba(130, 134, 139, .08); border-color: rgba(130, 134, 139, .45); }
.hh-forum-login-cta--closed > i { color: #6b7280; }

.hh-forum-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(3, 120, 145, .22);
  box-shadow: 0 .25rem .6rem rgba(3, 120, 145, .12);
}
.hh-forum-avatar--sm { width: 36px; height: 36px; }

/* ==========================================================================
   صفحه پخش زنده (hh-live-*) — پس‌زمینه صفحه دست‌نخورده (همان تم روشن/تاریک سایت)
   + بخش تجربهٔ کاربران با اسلایدر کارت‌های هم‌اندازه
   ========================================================================== */

.hh-live { position: relative; }

/* سرتیتر */
.hh-live-head { text-align: center; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.hh-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .3px;
  color: #fff;
  background: linear-gradient(90deg, #ff4c51, #ff6b6b);
  box-shadow: 0 .5rem 1.4rem rgba(255, 76, 81, .3);
}
.hh-live-badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  animation: hh-live-pulse 1.6s infinite;
}
@keyframes hh-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.hh-live-title {
  margin: 1rem 0 .5rem;
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  line-height: 1.4;
  background: linear-gradient(90deg, #026779 0%, #037891 45%, #1c95a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hh-live-subtitle { margin: 0; color: var(--bs-secondary-color, #6b7280); font-size: clamp(.88rem, 2.2vw, 1rem); }

/* آمار زنده — هماهنگ با توکن‌های Bootstrap/Vuexy (خودکار هماهنگ با تم روشن/تاریک سایت) */
.hh-live-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.hh-live-stat {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1rem;
  border-radius: .9rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hh-live-stat:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.1rem rgba(3, 120, 145, .12); }
.hh-live-stat-ic {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(3, 120, 145, .12);
  color: #037891; font-size: .95rem;
}
.hh-live-stat-ic--online { background: rgba(40, 199, 111, .15); color: #28c76f; animation: hh-live-pulse 1.8s infinite; }
.hh-live-stat-num { font-weight: 800; font-size: 1.05rem; min-width: 1.4rem; text-align: center; }
.hh-live-stat-lbl { font-size: .78rem; color: var(--bs-secondary-color, #6b7280); }
html.dark-style .hh-live-stat-ic { background: rgba(28, 149, 168, .22); color: #5cb8b7; }
html.dark-style .hh-live-stat-ic--online { background: rgba(40, 199, 111, .2); color: #7bf0b4; }

/* پخش‌کننده ویدیو */
.hh-live-player { position: relative; max-width: 960px; margin: 0 auto; }
.hh-live-player-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 1rem 2.75rem rgba(3, 120, 145, .18);
  background: #04252c;
}
.hh-live-player-ratio { display: block; padding-top: 56.25%; }
.hh-live-player-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

/* کارت‌های اطلاعات — کوچک و همیشه سه‌تایی کنار هم (مثل قبل)، فقط با آیکون گرادیانی زیباتر */
.hh-live-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.hh-live-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .9rem .75rem;
  text-align: center;
  border-radius: .9rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hh-live-feature:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.1rem rgba(3, 120, 145, .12); }
.hh-live-feature-ic {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: .5rem;
  border-radius: 10px; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, #037891, #1c95a8);
}
.hh-live-feature h3 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.hh-live-feature p { font-size: .78rem; line-height: 1.7; color: var(--bs-secondary-color, #6b7280); margin: 0; }

@media (max-width: 767.98px) {
  .hh-live-features { grid-template-columns: 1fr; }
}

/* ---------- بخش تجربهٔ کاربران ---------- */
.hh-live-exp {
  --hh-ex-primary: #037891;
  --hh-ex-primary-dark: #026779;
  --hh-ex-card: #ffffff;
  --hh-ex-text: #103d45;
  --hh-ex-muted: #4d7277;
  --hh-ex-border: #d3ecef;
  --hh-ex-star: #ffb400;
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(700px 340px at 88% 0%, rgba(3, 120, 145, .06), transparent 60%),
    linear-gradient(180deg, #f4fbfb 0%, #eaf7f6 100%);
}

/* سرتیتر بخش تجربه‌ها */
.hh-live-exp-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.hh-live-exp-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  color: var(--hh-ex-primary-dark);
  background: rgba(3, 120, 145, .1);
  border: 1px solid rgba(3, 120, 145, .18);
}
.hh-live-exp-title {
  margin: .9rem 0 .5rem;
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  color: var(--hh-ex-text);
}
.hh-live-exp-lead { color: var(--hh-ex-muted); font-size: clamp(.9rem, 2.2vw, 1rem); line-height: 1.9; margin-bottom: 1.4rem; }
.hh-live-exp-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; border: 0; border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--hh-ex-primary) 0%, #1c95a8 100%);
  box-shadow: 0 .7rem 1.6rem rgba(3, 120, 145, .3);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.hh-live-exp-cta:hover { transform: translateY(-2px); box-shadow: 0 .9rem 2rem rgba(3, 120, 145, .42); color: #fff; }

/* حالت خالی */
.hh-live-exp-empty {
  text-align: center; max-width: 460px; margin: 0 auto;
  padding: 2.5rem 1.5rem; border-radius: 1.25rem;
  background: var(--hh-ex-card); border: 1px dashed var(--hh-ex-border);
  color: var(--hh-ex-muted);
}
.hh-live-exp-empty i { font-size: 2.6rem; color: var(--hh-ex-primary); opacity: .7; }
.hh-live-exp-empty p { margin: .8rem 0 0; line-height: 1.9; }

/* اسلایدر تجربه‌ها */
.hh-live-exp-slider { position: relative; }
.hh-live-testi-swiper { padding: .5rem .25rem 1rem; }
.hh-live-testi-swiper .swiper-slide { height: auto; display: flex; }

/* ارتفاع کارت‌ها همیشه ثابت است — دیگر بین کارت‌ها فاصله خالی نامتوازن ایجاد نمی‌شود؛
   متن طولانی به‌جای بزرگ‌کردن کارت، در همان کارت اسکرول می‌خورد */
.hh-live-testi {
  position: relative;
  width: 100%;
  height: 302px;
  display: flex; flex-direction: column;
  padding: 1.4rem 1.3rem 1.15rem;
  border-radius: 1.25rem;
  background: var(--hh-ex-card);
  border: 1px solid var(--hh-ex-border);
  box-shadow: 0 .6rem 1.6rem rgba(3, 120, 145, .08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hh-live-testi::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #037891, #1c95a8, #5cb8b7);
}
.hh-live-testi:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.2rem rgba(3, 120, 145, .15); }

/* سربرگ کارت — آواتار/نام/زمان همیشه بالا و ثابت */
.hh-live-testi-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; flex: 0 0 auto; }
.hh-live-testi-avatar {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #037891, #1c95a8);
  color: #fff; font-weight: 700;
}
.hh-live-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hh-live-testi-meta { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; flex: 1 1 auto; }
.hh-live-testi-name { font-weight: 700; color: var(--hh-ex-text); font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-live-testi-time { font-size: .72rem; color: var(--hh-ex-muted); }
.hh-live-testi-stars { flex: 0 0 auto; display: flex; gap: .08rem; color: #e1e8ea; font-size: .85rem; }
.hh-live-testi-stars .is-on { color: var(--hh-ex-star); }

/* بدنهٔ کارت — تنها بخش اسکرول‌شونده (نقل‌قول + پاسخ ادمین)، با اسکرول‌بار نازک هماهنگ با پالت */
.hh-live-testi-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-inline-end: .45rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hh-ex-primary) transparent;
}
.hh-live-testi-body::-webkit-scrollbar { width: 5px; }
.hh-live-testi-body::-webkit-scrollbar-thumb { background: var(--hh-ex-primary); border-radius: 10px; }
.hh-live-testi-text {
  margin: 0 0 .4rem;
  color: var(--hh-ex-text); font-size: .9rem; line-height: 1.85; white-space: pre-line;
}

/* پاسخ ادمین درون بدنهٔ کارت */
.hh-live-testi-reply {
  margin-top: .75rem; padding: .65rem .8rem;
  border-radius: .8rem;
  background: rgba(3, 120, 145, .06);
  border-inline-start: 3px solid var(--hh-ex-primary);
}
.hh-live-testi-reply-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 700; color: var(--hh-ex-primary-dark);
  margin-bottom: .25rem;
}
.hh-live-testi-reply-badge i { color: var(--hh-ex-primary); }
.hh-live-testi-reply p { margin: 0; font-size: .82rem; line-height: 1.8; color: var(--hh-ex-text); }
.hh-live-testi-replybtn {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .7rem;
  padding: .3rem .8rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; cursor: pointer;
  color: var(--hh-ex-primary-dark); background: transparent;
  border: 1px solid rgba(3, 120, 145, .3);
  transition: background .18s ease, color .18s ease;
}
.hh-live-testi-replybtn:hover { background: var(--hh-ex-primary); color: #fff; border-color: var(--hh-ex-primary); }

/* کنترل‌های اسلایدر */
.hh-live-testi-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.3rem; }
.hh-live-testi-nav {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem;
  color: #fff; background: linear-gradient(135deg, #037891, #1c95a8);
  box-shadow: 0 .5rem 1.2rem rgba(3, 120, 145, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hh-live-testi-nav:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.6rem rgba(3, 120, 145, .42); }
.hh-live-testi-pagination { display: flex; align-items: center; gap: .4rem; width: auto; }
.hh-live-testi-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; background: #9bc7cd; opacity: .6; transition: width .2s ease, opacity .2s ease;
}
.hh-live-testi-pagination .swiper-pagination-bullet-active { width: 22px; border-radius: 5px; opacity: 1; background: #037891; }

/* ---------- مودال‌های صفحه پخش زنده ---------- */
.hh-live-modal .modal-content {
  border: 0; border-radius: 1.3rem; overflow: hidden;
  box-shadow: 0 2rem 4rem rgba(3, 61, 69, .35);
}
.hh-live-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; color: #fff;
  background: linear-gradient(120deg, #026779 0%, #037891 55%, #1c95a8 100%);
}
.hh-live-modal-head h5 { margin: 0; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; }
.hh-live-modal .modal-body { padding: 1.4rem; background: #fff; }
.hh-live-modal-label { display: block; font-weight: 700; font-size: .9rem; color: #103d45; margin-bottom: .55rem; }
.hh-live-modal-textarea {
  width: 100%; padding: .85rem 1rem;
  border-radius: .9rem; border: 1px solid #c5e5e8; background: #f8fdfd;
  color: #103d45; font-size: .95rem; line-height: 1.9; resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hh-live-modal-textarea:focus { outline: 0; border-color: #037891; box-shadow: 0 0 0 3px rgba(3, 120, 145, .15); }
.hh-live-reply-quote {
  margin: 0 0 1rem; padding: .8rem 1rem; border-radius: .8rem;
  background: rgba(3, 120, 145, .06); border-inline-start: 3px solid #037891;
  font-size: .86rem; line-height: 1.9; color: #4d7277;
}
.hh-live-modal-foot { display: flex; justify-content: flex-end; gap: .7rem; padding: 1rem 1.4rem 1.3rem; background: #fff; }
.hh-live-btn-ghost {
  padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: #4d7277;
  background: transparent; border: 1px solid #c5e5e8;
}
.hh-live-btn-ghost:hover { background: #eef8f9; }
.hh-live-btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(135deg, #037891, #1c95a8);
  box-shadow: 0 .5rem 1.3rem rgba(3, 120, 145, .32);
  transition: transform .18s ease;
}
.hh-live-btn-primary:hover { transform: translateY(-2px); }

/* ورودی امتیاز ستاره‌ای (چیدمان معکوس برای راست‌به‌چپ) */
.hh-live-star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.hh-live-star-input i {
  font-size: 1.9rem; cursor: pointer; color: #dbe6e8;
  transition: transform .12s ease, color .12s ease;
}
.hh-live-star-input i.is-on { color: #ffb400; }
.hh-live-star-input i:hover { transform: scale(1.15); }

/* ---------- تم تیره ---------- */
html.dark-style .hh-live-exp {
  --hh-ex-primary: #1c95a8;
  --hh-ex-primary-dark: #5cb8b7;
  --hh-ex-card: #2c474b;
  --hh-ex-text: #cfe4e5;
  --hh-ex-muted: #93b4b8;
  --hh-ex-border: #43585b;
  background:
    radial-gradient(700px 340px at 88% 0%, rgba(28, 149, 168, .12), transparent 60%),
    linear-gradient(180deg, #25393c 0%, #223438 100%);
}
html.dark-style .hh-live-testi { box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35); }
html.dark-style .hh-live-testi-stars { color: #4a5f63; }
html.dark-style .hh-live-testi-reply { background: rgba(28, 149, 168, .12); }
html.dark-style .hh-live-testi-pagination .swiper-pagination-bullet-active { background: #1c95a8; }
html.dark-style .hh-live-modal .modal-body,
html.dark-style .hh-live-modal-foot { background: #2c474b; }
html.dark-style .hh-live-modal-label { color: #cfe4e5; }
html.dark-style .hh-live-modal-textarea { background: #25393c; border-color: #43585b; color: #cfe4e5; }
html.dark-style .hh-live-reply-quote { background: rgba(28, 149, 168, .12); color: #93b4b8; }
html.dark-style .hh-live-btn-ghost { color: #93b4b8; border-color: #43585b; }
html.dark-style .hh-live-btn-ghost:hover { background: #243638; }
html.dark-style .hh-live-star-input i { color: #4a5f63; }

/* کاهش حرکت برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
  .hh-live-badge-dot, .hh-live-stat-ic--online { animation: none; }
}

/* موبایل */
@media (max-width: 575.98px) {
  .hh-live-stat { padding: .5rem .8rem; gap: .4rem; }
  .hh-live-stat-ic { width: 30px; height: 30px; font-size: .95rem; }
  .hh-live-stat-num { font-size: 1rem; }
  .hh-live-testi { height: 280px; padding: 1.2rem 1.1rem 1rem; }
}

/* پست ریشه در برابر پاسخ — تمایز واضح */
.hh-forum-post-card {
  position: relative;
  padding: 1rem 1.2rem;
  border-radius: 1.15rem;
  background: var(--bs-card-bg, #fff);
  border: 1px solid #dbeced;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hh-forum-post-card--root {
  border: 1px solid #037891;
  border-inline-start: 3px solid #169a96; 
  border-radius: 1.15rem;
}
.hh-forum-post-card:hover { box-shadow: 0 .5rem 1.3rem rgba(3, 120, 145, .10); transform: translateY(-1px); }
.hh-forum-post-card--reply {
  background: linear-gradient(180deg, rgba(255, 159, 67, .05), rgba(255, 122, 89, .02));
  border: 1px solid #f2ddc9;
  border-inline-start: 3px solid #ff9f43;
}
.hh-forum-post:target > .hh-forum-post-card {
  border-color: #037891;
  box-shadow: 0 0 0 .22rem rgba(3, 120, 145, .18);
}

.hh-forum-post-head { display: flex; align-items: flex-start; gap: .75rem; }
.hh-forum-post-avatar-wrap { position: relative; flex: 0 0 auto; }
.hh-forum-reply-tag {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .1rem .55rem;
  border-radius: 50rem;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff9f43, #ff7a59);
}
.hh-forum-post-author { font-weight: 700; font-size: .92rem; color: #103d45; }
.hh-forum-post-time, .hh-forum-post-edited {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .73rem;
  color: #90a9ac;
}
.hh-forum-post-edited { color: #d97a12; }
.hh-forum-post-time i, .hh-forum-post-edited i { font-size: 13px; }
.hh-forum-post-tools { display: flex; gap: .3rem; }
.hh-forum-tool {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .6rem;
  font-size: 15px;
  color: #4d7277;
  background: rgba(3, 120, 145, .07);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.hh-forum-tool:hover { color: #fff; background: #037891; transform: translateY(-1px); }
.hh-forum-tool--danger:hover { background: #ff4d6d; }

.hh-forum-post-text {
  margin: .7rem 0 0 0;
  padding-inline-start: calc(44px + .75rem);
  font-size: .93rem;
  line-height: 2.05;
  color: #2f5157;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hh-forum-post-card--reply .hh-forum-post-text { padding-inline-start: calc(36px + .75rem); }
/* محتوای غنی CKEditor داخل پست */
.hh-forum-rich :is(p, ul, ol, blockquote) { margin: 0 0 .5rem; }
.hh-forum-rich ul, .hh-forum-rich ol { padding-inline-start: 1.4rem; }
.hh-forum-rich blockquote {
  border-inline-start: 3px solid #5cb8b7;
  margin-inline: 0;
  padding: .3rem .9rem;
  background: rgba(3, 120, 145, .05);
  border-radius: .4rem;
  color: #4d7277;
}
.hh-forum-rich a { color: #037891; text-decoration: underline; }

.hh-forum-inline-form { margin-top: .8rem; padding-inline-start: calc(44px + .75rem); }
.hh-forum-post-card--reply .hh-forum-inline-form { padding-inline-start: calc(36px + .75rem); }
.hh-forum-post-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .7rem;
  padding-inline-start: calc(44px + .75rem);
}
.hh-forum-post-card--reply .hh-forum-post-actions { padding-inline-start: calc(36px + .75rem); }
.hh-forum-action {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border: 0;
  border-radius: 50rem;
  font-size: .78rem;
  font-weight: 500;
  color: #4d7277;
  background: rgba(3, 120, 145, .06);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.hh-forum-action i { font-size: 15px; }
button.hh-forum-action:hover { transform: translateY(-1px); }
.hh-forum-reply-btn:hover { color: #fff; background: linear-gradient(135deg, #037891, #0a8b85); }
.hh-forum-action--static { background: transparent; color: #90a9ac; }
.hh-forum-like-btn:hover { color: #ff4d6d; background: rgba(255, 77, 109, .12); }
.hh-forum-like-btn.is-liked { color: #fff; background: linear-gradient(135deg, #ff4d6d, #ff7a59); }
.hh-forum-like-btn.is-liked:hover { color: #fff; }

/* درخت پاسخ‌ها با خط اتصال منحنی رنگی */
.hh-forum-replies {
  margin-top: .8rem;
  margin-inline-start: 1.5rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px dashed rgba(255, 159, 67, .5);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.hh-forum-post--depth-2 .hh-forum-replies { border-inline-start-color: rgba(143, 123, 255, .45); }
.hh-forum-post--depth-3 .hh-forum-replies { margin-inline-start: .5rem; padding-inline-start: .6rem; border-inline-start-color: rgba(3, 120, 145, .35); }

/* دکمه‌های اصلی با درخشش گرم */
.hh-forum-btn-glow {
  background: linear-gradient(135deg, #037891, #0a8b85);
  border: none;
  box-shadow: 0 .4rem 1rem rgba(3, 120, 145, .28);
}
.hh-forum-btn-glow:hover { background: linear-gradient(135deg, #026779, #037891); box-shadow: 0 .5rem 1.3rem rgba(3, 120, 145, .38); }

/* کارت دعوت به تالار گفتگو در صفحه دوره/جلسه */
.hh-forum-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.3rem;
  border-radius: 1.15rem;
  background: linear-gradient(120deg, rgba(3, 120, 145, .07), rgba(255, 159, 67, .08));
  border: 1px dashed #7bc4c9;
}
.hh-forum-cta .hh-forum-room-icon { --hh-ac: #037891; --hh-ac2: #0a8b85; }

/* CKEditor سبک داخل فروم */
.hh-forum-post-form .cke { border-radius: .8rem !important; overflow: hidden; border-color: #cfe4e5 !important; }
.hh-forum-post-form .cke_chrome { border-radius: .8rem; }

/* موبایل */
@media (max-width: 767.98px) {
  .hh-forum-hero-stats { width: 100%; justify-content: space-between; }
  .hh-forum-hero-stat { flex: 1 1 0; min-width: 0; }
  .hh-forum-room-card { flex-wrap: wrap; }
  .hh-forum-room-last { min-width: 0; }
  .hh-forum-room-arrow { display: none; }
  .hh-forum-post-text, .hh-forum-post-actions, .hh-forum-inline-form,
  .hh-forum-post-card--reply .hh-forum-post-text,
  .hh-forum-post-card--reply .hh-forum-post-actions,
  .hh-forum-post-card--reply .hh-forum-inline-form { padding-inline-start: 0; }
  .hh-forum-replies { margin-inline-start: .6rem; padding-inline-start: .7rem; }
}

/* ===== حالت تیره ===== */
html.dark-style .hh-forum-room-card,
html.dark-style .hh-forum-composer,
html.dark-style .hh-forum-post-card { background: #2c474b; border-color: #43585b; }
html.dark-style .hh-forum-post-card--reply { background: linear-gradient(180deg, rgba(255, 159, 67, .08), rgba(255, 122, 89, .03)); border-color: #5a4a3a; border-inline-start-color: #ff9f43; }
html.dark-style .hh-forum-room-card:hover { box-shadow: 0 .85rem 2rem rgba(0, 0, 0, .4); }
html.dark-style .hh-forum-room-title,
html.dark-style .hh-forum-post-author,
html.dark-style .hh-forum-room-last-info span { color: #cfe4e5; }
html.dark-style .hh-forum-room-subtitle,
html.dark-style .hh-forum-post-time,
html.dark-style .hh-forum-room-last-info small,
html.dark-style .hh-forum-room-stat small,
html.dark-style .hh-forum-empty { color: #93b4b8; }
html.dark-style .hh-forum-post-text { color: #b8d2d5; }
html.dark-style .hh-forum-rich blockquote { background: rgba(28, 149, 168, .12); color: #93b4b8; }
html.dark-style .hh-forum-rich a { color: #1c95a8; }
html.dark-style .hh-forum-tool { color: #93b4b8; background: rgba(28, 149, 168, .14); }
html.dark-style .hh-forum-tool:hover { color: #fff; background: #1c95a8; }
html.dark-style .hh-forum-tool--danger:hover { background: #ff4d6d; }
html.dark-style .hh-forum-action { color: #93b4b8; background: rgba(28, 149, 168, .12); }
html.dark-style .hh-forum-action--static { background: transparent; }
html.dark-style .hh-forum-login-cta { color: #7fc6cd; background: linear-gradient(120deg, rgba(28, 149, 168, .1), rgba(255, 159, 67, .08)); border-color: #43585b; }
html.dark-style .hh-forum-cta { background: linear-gradient(120deg, rgba(28, 149, 168, .1), rgba(255, 159, 67, .07)); border-color: #43585b; }
html.dark-style .hh-forum-replies { border-inline-start-color: rgba(255, 159, 67, .45); }
html.dark-style .hh-forum-post-form .cke { border-color: #43585b !important; }

/* کوچک‌تر کردن فونت منوی بالایی سایت تا با اضافه‌شدن آیتم «صفورا و طهورا و صبورا» کلمات به خط دوم نیفتند */
.navbar.landing-navbar .navbar-nav .nav-link {
  font-size: .8125rem;
  padding-inline: .65rem;
}
.navbar.landing-navbar .navbar-nav .nav-link,
.navbar.landing-navbar .navbar-nav .nav-link > span {
  white-space: nowrap;
}
@media (max-width: 1199.98px) {
  .navbar.landing-navbar .navbar-nav .nav-link {
    font-size: .78rem;
    padding-inline: .5rem;
  }
}

/* دکمه ورود/ثبت‌نام نوبار: جمع‌وجورتر و همیشه در یک خط */
.hh-navbar-login-btn {
  white-space: nowrap;
  font-size: .8125rem;
  padding-top: .4rem;
  padding-bottom: .4rem;
}

/* ==========================================================================
   صفحه صفورا، طهورا و صبورا (ع) (hh-stt-*)
   ========================================================================== */

/* بخش قهرمان */
.hh-stt-hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(3, 120, 145, .10), transparent 65%),
    linear-gradient(180deg, #f4fbfb 0%, #ffffff 100%);
  overflow: hidden;
}
.hh-stt-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hh-stt-bismillah { margin: 0; font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: #026779; }
.hh-stt-bismillah-sub { font-size: clamp(.9rem, 2vw, 1.05rem); color: #4d7277; font-weight: 600; margin-top: .2rem; }
.hh-stt-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.5rem; padding: .35rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #026779;
  background: #e7f6f7; border: 1px solid #c5e5e8;
}
.hh-stt-title {
  margin: 1rem 0 .6rem; font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.85rem); line-height: 1.5;
  background: linear-gradient(90deg, #026779 0%, #037891 45%, #1c95a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hh-stt-title i { font-style: normal; color: #5cb8b7; -webkit-text-fill-color: #5cb8b7; }
.hh-stt-title small { display: block; font-size: .42em; color: #4d7277; -webkit-text-fill-color: #4d7277; font-weight: 600; margin-top: .35rem; }
.hh-stt-subtitle { color: #4d7277; font-size: clamp(.92rem, 2.2vw, 1.05rem); line-height: 2; margin: 0 auto; max-width: 620px; }

/* کارت عمومی محتوا */
.hh-stt-card {
  position: relative; background: #fff; border: 1px solid #c5e5e8;
  border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 .75rem 2rem rgba(3, 120, 145, .07);
}
.hh-stt-card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #037891, #1c95a8); color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}
.hh-stt-intro-card p { margin: 0; font-size: 1.02rem; line-height: 2.1; color: #103d45; text-align: justify; }

/* سرتیتر بخش‌ها */
.hh-stt-section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.hh-stt-section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.hh-stt-section-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: #0a8b85; margin-bottom: .5rem; }
.hh-stt-section-title { font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.7rem); color: #103d45; margin: 0 0 .5rem; }
.hh-stt-section-lead { color: #4d7277; font-size: .95rem; line-height: 1.9; margin: 0; }

/* گالری سه عکس */
.hh-stt-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hh-stt-gallery-item {
  margin: 0; position: relative; border-radius: 1.1rem; overflow: hidden; aspect-ratio: 3 / 4;
  box-shadow: 0 1rem 2.4rem rgba(3, 61, 69, .12);
}
.hh-stt-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hh-stt-gallery-item:hover img { transform: scale(1.06); }
.hh-stt-gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: .9rem 1rem .8rem;
  background: linear-gradient(0deg, rgba(6, 37, 44, .88), transparent);
  color: #fff; font-weight: 700; font-size: .95rem; text-align: center;
}
@media (max-width: 767.98px) { .hh-stt-gallery { grid-template-columns: 1fr; } }

/* عکس‌های روایی تکی (تصویر اصلی هیرو و تصویر میان‌متنی) */
.hh-stt-banner-figure { margin: 1.75rem auto 0; max-width: 720px; text-align: center; }
.hh-stt-banner-figure img {
  width: 100%; height: auto; display: block; border-radius: 1.25rem;
  box-shadow: 0 1rem 2.75rem rgba(3, 61, 69, .18);
}
.hh-stt-banner-figure figcaption { margin-top: .75rem; font-size: .85rem; font-weight: 600; color: #4d7277; }

/* روایت‌های مقاتل - کارت نقل‌قول */
.hh-stt-quotes { display: grid; gap: 1.25rem; }
.hh-stt-quote {
  margin: 0; position: relative; padding: 1.5rem 1.75rem 1.35rem;
  background: #f4fbfb; border-inline-start: 4px solid #037891; border-radius: .25rem 1.1rem 1.1rem .25rem;
}
.hh-stt-quote-icon { color: #5cb8b7; font-size: 1.6rem; margin-bottom: .5rem; display: block; }
.hh-stt-quote p { margin: 0 0 .9rem; color: #103d45; font-size: .98rem; line-height: 2.05; text-align: justify; }
.hh-stt-quote footer { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: #0a8b85; }
.hh-stt-quote footer::before { content: "\2014"; }

/* زیارت مفجعه */
.hh-stt-ziyarat {
  position: relative; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: 1.5rem;
  text-align: center; color: #fff;
  background: linear-gradient(135deg, #026779 0%, #037891 55%, #0a8b85 100%);
  box-shadow: 0 1.5rem 3rem rgba(3, 61, 69, .25);
}
.hh-stt-ziyarat-ar { margin: 0 0 1.25rem; font-size: clamp(1.1rem, 2.8vw, 1.5rem); line-height: 2.3; font-weight: 700; }
.hh-stt-ziyarat-fa {
  margin: 0 auto; max-width: 640px; font-size: .95rem; line-height: 2; text-align: justify;
  color: rgba(255, 255, 255, .88); padding-top: 1.1rem; border-top: 1px dashed rgba(255, 255, 255, .35);
}

/* معرفی و نحوه شهادت */
.hh-stt-story-sub { display: inline-flex; align-items: center; gap: .5rem; margin: 1.75rem 0 1rem; font-weight: 800; font-size: 1.1rem; color: #026779; }
.hh-stt-story-sub i { color: #ff9f43; }
.hh-stt-story p { color: #103d45; font-size: .98rem; line-height: 2.1; margin: 0 0 1.1rem; text-align: justify; }
.hh-stt-story-note {
  margin-top: 1.5rem; padding: 1.1rem 1.35rem; border-radius: 1rem;
  background: #e7f6f7; border: 1px dashed #7bc4c9; color: #026779; font-size: .92rem; line-height: 1.95;
  text-align: justify;
}

/* گاه‌شمار روایت‌های تصویری و صوتی */
.hh-stt-chapters { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.hh-stt-chapters::before {
  content: ""; position: absolute; top: .5rem; bottom: .5rem; inset-inline-start: 27px; width: 2px;
  background: repeating-linear-gradient(180deg, #c5e5e8 0 8px, transparent 8px 16px);
}
.hh-stt-media-block { position: relative; padding-inline-start: 4.25rem; }
.hh-stt-media-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.hh-stt-media-badge {
  position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #037891, #1c95a8); color: #fff; font-size: 1.35rem;
  box-shadow: 0 .6rem 1.4rem rgba(3, 120, 145, .3);
}
.hh-stt-media-badge--audio { background: linear-gradient(135deg, #0a8b85, #169a96); box-shadow: 0 .6rem 1.4rem rgba(10, 139, 133, .3); }
.hh-stt-media-badge--photo { background: linear-gradient(135deg, #5cb8b7, #1c95a8); box-shadow: 0 .6rem 1.4rem rgba(92, 184, 183, .3); }
.hh-stt-media-eyebrow { display: block; font-size: .78rem; font-weight: 700; color: #0a8b85; margin-bottom: .2rem; }
.hh-stt-media-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #103d45; line-height: 1.7; }

/* پخش‌کننده ویدیو - امبد آپارات */
.hh-stt-video { position: relative; max-width: 720px; margin-bottom: 1.1rem; }
.hh-stt-video-frame {
  position: relative; border-radius: 1.1rem; overflow: hidden; border: 1px solid #c5e5e8; background: #04252c;
  box-shadow: 0 1rem 2.6rem rgba(3, 120, 145, .16);
}
.hh-stt-video-ratio { display: block; padding-top: 56.25%; }
.hh-stt-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* پخش‌کننده صوت */
.hh-stt-audio { max-width: 520px; margin-bottom: 1.1rem; padding: .85rem 1.1rem; border-radius: 1rem; background: #f4fbfb; border: 1px solid #c5e5e8; }
.hh-stt-audio audio { width: 100%; display: block; }

/* عکس */
.hh-stt-photo { margin: 0 0 1.1rem; max-width: 420px; border-radius: 1.1rem; overflow: hidden; box-shadow: 0 1rem 2.4rem rgba(3, 61, 69, .12); }
.hh-stt-photo img { width: 100%; display: block; }

.hh-stt-media-text p { margin: 0 0 1rem; color: #103d45; font-size: .95rem; line-height: 2.05; text-align: justify; }
.hh-stt-media-text p:last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .hh-stt-media-block { padding-inline-start: 3.5rem; }
  .hh-stt-media-badge { width: 46px; height: 46px; font-size: 1.1rem; }
  .hh-stt-chapters::before { inset-inline-start: 22px; }
}

/* بخش پایانی - ابیات */
.hh-stt-closing {
  text-align: center; padding: clamp(2rem, 4vw, 3rem); border-radius: 1.5rem; color: #cfe4e5;
  background: linear-gradient(180deg, #103d45 0%, #06252c 100%);
}
.hh-stt-closing p { margin: 0 0 .75rem; font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 2.2; font-weight: 600; text-align: justify; }
.hh-stt-closing p:last-child { margin-bottom: 0; color: #93b4b8; font-size: .95rem; font-weight: 500; }

/* برچسب‌های موضوعی و اذکار پایانی (سئو) */
.hh-stt-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 1.5rem; }
.hh-stt-tag {
  display: inline-flex; align-items: center; padding: .4rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #026779; background: #e7f6f7; border: 1px solid #c5e5e8;
}
.hh-stt-invocation { text-align: center; margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; color: #037891; }
.hh-stt-invocation:last-child { margin-bottom: 0; }

/* ---------- تم تیره ---------- */
html.dark-style .hh-stt-hero {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(28, 149, 168, .14), transparent 65%),
    linear-gradient(180deg, #25393c 0%, #223438 100%);
}
html.dark-style .hh-stt-bismillah { color: #5cb8b7; }
html.dark-style .hh-stt-bismillah-sub,
html.dark-style .hh-stt-subtitle,
html.dark-style .hh-stt-section-lead { color: #93b4b8; }
html.dark-style .hh-stt-eyebrow { color: #cfe4e5; background: rgba(28, 149, 168, .14); border-color: #43585b; }
html.dark-style .hh-stt-card { background: #2c474b; border-color: #43585b; }
html.dark-style .hh-stt-intro-card p,
html.dark-style .hh-stt-story p,
html.dark-style .hh-stt-quote p,
html.dark-style .hh-stt-media-text p,
html.dark-style .hh-stt-media-head h3,
html.dark-style .hh-stt-section-title { color: #cfe4e5; }
html.dark-style .hh-stt-quote { background: rgba(28, 149, 168, .1); border-inline-start-color: #1c95a8; }
html.dark-style .hh-stt-story-note { background: rgba(28, 149, 168, .12); border-color: #43585b; color: #7fc6cd; }
html.dark-style .hh-stt-audio { background: #25393c; border-color: #43585b; }
html.dark-style .hh-stt-chapters::before { background: repeating-linear-gradient(180deg, #43585b 0 8px, transparent 8px 16px); }
html.dark-style .hh-stt-banner-figure figcaption { color: #93b4b8; }
html.dark-style .hh-stt-tag { color: #cfe4e5; background: rgba(28, 149, 168, .14); border-color: #43585b; }
html.dark-style .hh-stt-invocation { color: #5cb8b7; }
