html:lang(fa),
html:lang(ar),
html:lang(ku) {
    direction: rtl;
}

html:lang(en) {
    direction: ltr;
}

/* فونت‌ها */
html:lang(fa) body {
    font-family: 'Vazirmatn';
}

html:lang(en) body {
    font-family: 'Inter';
}

html:lang(ar) body {
    font-family: 'AmiriQuran';
}

html:lang(ku) body {
    font-family: 'NotoKurdish';
}
.body-ruls {
    background-color: rgb(255, 255, 255);
    font-family: 'Kalameh' !important;
}

.custom-card {
    background-color: rgb(116, 65, 245);
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.custom-card:hover {
    color: #000;
    border: 2px solid #0000000f;
    border-top: 0;
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.body-ruls-index {
    background-color: rgb(255, 255, 255);
    font-family: 'Kalameh' !important;
}

/* سرچ باکس */

.rules-page-search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
}

.rules-page-search-input:focus {
    border-color: rgb(116, 65, 246);
    box-shadow: 0 0 0 0.15rem rgba(116, 65, 246, 0.25);
}

/* هدر قوانین */
.rules-page-header {
    background-color: rgb(116, 65, 246);
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* متن قوانین */
.rules-page-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    background-color: rgb(116, 65, 246);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
    transition: border-radius 0.3s ease;
}
@media (min-width: 768px) AND (max-width: 1024px) {
    .rules-page-content{
        flex-direction: column !important;
    }
    .rules-page-content p , .rules-page-content div{
        width:100% !important;
    }
}

.scrol{
    height: 200px;
    overflow: auto; /* فقط وقتی لازم شد اسکرول نمایش داده شود */
}

/* وقتی باز شد */
.rules-page-content.open {
    border-radius: 16px 16px 0 0 !important;
}
.rules-search-wrapper {
    position: relative;
}

.rules-search-input {
    padding-left: 140px; /* فضا برای دکمه‌ها */
}

.rules-search-actions {
    position: absolute;
    left: 8px; /* اگر RTL نیست، right بگذار */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.rules-search-actions .btn {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}


.rules-page-content a{
    color: #ffffff;
    width: 15%;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 10px;
    border-radius: 8px;
}

.rules-more-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;

    color: #ffffff;
    background-color: rgb(116, 65, 246);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 16px 16px !important;
    border-radius: 12px;
    padding: 16px;
}

.rules-page-content a:hover{
    background-color: #ffffff;
    color: rgb(116, 65, 246);
    transition: 0.5s;
}


/* سایدبار قوانین */
.rules-page-sidebar {
    position: sticky;
    top: 20px;
    background-color: rgb(116, 65, 246);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 16px;
}

.rules-page-sidebar-title {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px dashed #000;
    height: 5vh;
}

.rules-page-link {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.rules-page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.body-Articles-of-law{
    background-color: rgb(255, 255, 255);
    font-family: 'Kalameh' !important;
}
/* کارت ماده قوانین */
.articles-law-card {
    background-color: rgb(116, 65, 246);
    color: #ffffff;
    border-radius: 16px;
    height:410px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.articles-law-card:hover {
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}
.articles-law-title {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}
.articles-law-text {
    background-color: #ffffff;
    text-align: center;
    color: #000;
    height:250px;
    overflow-y: auto;
    padding: 12px;
    font-size: 14px;
    /*line-height: 2.1;*/
}
.shayre{
    color: rgb(247, 124, 68);
    padding: 10px;
    margin: 0 auto;
    background-color: #ffffff;
    width: fit-content;
    border-radius: 8px;
    border: 0;
}
.print{
    color: rgb(167, 158, 154);
    padding: 10px;
    margin: 0 auto;
    background-color: #ffffff;
    width: fit-content;
    border-radius: 8px;
    border: 0;
}
.pagination {
    gap: 6px;
}

.pagination .page-link {
    /*background: rgba(255,255,255,0.7);*/
    /*backdrop-filter: blur(6px);*/
    border-radius: 8px !important;
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #555;
    background: #fff;
    transition: 0.25s ease-in-out;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.pagination .page-link:hover {
    background: #4B7BE5;
    color: #fff;
    border-color: #4B7BE5;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background: linear-gradient(135deg, #4B7BE5, #1E5ED6);
    border-color: #1E5ED6;
    color: #fff;
    font-weight: 600;
}

.pagination .disabled .page-link {
    background: #f1f1f1;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}









    