.border-b {
    border-color: #dadada;
}

/* جدول‌ها */
.prose table,
.prose .wikitable.sortable.jquery-tablesorter {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: right;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

/* ردیف‌ها */
.prose table tr,
.prose .wikitable.sortable.jquery-tablesorter tr {
    display: table-row;
}

/* سلول‌ها */
.prose table th,
.prose table td,
.prose .wikitable.sortable.jquery-tablesorter th,
.prose .wikitable.sortable.jquery-tablesorter td {
    display: table-cell;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    vertical-align: middle;
    color: #4b5563;
}

/* هدر جدول */
.prose table thead,
.prose .wikitable.sortable.jquery-tablesorter thead {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: bold;
}

/* سلول‌های هدر */
.prose table th,
.prose .wikitable.sortable.jquery-tablesorter th {
    font-weight: 600;
}

/* سطرهای زوج */
.prose table tbody tr:nth-child(even),
.prose .wikitable.sortable.jquery-tablesorter tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* هاور روی سطر */
.prose table tbody tr:hover,
.prose .wikitable.sortable.jquery-tablesorter tbody tr:hover {
    background-color: #f3f4f6;
}

/* گرادیانت */
.gradient-bg {
    background: linear-gradient(135deg, #ffd100 0%, #b5961e 100%);
}

/* تیترها */
.prose h1 {
    margin: 1.5rem 0 0.7rem;
    font-size: 32px;
}
.prose h2 {
    font-weight: bold;
    margin: 1.5rem 0 0.7rem;
    font-size: 24px;
}
.prose h3 {
    font-weight: bold;
    margin: 1.5rem 0 0.7rem;
    font-size: 18.72px;
}
.prose h4 {
    font-weight: bold;
    margin: 1.5rem 0 0.7rem;
    font-size: 16px;
}
.prose h5 {
    font-weight: bold;
    margin: 1.5rem 0 0.7rem;
    font-size: 13.28px;
}
.prose h6 {
    font-weight: bold;
    margin: 1.5rem 0 0.7rem;
    font-size: 10.72px;
}

/* پاراگراف */
.prose p {
    line-height: 1.8;

    padding: 6px 0;
}

/* تصاویر */
.prose img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

/* لینک‌ها */
.prose a {
    color: #1D4ED8;
    text-decoration: underline;
}
.prose a:hover {
    color: #1E40AF;
    text-decoration: none;
}


/* پس‌زمینه کلی */

.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}
.prose ul li,
.prose ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #000000;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/*Wiki*/
.prose_wiki h2 {
    border-radius: 10px 10px 0px 0px ;
    background-color: #e4e4e4;
    padding: 10px;
    margin: 1.5rem 0 0.7rem;
    font-size: 24px;
}
/**/
.w-100px{
    width: 100px;
}
.h-100px{
    height: 100px;
}

/*Heder*/

.menu-item {
    position: relative;
}

.menu-item:hover .submenu,
.submenu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}

.submenu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.menu-item:hover::before {
    display: block;
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Submenu animations */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.open {
    max-height: 500px;
}

/* Plus icon rotation */
.plus-icon {
    transition: transform 0.3s ease-in-out;
}

.plus-icon.rotate {
    transform: rotate(45deg);
}

/* Hamburger menu animation */
.hamburger-line {
    transition: all 0.3s ease-in-out;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/*<!--SERCHING-->*/
 .line-clamp-1 {
     display: -webkit-box;
     -webkit-line-clamp: 1;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/*Ads*/
.ads-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.ads-container iframe {
    min-width: 320px;
}
@media (max-width: 650px) {
    .ads-container.md\:block.hidden {
        display: none !important;
    }
}
/**/
 .ads-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 4px;
 }
/* -----  */

/*Heder*/
html {
    margin-top: 0px !important;
}
/* Custom styles for desktop hover menu */
.menu-item {
    position: relative;
}

.menu-item:hover .submenu,
.submenu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}

.submenu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.menu-item:hover::before {
    display: block;
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Submenu animations */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-submenu.open {
    max-height: 500px;
}

/* Plus icon rotation */
.plus-icon {
    transition: transform 0.3s ease-in-out;
}

.plus-icon.rotate {
    transform: rotate(45deg);
}

/* Hamburger menu animation */
.hamburger-line {
    transition: all 0.3s ease-in-out;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/*<!--SERCHING-->*/
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/*---------------------*/
/*کلاس صفحه اصلی */
/*کلاس منو های کشویی*/
 .scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
/*-------------------------*/
/*بخش کلاس های موزیک */

.draggable-box {
    position: fixed;
    cursor: move;
    user-select: none;
    touch-action: none;
    transition: none;
}

.draggable-box.dragging {
    cursor: grabbing;
    opacity: 0.8;
}
.image-overlay {
    transition: all 0.3s ease;
}
.draggable-box:hover .image-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}
.draggable-box:hover .stop-icon {
    opacity: 1;
    transform: scale(1);
}
.stop-icon {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}
/*----------------*/
.progress-container {
    position: relative;
    height: 0.4rem;
    background: #DADEE3;
    border-radius: 9999px;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    overflow: visible;
}
.progress-bar { height:100%; background-color: #ffda00; border-radius:40px; width:0%; transition: width .06s linear; }

.progress-thumb { position:absolute; top:50%; transform:translate(-50%,-50%); width:1.1rem; height:1.1rem; background: #ffc600; border-radius:50%;  z-index:1; transition:left .04s linear, transform .04s linear; touch-action:none; cursor:pointer; will-change:left, transform; }

.progress-thumb.dragging {
    transform: translate(-50%, -50%) scale(1.08);
    transition: none;
}

/* افکت لودینگ */
.progress-loading {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgb(255, 218, 0) 25%, rgba(255, 255, 255, 0.5) 50%, rgb(255, 200, 0) 75%);
    background-size: 200% 100%;
    animation: progressLoading 1.2s linear infinite;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-container.loading .progress-loading {
    opacity: 1;
}

@keyframes progressLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}