.single .breadcrumb-arrow {
    padding: 15px;
}

.single-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

body.single-post .content-body .content-video .mejs-controls {
    background: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.35));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
}

.m3-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.m3-single-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Post Header */

.m3-post-header {
  margin-bottom: 32px;
}

.m3-post-title {
  font-size: var(--font-size-ex);
  font-weight: 700;
  line-height: 1.2;
  color: var(--m3-sys-color-on-surface);
  margin: 0 0 8px 0;
}

.m3-post-subtitle {
  font-size: var(--font-size-large);
  font-weight: 400;
  line-height: 1.4;
  color: var(--m3-sys-color-on-surface-variant);
  margin: 0 0 16px 0;
  direction: ltr;
  text-align: right;
}

.m3-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.m3-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-md);
  color: var(--m3-sys-color-on-surface-variant);
}

.m3-meta-item .material-icons {
  font-size:  var(--font-size-large);
  color: var(--m3-sys-color-primary);
}

/* File Specifications */

.m3-specs-container {
  background: var(--surface-container);
  border-radius: var(--m3-border-radius-large);
  padding: 24px;
  margin-bottom: 24px;
}

.m3-specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.m3-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.m3-spec-item:hover {
  background: var(--surface-subtle);
}

.m3-spec-item .material-icons {
  font-size:  var(--font-size-large);
  color: var(--m3-sys-color-primary);
  flex-shrink: 0;
}

.m3-spec-label {
  font-weight: 500;
  color: var(--m3-sys-color-on-surface);
}

.m3-spec-value {
  color: var(--m3-sys-color-on-surface-variant);
}

/* ownload Box & Tabs */

.m3-download-box {
  background: var(--surface-subtle);
  border-radius: var(--m3-border-radius-large);
  padding: 24px;
  margin-bottom: 24px;
}

.m3-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--m3-sys-color-outline-variant);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.m3-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--m3-sys-color-on-surface-variant);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: var(--font-size-md);
  font-weight: 500;
}

.m3-tab:hover {
  background: var(--surface-hover);
  color: var(--m3-sys-color-on-surface);
}

.m3-tab.active {
  color: var(--m3-sys-color-primary);
  border-bottom-color: var(--m3-sys-color-primary);
  background: var(--border-color);
}

.m3-tab .material-icons {
  font-size:  var(--font-size-huge);
}

.m3-tab-label {
  display: inline;
}

.m3-tab-content {
  display: none;
}

.m3-tab-content.active {
  display: block;
}

.m3-download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m3-download-list li {
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background 0.2s;
}

.m3-download-list li:hover {
  background: var(--surface-hover);
}

.m3-download-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--m3-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.m3-download-list a:hover {
  text-decoration: underline;
}

.m3-download-list .material-icons {
  font-size:  var(--font-size-huge);
}

/* Responsive Tabs */

.m3-related-posts {
  margin-bottom: 32px;
}

.m3-section-title {
  font-size: var(--font-size-huge);
  font-weight: 600;
  color: var(--m3-sys-color-on-surface);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.m3-section-title .material-icons {
  color: var(--m3-sys-color-primary);
  font-size: var(--font-size-huge);
}

.m3-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.m3-related-item {
  background: var(--surface-subtle);
  border-radius: var(--m3-border-radius-medium);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.m3-related-item:hover {
  box-shadow: var(--m3-elevation-2);
  transform: translateY(-4px);
}

.m3-related-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-hover);
}

.m3-related-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.m3-related-item:hover .m3-related-thumbnail img {
  transform: scale(1.05);
}

.m3-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.m3-related-item:hover .m3-play-overlay {
  opacity: 1;
}

.m3-play-overlay .material-icons {
  font-size: var(--font-size-ex);
  color: var(--surface-container);
}

.m3-related-title {
  padding: 12px;
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--m3-sys-color-on-surface);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.single .content-body, .single .content-body__detail, .single .ma_col {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.content-gallery-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    direction: ltr;
    padding: 20px 0;
    box-sizing: border-box;
}

.content-gallery {
    display: block;
    width: 100%;
    overflow: hidden;
}

.content-gallery .swiper {
    width: 100%;
    height: auto;
}

.gallery_item {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

.content-gallery__item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.content-gallery__item:hover {
    transform: scale(1.05);
}

.content-gallery .swiper-button-prev, .content-gallery .swiper-button-next {
    background: var(--surface-container);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    box-shadow: 0 4px 10px var(--outline-variant);
    top: 40%;
}

.content-gallery .swiper-button-prev::after, .content-gallery .swiper-button-next::after {
    font-size:  var(--font-size-large);
    font-weight: bold;
}

.content-gallery .swiper-pagination {
    position: relative;
    margin-top: 15px;
    bottom: 0 !important;
    text-align: center;
}

.content-gallery .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--outline);
    opacity: 1;
    margin: 0 4px !important;
    border-radius: 50%;
    display: inline-block;
}

.content-gallery .swiper-pagination-bullet-active {
    background: #f34235;
    width: 20px;
    border-radius: 4px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 5px;
}

.lightbox-content-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.lightbox-nav {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--outline-variant);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--surface-container);
    border-radius: 50%;
    font-size: var(--font-size-huge);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.lightbox-nav:hover {
    background: #f34235;
    border-color: #f34235;
}

.lightbox-nav.prev {
    right: 20px;
}

.lightbox-nav.next {
    left: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(---surface-container);
    font-size: var(--font-size-ex);
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
}

.dlbox-tab_container {
    width: 100%;
    direction: rtl;
    background: var(--surface-container);
}

.dlbox-tab_container input, .dlbox-tab_container div {
    clear: both;
    display: none;
}

.dlbox-tab_container label {
    font-weight: 500;
    font-size: var(--font-size-normal);
    display: flex;
    width: 18%;
    padding: 15px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background: var(--surface-hover);
    float: right;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4 {
    display: flex;
    color: var(--text-muted);
    border-bottom: 2px solid var(--surface-subtle);
    padding: 25px;
}

#tab5:checked ~ #content5 {
    display: block;
    text-align: left;
    direction: ltr;
    padding: 0 25px;
    border-bottom: 2px solid var(--surface-hover);
}

.content-english {
    text-align: left;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    direction: ltr;
    padding: 10px;
    line-height: 1.2;
    color: var(--text-primary) !important;
    font-size:  var(--font-size-md);
}

.dlbox-tab_container .dlbox-tab-content h3 {
    text-align: center;
}

.dlbox-tab_container [id^="tab"]:checked + label {
    background: var(--surface-container);
    border-top: 3px solid var(--on-hover-primary);
}

.dlbox-tab_container .fa {
    margin-left: 5px;
}

.dlbox-tab_container [id^="tab"]:checked + label .fa {
    color: #0ce;
}

.dlbox-tab-content li {
    -webkit-transition: all 0.55s ease;
    -o-transition: all 0.55s ease;
    transition: all 0.55s ease;
}

.dlbox-tab-content li {
    color: var(--text-primary);
    font-family: "IranSansNum", serif;
    font-size:  var(--font-size-normal);
    line-height: 3;
}

.dlbox-tab-content li a{
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dlbox-tab-content li a:hover {
    padding-right: 10px;
    color: var(--error);
}

.dlbox-tab-content li i {
    margin-left: 10px;
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

span.dl-label {
    margin-right: 10px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(---surface-container);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    font-size: var(--font-size-huge);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    line-height: 1;
}

.prev-btn {
    right: 10px;
}

.next-btn {
    left: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.close {
    position: absolute;
    top: 20px;
    left: 30px;
    color: var(---surface-container);
    font-size: var(--font-size-ex);
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/*==================================================================
  Comments Section
==================================================================*/

.comments-area {
    background: var(--surface-container);
    padding: var(--container-padding);
    border-radius: var(--radius-sm);
}

.comments-area .comments-title {
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    font-size:  var(--font-size-large);
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.comments-area .comments-title_m_zero {
    margin: 0;
}

.comments-area .comments-title span {
    color: var(--icon-secondary);
    font-weight: 400;
    margin-left: 10px;
    font-size: var(--font-size-large);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.comments-area > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comments-area ul.children {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-right: 40px;
    position: relative;
}

.comments-area ul.children li.comment {
    margin-top: 20px;
    position: relative;
}

.comments-area ul.children li.comment::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -42px;
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

.comments-area > ul li.comment {
    width: 100%;
    margin-bottom: 25px;
}

.comments-area > ul li.comment > article {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: var(--surface-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    gap: 20px;
    transition: all 0.3s ease;
}

.comments-area > ul li.comment > article:hover {
    background: var(--surface-hover);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
}

.comment-body-wrapper {
    flex-grow: 1;
    width: 100%;
}

.comments-area > ul li.comment > article .comment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.comment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-link {
    display: flex;
    align-items: center;
}

.action-link a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size:  var(--font-size-sm);
    height: 28px;
    padding: 0 15px;
    background-color: var(--surface-container-highest);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.action-link a:hover {
    background-color: var(--surface-subtle);
    color: var(--bg-surface);
}

span.page-numbers.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    color: var(--on-brand-accent);
    background-color: var(--legacy-red);
    padding: 0 5px;
    margin: 3px;
    border: 1px solid var(--legacy-red);
    border-radius: 5px;
}

.comments-area > ul li.comment > article .comment-content {
    font-size:  var(--font-size-md);
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
    width: 100%;
    word-wrap: break-word;
}

.comments-area .comment-respond {
    background: var(--bg-subtle);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.comments-area .comment-reply-title {
    font-size:  var(--font-size-large);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    color: var(--text-primary);
}

.comments-area .comment-form-comment {
    position: relative;
    clear: both;
    width: 100%;
}

.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"], .comments-area textarea {
    background: var(--bg-subtle);
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size:  var(--font-size-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    width: 100%;
    box-shadow: none;
}

.comments-area input:focus, .comments-area textarea:focus {
    border-color: var(--border-color);
    outline: none;
}

.comments-area textarea {
    min-height: 140px;
    resize: vertical;
    margin-top: 20px;
}

/* Form Layout */
.comments-area .comment-respond .comment-form-author, .comments-area .comment-respond .comment-form-email {
    float: right;
    width: 48%;
    position: relative;
}

.comments-area .comment-respond .comment-form-email {
    float: left;
}

.comments-area .comment-respond .comment-form-author i, .comments-area .comment-respond .comment-form-email i, .comments-area .comment-respond .comment-form-comment > span {
    color: var(--icon-secondary);
    position: absolute;
    right: 15px;
    font-size:  var(--font-size-huge);
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
    pointer-events: none;
}

.comments-area .comment-respond .comment-form-author input, .comments-area .comment-respond .comment-form-email input {
    padding-right: 45px;
}

.comments-area .comment-respond .form-submit input[type="submit"] {
    background-color: var(--legacy-red);
    color: var(--on-brand-accent);
    border: none;
    padding: 12px 35px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-width: 140px;
    font-size: var(--font-size-md);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    line-height: 1;
}

p.form-submit {
    text-align: left;
}

.comments-area .comment-respond .form-submit input[type="submit"]:hover {
    box-shadow: inset 0 0 100px 100px rgba(0, 0, 0, 0.2);
}

.comments-area .comment-respond .form-submit input[type="submit"]:active {
    transform: translateY(0);
}

.comments-area .comment-respond .comment-form-author, .comments-area .comment-respond .comment-form-email, .comments-area .comment-respond .form-submit {
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
}

.comment-paginate .page-numbers.dots {
    border: none;
}


.comment-navigation {
    padding: 10px 0;
    font-size:  var(--font-size-sm);
}

.related-post-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
