/*
  Product hero + interactions (like/subscribe) styling.
  Scoped to avoid disturbing other pages.
*/

#course-hero {
  border-radius: 18px;
  background: #fff;
}

#course-hero .hero-title {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 12px;
}
/* Hermes Section Title (like screenshot) */
.hms-sec-title,.rrk-section-title{
display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px 0;
    color: #3b82f6;
    font-weight: 600;
    line-height: 1.15;
    font-size: clamp(24px, 1.6vw, 32px);
}
svg.hms-ico {
    fill: #95a0b1;
}
.hms-section.hms-se {
    padding: 10px 10px;
    margin-top: 0px;
}
/* --- Product Related Image box (between certificate and related panel) --- */
.hms-related-image-box{
	background:#f3f4f6;
	border:1px solid #eef2f7;
	border-radius:22px;
	margin: 0 0 16px;
}

.hms-related-image-link{
	display:block;
	text-decoration:none;
}

.hms-related-image-box img,
.hms-related-image{
	width:100%;
	height:auto;
	display:block;
	border-radius:18px;
}

/* --- Related panel (Product) - Screenshot-like UI --- */
.hms-related-panel{
border: 1px solid #e0e0e0;
    border-radius: 22px;
    padding: 18px;
    margin: 0 0 16px;
}

.hms-related-head{ text-align:center; }

.hms-related-head-row{
position: relative;
    display: flex;
    padding: 10px 30px 0px;
    justify-content: flex-start;
}

.hms-related-title{
    font-size: 16px;
    font-weight: 600;
    color: #334155;
}

.hms-related-icon{
	position:absolute;
	right:0;
	top:50%;
	transform:translateY(-50%);
	color:#111827;
	display:inline-flex;
	align-items:center;
	justify-content:center;
}

.hms-related-desc{
	margin:0 0 14px;
	font-size:10px;
	font-weight:400;
	color:#7a8699;
	line-height:1.9;
}

.hms-related-list{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction:column;
	gap:12px;
}

.hms-related-item a{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 65px;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 20px 18px 18px;
    text-decoration: none;
    color: #314155;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
}

.hms-related-item a::before{
content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 50%;
    background: #2f6bff;
    border-radius: 10px 0 0 10px;
}

.hms-related-item a:hover{
	background:#f9fafb;
}

@media (max-width:768px){
	.hms-related-title{ font-size:20px; }
	.hms-related-item a{ font-size:18px; min-height:68px; }
}

#course-reviews .hms-qna-text,
#course-reviews .hms-qna-text p,
#course-reviews .hms-qna-text li{
	--tw-text-opacity: 1;
	color: rgb(55 65 81 / var(--tw-text-opacity));
	font-size: 1rem;
	font-weight: 200;
	line-height: 1.9;
}
#course-hero .hero-bottom
.hero-share.d-flex.align-items-center.flex-wrap {
    display: flex;
    flex-direction: row-reverse;
}
.hms-sec-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  display: inline-block;
  flex: 0 0 auto;
}

@media (max-width: 992px) {
  #course-hero .hero-title { font-size: 20px; }
}

#course-hero .woocommerce-product-details__short-description {
  color: #6b7280;
  margin-bottom: 0;
}

#course-hero .hero-price {
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
}

#course-hero .hero-btns .btn {
  border-radius: 14px;
  padding: 12px 18px;
}

#course-hero .hero-btns .btn.btn-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

#course-hero .hero-bottom {
  color: #9ca3af;
}

#course-hero .hero-share a {
  color: #9ca3af;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#course-hero .hero-share a:hover {
  color: #6b7280;
}

    #course-hero .hero-bottom {
color: #9ca3af;
    display: flex;
}
.hms-like-btn,
.hms-sub-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  color: #9ca3af;
}

.hms-like-btn:hover,
.hms-sub-btn:hover {
  background: rgba(0,0,0,.04);
  color: #6b7280;
}

.hms-like-btn.is-active {
  color: #ef4444;
}

.hms-sub-btn.is-active {
  color: #374151;
}

.hms-like-btn.is-loading,
.hms-sub-btn.is-loading {
  opacity: .6;
  pointer-events: none;
}

.hms-count {
  font-weight: 700;
  font-size: 16px;
  direction: ltr;
}

.hms-ico {
  display: inline-block;
}

/* Loop card: like in course card */
.entry.card .hms-like-inline {
  margin-top: 8px;
}


/* ---------------------------
   Rocket-like product layout
----------------------------*/
.hms-course-sidepanel{
  position: static !important;
  top: auto !important;
}


@media (max-width: 991px){
  .hms-course-sidepanel{ position: static; top:auto; }
}

.hms-rating-card .star-rating{
  font-size: 18px;
}
.hms-rating-card .star-rating span::before{
  color: #fbbf24; /* amber */
}

.hms-recording-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(59,130,246,.08);
  color: #2563eb;
  font-weight: 700;
  white-space: nowrap;
}
.hms-recording-badge .dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 10px rgba(59,130,246,.12);
}

.hms-mini-cards{
display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    flex-direction: row;
    justify-content: space-around;
}
@media (max-width: 1200px){
  .hms-mini-cards{ grid-template-columns: 1fr; }
}

.hms-mini-card{
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 16px;
    flex-direction: column;
    width: 200px;
}
.hms-mini-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex: 0 0 auto;
}
.hms-mini-meta .lbl{
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}
.hms-mini-meta .val{
  font-weight: 800;
  color: #111827;
  text-align: center;
}

.hms-cert-card .hms-cert-link{
  display: inline-block;
  margin-top: 8px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.hms-cert-card .hms-cert-link:hover{ text-decoration: underline; }

.hms-teacher-card .hms-teacher-name{
  font-weight: 900;
  font-size: 18px;
}
/* ------------------------------------------------------------
   Single product (doors): Certificate status + Teacher bio (v2)
   مطابق طراحی جدید (کارت وضعیت گواهی + کارت مدرس)
------------------------------------------------------------ */

.hms-cert-card.hms-cert-card-v2{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hms-cert-card-v2 .hms-cert-v2-header{
position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hms-cert-card-v2 .hms-cert-v2-title{
display: inline-flex;
    margin-left: 80px;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
    flex-direction: row-reverse;
}

.hms-cert-card-v2 .hms-cert-v2-info{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(148,163,184,.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 900;
  line-height: 1;
}

.hms-cert-card-v2 .hms-cert-v2-icon{
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59,130,246,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.hms-cert-card-v2 .hms-cert-v2-status{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hms-cert-card-v2 .hms-cert-v2-status .lbl{
    font-weight: 700;
    color:#4b5a78;
    font-size: 14px;
}

.hms-cert-card-v2 .hms-cert-v2-pill{
padding: 10px 14px;
    border-radius: 12px;
    background: #ffa82666;
    color: #4b5a78;
    font-weight: 400;
    font-size: 9px;
    line-height: 1.9;
}

.hms-cert-card-v2 .hms-cert-more{
    display: inline-flex;
    margin-top: 18px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    flex-direction: row-reverse;
}
.hms-cert-card-v2 .hms-cert-more:hover{ text-decoration: underline; }

/* Teacher bio card */
.hms-teacher-bio-card{
  border-radius: 18px;
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  background: #fff;
}

.hms-teacher-bio-card .hms-teacher-avatar-lg{
  display: inline-flex;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(59,130,246,.10);
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  background: #fff;
  margin-top: 6px;
  text-decoration: none;
}

.hms-teacher-bio-card .hms-teacher-avatar-lg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hms-teacher-bio-card .hms-teacher-name-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hms-teacher-bio-card .hms-teacher-name{
font-weight: 900;
    font-size: 16px;
    color: #4b5563;
    text-decoration: none;
}
.hms-teacher-bio-card .hms-teacher-name:hover{ text-decoration: underline; }

.hms-teacher-bio-card .hms-teacher-verified{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59,130,246,.14);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hms-teacher-bio-card .hms-teacher-role{
color: #7e8897;
    font-weight: 600;
    margin-top: 4px;
}

.hms-teacher-bio-card .hms-teacher-bio{
margin-top: 18px;
    color: #8490a0;
    font-weight: 200;
    line-height: 2.1;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 576px){
  .hms-teacher-bio-card .hms-teacher-name{ font-size: 16px; }
  .hms-section {
padding: 30px 10px;
    margin-top: 5px;
}
.hms-sec-right-title {
    font-size: 14px;
}
.hms-sec-right-label {
    font-size: 14px;
}
.hms-sec-head {
    padding: 5px 5px;
}
}
.hms-sec-title,.rrk-section-title{
padding: 20px 10px;
}
.rrk-faq-title {
    font-weight: 600;
    font-size: 12px;
    color: #6b7280;
    flex: 1 1 auto;
}

/* Tabs wrapper as card */
.hms-tabs-wrapper{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.06);
  margin-bottom: 18px;
}

/* Tabs nav */
.hms-tabs-nav{
display: flex;
    justify-content: flex-end;
    gap: 22px;
    margin: 0;
    padding: 14px 18px;
    list-style: none;
    border-bottom: 1px solid rgba(17, 24, 39, .06);
    background: #fff;
}
.hms-tabs-nav li{
  margin: 0 !important;
  padding: 0 !important;
}
.hms-tabs-nav li a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  color: #6b7280;
  font-weight: 800;
  text-decoration: none;
}
.hms-tabs-nav li.active a,
.hms-tabs-nav li a.active{
  color: #2563eb;
}
.hms-tabs-nav li.active a::after{
  content: "•";
  color: #2563eb;
  font-size: 22px;
  line-height: 1;
  margin-right: 6px;
}

/* Tab body */
.hms-tabs-body{
  padding: 18px;
}
.hms-tab-title{
  font-size: 34px;
  font-weight: 900;
  margin: 6px 0 18px;
  color: #2563eb;
}
@media (max-width: 992px){
  .hms-tab-title{ font-size: 28px; }
}

/* Keep WC panels visible logic controlled by wc-tabs JS; ensure spacing */
.woocommerce-tabs .woocommerce-Tabs-panel{
  margin: 0;
}

/* Make the "contentstyle" breathe like screenshot */
.hms-tab-content{
  line-height: 2.2;
  font-size: 16px;
}
/* ------------------------------------------------------------
   Description "Read more" (single product description tab)
------------------------------------------------------------ */
.hms-desc-block{
  position: relative;
  border-radius: 18px;
 
}
.hms-desc-collapse{
  position: relative;
}
.badane{border-radius: 18px;}
.hms-desc-block[data-collapsed="1"] .hms-desc-content{
  max-height: 500px;
  overflow: hidden;
}

.hms-desc-fade{
  display: none;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 60%, rgba(255,255,255,1) 100%);
  border-radius: 18px;
}

.hms-desc-block.is-collapsible .hms-desc-fade{ display: block; }
.hms-desc-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 0;

  width: max-content;
  max-width: 100%;

  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
  color: #64748b;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.hms-desc-block.is-collapsible .hms-desc-toggle{ display: flex; }


.hms-desc-toggle-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(148,163,184,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.hms-desc-block.is-expanded .hms-desc-content{ max-height: none; }
.hms-desc-block.is-expanded .hms-desc-fade{ display: none; }

/* ------------------------------------------------------------
   FAQ block (Roocket-like)
------------------------------------------------------------ */
.rrk-faq{ margin-top: 26px; }



.rrk-faq-item + .rrk-faq-item{ margin-top: 14px; }

.rrk-faq-q{
    flex-direction: row-reverse;
  width: 100%;
  border: 1px solid rgba(17,24,39,.08);
  background: #fff;
  border-radius: 18px;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.rrk-faq-q:focus{ outline: none; }

.rrk-faq-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(148,163,184,.22);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  flex: 0 0 auto;
}

.rrk-faq-title{
  font-weight: 900;
  font-size: 20px;
  color: #6b7280;
  flex: 1 1 auto;
}

.rrk-faq-chevron{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex: 0 0 auto;
}
.rrk-faq-chevron:before{
  content: "‹";
  font-size: 30px;
  line-height: 1;
  display: inline-block;
}


/* Expanded state */
.rrk-faq-q[aria-expanded="true"] .rrk-faq-icon{ background: #2563eb; color: #fff; }
.rrk-faq-q[aria-expanded="true"] .rrk-faq-title{ color: #2563eb; }
.rrk-faq-q[aria-expanded="true"] .rrk-faq-chevron:before{
  content: "⌄";
  transform: none;
  font-size: 26px;
}

.rrk-faq-a{ margin-top: 12px; }

.rrk-faq-a-inner{
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  background: #fff;
  padding: 18px 22px;
  color: #475569;
  line-height: 2.1;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.hms-section{
    padding: 40px;
  margin-top: 26px;
}
.hms-btnp {
    font-size: 12px;
    color: #607496!important;
    padding-left: 10px;
}








.disabledb {
    font-weight: 200 !important;
    background: none !important;
    font-size: 12px !important;
    padding: 10px !important;
}
/* --- Sections wrapper --- */
.hms-sections{ display:flex; flex-direction:column; gap:5px; }

/* --- Section (header exactly like screenshot) --- */
.hms-section{ border:1px solid rgba(0,0,0,.08); border-radius:16px; background:#fff; overflow:visible; }

/* Tooltip wrapper (روی دکمه‌های قفل‌شده) */
.hms-tt-wrap{
  position:relative;
  display:inline-flex;
}

/* خود tooltip */
/* Tooltip (بالای دکمه، آبی، فلش گرد) */
.hms-tt-wrap::after{
  content:attr(data-tt);
  position:absolute;
  left:50%;
  bottom:100%;
  transform:translate(-50%, -10px);
  background:#2f6fed; /* آبی */
  color:#fff;
  padding:9px 12px;
  border-radius:14px;
  font-weight:800;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index:99999;
  box-shadow:0 10px 24px rgba(47,111,237,.22);
}

/* فلش گرد: یک دایره کوچک آبی زیر tooltip */
.hms-tt-wrap::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:100%;
  width:10px;
  height:10px;
  background:#2f6fed; /* آبی */
  border-radius:999px; /* گرد */
  transform:translate(-50%, 2px);
  opacity:0;
  visibility:hidden;
  transition:opacity .15s ease, visibility .15s ease, transform .15s ease;
  z-index:99999;
}

.hms-tt-wrap:hover::after{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, -14px);
}

.hms-tt-wrap:hover::before{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 6px);
}


.hms-sec-head{
  padding:10px 18px;
  cursor:pointer;
  user-select:none;
  display:flex;
  align-items:center;
  justify-content:space-between;

  /* مثل عکس: آیکن چپ، متن راست */
  direction:ltr;
}

.hms-sec-head-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.hms-sec-ico{
  color:#667085;
  opacity:.85;
  transform:rotate(90deg); /* بسته = rotate-90 */
  transition:transform .18s ease;
}

/* باز = rotate-0 */
.hms-section.open .hms-sec-ico{
  transform:rotate(0deg);
}

.hms-sec-head-right{
display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
    flex: 1;
    direction: rtl;
    flex-direction: row;
}

.hms-sec-right-label{
    font-weight: 400;
    font-size: 22px;
    color: #64788b;
    white-space: nowrap;
}

.hms-sec-right-divider{
  width:1px;
  height:22px;
  background:rgba(0,0,0,.10);
}

.hms-sec-right-title{
    font-weight: 500;
    font-size: 20px;
    color: #4b5a7b;
    white-space: nowrap;
}

/* body */
.hms-sec-body{
  display:none;
      padding: 16px 0px 18px 16px!important;
  border-top:1px solid rgba(0,0,0,.06);
}
.hms-section.open .hms-sec-body{ display:block; }

/* --- Rows (session rows) --- */
.hms-row{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:16px 18px;
  background:#fff;
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}

.hms-left{ display:flex; align-items:center; gap:14px; }
.hms-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:16px;
  background:#eef1f5;
  color:#667085; 
  font-weight:800;
  line-height:1;
  text-decoration:none !important;
  white-space:nowrap;
}
.hms-btnplayer{
display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 5px;
    border: none;
    border-radius: 16px;
    background: none;
    color: #ffffff;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}
.hms-btn:hover{ filter:brightness(.98); }
/* disabled کلی */
.hms-btn.disabled{ opacity:.45; pointer-events:none; }

/* اما اگر tooltip داریم، hover لازم است */
.hms-btn.hms-tt.disabled,
.hms-btn.hms-tt.disabledb{
  pointer-events:auto;
  cursor:not-allowed;
}

.hms-mid{
  display:flex; align-items:center; gap:10px;
  color:#98a2b3; font-weight:800;
  min-width:140px; justify-content:center;
  white-space:nowrap;
}

.hms-right{
  display:flex; align-items:center; gap:18px;
  flex:1; justify-content:flex-end;
}
.hms-title{
  font-weight:500; color:#667085;
  direction:rtl; text-align:right;
  white-space:nowrap;
}
.hms-btn[title]:hover::after {
  opacity: 1;
  visibility: visible;
}

.hms-end{
width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 20px;
}
.hms-end:before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:1px;
  background:rgba(0,0,0,.08);
}

/* unlocked: number + underline */
.hms-numwrap{
  width:60px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#667085;
}
.hms-num{
  font-size:22px;
  font-weight:900;
  line-height:1;
}
.hms-underline{
  width:44px;
  height:4px;
  border-radius:999px;
  background:#667085;
  
}

/* locked: red square lock */
.hms-lockwrap{
width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #e35b57;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover behavior: lock -> number */
.hms-locked .hms-numwrap{ display:none; }
.hms-locked .hms-lockwrap{ display:flex; }
.hms-locked:hover .hms-numwrap{ display:flex; }
.hms-locked:hover .hms-lockwrap{ display:none; }
/* وقتی ردیف قفل است و هاور می‌شود: عدد هم قرمز باشد */
.hms-locked:hover .hms-numwrap{
  color:#e35b57; /* همان رنگ قرمز قفل */
}
.hms-locked:hover .hms-underline{
  background:#e35b57;
  opacity:.75;
}

.hms-unlocked .hms-numwrap{ display:flex; }
.hms-unlocked .hms-lockwrap{ display:none; }
/* --- Mobile responsive: keep exact order like screenshot --- */
@media (max-width: 768px){
      .hms-title{
    font-size: 12px!important;
  }
 
.hms-end:before {
    content: "";
    position: absolute;
    left: -10px;
    top: -12px;
    height: 50px;
    bottom: 0px;
    width: 1px;
    background: rgba(0, 0, 0, .08);
}
  /* keep one-row order: [مشاهده][زمان][عنوان][شماره] */
  .hms-row{
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 12px;
  }

  .hms-left{
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  /* button sizing on mobile */
 .hms-btnp {
    padding: 5px 5px!important;
        border-radius: 5px!important;
        font-size: 12px!important;
        font-weight: 200!important;
        gap: 4px!important;
}
.hms-btn {
    gap: 10px;
    padding: 5px 5px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 300;
}
  /* time block must not force wrap */
  .hms-mid{
    min-width: auto;        /* was 140px */
    flex: 0 0 auto;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
  }

  /* right side: title must shrink + ellipsis, number stays at far right */
  .hms-right{
    flex: 1 1 auto;
    min-width: 0;           /* IMPORTANT: allow title to shrink */
    gap: 12px;
  }

  .hms-title{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
  }

  /* final number column sizing */
  .hms-end{
   width: 30px;
        left: 5px;            /* remove desktop offset */
  }

  .hms-num{ font-size: 14px; }
  .hms-underline{ width: 15px; height: 4px; }
  .hms-lockwrap{ width: 25px;
        height: 25px;
        border-radius: 5px;}
}

</style>