/*
  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;
}
span.ht-price-state.ht-price-state--outofstock,span.ht-price-state.ht-price-state--soon {
    font-size: 28px;
    font-weight: 700;
    color: #2196F3;
}
/* 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:12px;
	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:12px;
}

/* --- Related panel (Product) - Screenshot-like UI --- */
.hms-related-panel{
border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 10px;
    margin: 0 0 16px;
}
.card.hms-side-card.hms-cert-card.hms-cert-card-v2.p-4.mb-3.zabt {
    padding: 20px !important;
}
.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: 600;
    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 .hms-price-scope--hero-main{
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    line-height: 1.2;
    direction: rtl;
    unicode-bidi: isolate;
    flex-direction: column-reverse;
    width: 390px;
}




#course-hero .hms-price-scope--hero-main .price{
  display:inline-flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin:0;
}

#course-hero .hms-price-scope--hero-main .woocommerce-Price-amount,
#course-hero .hms-price-scope--hero-main .woocommerce-Price-amount.amount{
  font-size:30px !important;
  font-weight:900 !important;
  line-height:1;
  color:#0f172a;
  letter-spacing:-.02em;
}

#course-hero .hms-price-scope--hero-main .woocommerce-Price-currencySymbol{
  font-size:.72em;
}

#course-hero .hms-price-scope--hero-main del{
  order:2;
  opacity:1;
  text-decoration:none;
  position:relative;
  color:#94a3b8;
  font-weight:700;
}

#course-hero .hms-price-scope--hero-main del::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:2px;
  background:rgba(148,163,184,.9);
  transform:translateY(-50%);
  border-radius:999px;
}

#course-hero .hms-price-scope--hero-main del .woocommerce-Price-amount,
#course-hero .hms-price-scope--hero-main del .woocommerce-Price-amount.amount{
font-size: 22px !important;
    font-weight: 600 !important;
    color: #94a3b8;
}

#course-hero .hms-price-scope--hero-main ins{
  order:1;
  text-decoration:none;
}

#course-hero .hms-price-scope--hero-main ins .woocommerce-Price-amount,
#course-hero .hms-price-scope--hero-main ins .woocommerce-Price-amount.amount{
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #334151;
}

#course-hero .hms-price-scope--hero-main .amount:only-child,
#course-hero .hms-price-scope--hero-main > .woocommerce-Price-amount:only-child{
  font-size:32px !important;
  font-weight:900 !important;
  color:#0f172a;
}

#course-hero .hero-btns .btn {
font-size: 17px;
    border-radius: 7px;
    padding: 12px 18px;
}
.btn.btn-primary {
    color: #fff;
    background-color: #3b82fb!important;
}
#course-hero .hero-btns .btn.btn-link {
  color: #ff8f00;
  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 */


/* ---------------------------
   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: stretch;
    gap: 12px;
    border-radius: 12px;
    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: 12px;
    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: 11px;
    color: #9ca3af;
    font-weight: 300;
  margin-bottom: 4px;
  text-align: center;
}
.d-flex.align-items-center.justify-content-between {
    display: flex;
    flex-direction: row-reverse;
}
.hms-mini-meta .val{
    font-weight: 700;
    color: #4b5a78;
    font-size: 13px;
    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;
}


.hms-cert-card.hms-cert-card-v2{
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.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: 60px;
    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: 5px;
}

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

.hms-cert-card-v2 .hms-cert-v2-pill{
padding: 5px 10px;
    border-radius: 5px;
    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: 10px;
    color: #2563eb;
    padding: 13px 0 0;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    flex-direction: row-reverse;
    justify-content: center;
}
.hms-cert-card-v2 .hms-cert-more:hover{ text-decoration: underline; }

/* Teacher bio card */
.hms-teacher-bio-card{
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.06);
  background: #fff;
}

.hms-teacher-bio-card .hms-teacher-avatar-lg{
  display: inline-flex;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
    border: 5px solid rgb(174 174 174 / 10%);
 
  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: 400;
    font-size: 13px;
    margin-top: 4px;
}

.hms-teacher-bio-card .hms-teacher-bio{
margin-top: 18px;
    color: #64686d;
    font-weight: 200;
    line-height: 1.8;
    font-size: 14px;
    text-align: center;
}
.b-file {
    border: 1px solid #eceff3;
}
@media (max-width: 576px){
  .hms-teacher-bio-card .hms-teacher-name{ font-size: 16px; }
  .hms-section {
padding: 30px 10px;
    margin-top: 5px;
}

    #course-hero .hms-price-scope--hero-main {
        display: flex;
        align-items: center;
        width: auto;
    }
.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: 30px;
  flex: 0 0 auto;
}

.rrk-faq-title{
font-weight: 500;
    font-size: 18px;
    color: #414751;
    flex: 1 1 auto;
}
p:last-child {
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 15px;
    color: #333a45;
}
p.hms-related-desc {
    font-size: 10px;
}
/* FAQ answer zoom-in effect (from center) */
@keyframes hmsFaqZoomIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.rrk-faq-a .rrk-faq-a-inner{
  transform-origin: 50% 50%; /* از وسط */
  will-change: transform, opacity;
}

.rrk-faq-a.collapse.show .rrk-faq-a-inner{
  animation: hmsFaqZoomIn .22s ease-out both;
}

.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;
}
/* FAQ chevron (SVG as background-image so color reliably changes) */
.rrk-faq-chevron:before{
  content: "";
  display: inline-block;
  width: 16px;
  height: 10px;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* default color: #475466 */
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2210%22%20viewBox%3D%220%200%2016%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201.5L8%208.5L15%201.5%22%20stroke%3D%22%23475466%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");

  transition: transform .18s ease, filter .18s ease;
}

/* hover: blue icon */
/* hover OR expanded => blue icon */
.rrk-faq-q:hover .rrk-faq-chevron:before,
.rrk-faq-q[aria-expanded="true"] .rrk-faq-chevron:before{
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2210%22%20viewBox%3D%220%200%2016%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201.5L8%208.5L15%201.5%22%20stroke%3D%22%232563eb%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}


/* expanded: rotate */
.rrk-faq-q[aria-expanded="true"] .rrk-faq-chevron:before{
  transform: rotate(180deg);
}



/* 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-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 0 ;
  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; }
/* --- Product page sessions row layout (left meta / right actions) --- */
#hmsCourseSections .hms-row{
margin: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid rgb(229 229 229);
    direction: rtl;
    border-radius: 10px;
}


#hmsCourseSections .hms-row-meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1 1 auto;
  min-width:0;
}

#hmsCourseSections .hms-title{
lex: 1 1 auto;
    min-width: 0;
    text-overflow: clip;
    white-space: pre-line;
    direction: rtl;
    font-size: 18px;
    line-height: 35px;
    text-align: right;
}

#hmsCourseSections .hms-row-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  justify-content:flex-end;
}

#hmsCourseSections .hms-time{
    display: inline-flex;
    gap: 2px;
    color: #95a0b1;
    font-weight: 300;
    white-space: nowrap;
    flex-direction: row-reverse;
    align-items: flex-end;
}

@media (max-width: 768px){
  #hmsCourseSections .hms-row{
    flex-wrap:wrap;
    padding:12px 12px;
  }
  #hmsCourseSections .hms-row-actions{
    width:100%;
    justify-content:flex-end;
    flex-wrap:wrap;
  }

}

/* --- Section (header exactly like screenshot) --- */
.hms-section{ border-radius:12px; background:#fff; overflow:visible;padding: 20px 30px; }


.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:#1C274C;
  opacity:.85;
  transform:rotate(0deg);
  transition:transform .18s ease;
}

.hms-section.open .hms-sec-ico{
  transform:rotate(180deg);
}

.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; }

/* âœ… DESKTOP/TABLE: Ù‡Ø±Ú¯Ø² Ø±ÙˆÛŒ <tr> flex Ù†Ú©Ù† */
#hms-course-sections-wrap tr.hms-row{
    display: table-row;
    direction: rtl;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* ÙØ§ØµÙ„Ù‡ Ùˆ Ø¬Ø¯Ø§Ú©Ù†Ù†Ø¯Ù‡ Ø³ØªÙˆÙ†â€ŒÙ‡Ø§ (Ù…Ø«Ù„ wp-admin widefat) */
#hms-course-sections-wrap table.widefat{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    direction: rtl;
}

#hms-course-sections-wrap table.widefat th,
#hms-course-sections-wrap table.widefat td{
    padding: 10px 12px;
    text-align: right;
    vertical-align: middle;
    border-right: 1px solid rgba(0,0,0,.08);
}

#hms-course-sections-wrap table.widefat th:last-child,
#hms-course-sections-wrap table.widefat td:last-child{
    border-right: 0;
}

/* âœ… MOBILE: Ú©Ø§Ø±Øªâ€ŒÙ…Ø§Ù†Ù†Ø¯ */
@media (max-width: 980px){

  #hms-course-sections-wrap table.widefat{
      min-width: 0 !important;
  }

  #hms-course-sections-wrap table.widefat thead{
      display: none;
  }

  #hms-course-sections-wrap tr.hms-row{
      display: block;
      border: 1px solid rgba(0,0,0,.10) !important;
      border-radius: 18px !important;
      padding: 12px 12px !important;
      background: #fff !important;
      margin-bottom: 12px !important;
  }

  #hms-course-sections-wrap tr.hms-row td{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 0;
      border-right: 0 !important;
      border-bottom: 1px dashed rgba(0,0,0,.08);
  }

  #hms-course-sections-wrap tr.hms-row td:last-child{
      border-bottom: 0;
  }

  /* Ø¨Ø±Ú†Ø³Ø¨ Ø³ØªÙˆÙ† Ø¯Ø± Ù…ÙˆØ¨Ø§ÛŒÙ„ */
  #hms-course-sections-wrap tr.hms-row td::before{
      content: attr(data-label);
      font-weight: 800;
      opacity: .75;
      white-space: nowrap;
  }
}
/* Sessions list: attachment download button (NOT sidebar) */
#hmsCourseSections .hms-row-actions .hms-btn.hms-attach-btn{
  background: #3cc57f !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* hover/focus */
#hmsCourseSections .hms-row-actions .hms-btn.hms-attach-btn:hover,
#hmsCourseSections .hms-row-actions .hms-btn.hms-attach-btn:focus{
  filter: brightness(0.95);
  color: #ffffff !important;
}


.hms-left{ display:flex; align-items:center; gap:14px; }
.hms-btn{
font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #eef1f5;
    color: #1C274C;
    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:300; 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-weight: 800;
    line-height: .4;
    padding-right: 5px;
    font-size: 14px;
    
}
/* ===========================
   My Account > Courses cards
=========================== */

.hms-course-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px){
  .hms-course-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px){
  .hms-course-grid{ grid-template-columns: 1fr; }
}

.hms-course-card{
  display:block;
  background:#fff;
  border-radius: 18px;
  padding: 12px;
  overflow:hidden;
  text-decoration:none !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  border:1px solid rgba(148,163,184,.18);
}

.hms-course-card-cover{
  height: 165px;
  background: #f1f5f9;
  background-size: cover;
  background-position:center;
  position:relative;
  border-radius: 14px;
}

.hms-course-card-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
      background-color: #6074993b;
    border-radius: 10px;

}

.hms-course-card-body{
  padding: 16px 16px 14px;
}

.hms-course-card-topline{
  font-size: 11px;
  color:#94a3b8;
  margin-bottom: 6px;
}

.hms-course-card-title{
  font-size: 18px;
  font-weight: 800;
  color:#0f172a;
  line-height:1.6;
  margin-bottom: 14px;
}

.hms-course-card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top: 12px;
  border-top:1px solid rgba(148,163,184,.18);
  margin-top: 10px;
}

.hms-course-card-row-title{
  font-size: 14px;
  font-weight: 500;
  color:#334155;
  line-height:1.7;
}

.hms-course-card-thumb{
  width: 58px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hms-course-card-progress{
  margin-top: 12px;
}

.hms-course-card-progress-label{
  font-size: 11px;
  color:#3b82f6;
  margin-bottom: 8px;
  font-weight:400;
}

.hms-course-card-progressbar{
  height: 6px;
  background: rgba(59,130,246,.18);
  border-radius: 999px;
  overflow:hidden;
}

.hms-course-card-progressbar > span{
  display:block;
  height:100%;
  background:#3b82f6;
  border-radius:999px;
}

/* Empty SVG colors fix */
.hms-empty-illustration .hms-empty-svg,
.hms-empty-illustration .hms-empty-svg *{
  fill: unset !important;
  stroke: unset !important;
  color: unset !important;
}

.hms-underline{
  width:24px;
  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; }
.hms-row.is-completed .hms-lockwrap{ display:none !important; }
.hms-row.is-completed .hms-numwrap{
  display:flex !important;
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:14px;
  background:#22c55e;
  color:#fff;
  box-shadow:0 10px 24px rgba(34,197,94,.22);
  position:relative;
  overflow:hidden;
  transition:background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.hms-row.is-completed .hms-numwrap::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:13px;
  transform:translate(-50%,-50%);
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 13px;
  background-image:url("data:image/svg+xml,%3Csvg%20class%3D%27w-4%20h-4%27%20viewBox%3D%270%200%2018%2013%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20fill%3D%27white%27%20fill-rule%3D%27evenodd%27%20clip-rule%3D%27evenodd%27%20d%3D%27M16.849%202.91808C17.4348%202.3323%2017.4348%201.38255%2016.849%200.796762C16.2633%200.210975%2015.3135%200.210975%2014.7277%200.796762L6.5012%209.02328L2.91808%205.44015C2.3323%204.85437%201.38255%204.85437%200.796762%205.44015C0.210975%206.02594%200.210975%206.97569%200.796762%207.56147L5.43997%2012.2047C5.78681%2012.5515%206.26124%2012.693%206.71217%2012.6291C7.02331%2012.5853%207.32334%2012.4438%207.56263%2012.2045L16.849%202.91808Z%27/%3E%3C/svg%3E");
  transition:opacity .22s ease, transform .22s ease;
}
.hms-row.is-completed .hms-num{
  opacity:0;
  color:#fff;
  transition:opacity .22s ease, color .22s ease;
}
.hms-row.is-completed .hms-underline{
  background:#22c55e;
  opacity:1;
}
.hms-row.is-completed:hover .hms-numwrap{
  background:transparent;
  box-shadow:none;
}
.hms-row.is-completed:hover .hms-numwrap::after{
  opacity:0;
  transform:scale(.72);
}
.hms-row.is-completed:hover .hms-num{
  opacity:1;
  color:#22c55e;
}
.hms-row.is-completed:hover .hms-underline{
  background:#22c55e;
}
.hms-row.is-completed.is-fresh-complete .hms-numwrap{
  animation:hmsCourseDonePulse .95s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes hmsCourseDonePulse{
  0%{ transform:scale(.72); }
  45%{ transform:scale(1.12); }
  100%{ transform:scale(1); }
}
/* --- Mobile responsive: keep exact order like screenshot --- */
@media (max-width: 768px){
      .hms-title{
    font-size: 12px!important;
  }
 
.hms-end:before {
content: "";
        position: absolute;
        left: -5px;
        top: -18px !important;
        height: 70px;
        bottom: 0;
        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: 3px 7px;
        border-radius: 10px;
        font-size: 9px;
        font-weight: 600;
}
  /* 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;
        top: 20px;           /* remove desktop offset */
  }

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


/* =========================
   Single product hero tablet fix
   Fix image overflow and make hero stack like mobile on tablet
   ========================= */
#course-hero .course-thumb,
#course-hero .course-thumb img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}

#course-hero .course-thumb{
  margin:0;
}

@media (min-width: 577px) and (max-width: 991.98px){
  #course-hero .row.align-items-center{
    justify-content:center;
    text-align:center;
  }

  #course-hero .row.align-items-center > [class*="col-"]{
    flex:0 0 100%;
    max-width:100%;
    width:100%;
  }

  #course-hero .row.align-items-center > div:first-child{
    margin-bottom:8px;
  }

  #course-hero .course-thumb{
    width:100%;
    max-width:420px;
    margin:0 auto;
  }

  #course-hero .hero-title,
  #course-hero .hero-excerpt,
  #course-hero .hero-excerpt > *,
  #course-hero .woocommerce-product-details__short-description,
  #course-hero .woocommerce-product-details__short-description > *{
    text-align:center;
  }

  #course-hero .fasl{
    display:flex;
    flex-direction:column;
    align-items:center !important;
    justify-content:center !important;
    gap:16px;
  }

  #course-hero .hero-btns{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center !important;
    justify-content:center;
    gap:12px !important;
  }

  #course-hero .hero-btns .btn,
  #course-hero .hero-btns > a,
  #course-hero .hero-btns .vip-gold{
    margin:0 !important;
  }

  #course-hero .hms-price-scope--hero-main{
    width:auto;
    max-width:100%;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  #course-hero .hms-price-scope--hero-main .price{
    justify-content:center;
  }

  #course-hero .hero-bottom{
    display:flex;
    flex-direction:column;
    align-items:center !important;
    justify-content:center !important;
    gap:16px;
    text-align:center;
  }

  #course-hero .hero-share,
  #course-hero .hero-bottom > div{
    justify-content:center;
  }
}
