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';
}
/* ================= LAWS ================= */
.fv-laws {
    padding: 60px 20px;
}

.fv-laws__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
}


/* ================= LAW CARD ================= */
.fv-law-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 160px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    text-decoration: none;
    color: var(--text);

    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* hover */
.fv-law-card:hover {
    transform: translateY(-8px);
}

/* subtle gradient hover */
.fv-law-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(30,58,138,0.08));
    opacity: 0;
    transition: 0.3s;
}

.fv-law-card:hover::before {
    opacity: 1;
}

/* icon */
.fv-law-card__icon {
    font-size: 28px;
    margin-bottom: 10px;
}

/* title */
.fv-law-card__title {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* highlight (گزینه مهم‌تر) */
.fv-law-card--highlight {
    border: 1px solid var(--primary);
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
    .fv-laws__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .fv-law-card {
        height: 140px;
    }

    .fv-laws__title {
        font-size: 20px;
    }
}
/* ================= LAWS PAGE ================= */
.fv-laws-page {
    padding: 40px 15px;
}

.fv-laws-page__title {
    margin: 30px 0;
    font-size: 24px;
    font-weight: 700;
}

/* ================= SEARCH ================= */
.fv-search-box {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.fv-search-box__title {
    text-align: center;
    margin-bottom: 15px;
}

.fv-search-box__hint {
    background: #eef2ff;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 15px;
}

/* actions */
.fv-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* ================= LAW LIST ================= */
.fv-law-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fv-law-item {
    background: var(--white);
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: 0.2s;
}

.fv-law-item:hover {
    transform: translateY(-3px);
}

/* info */
.fv-law-item__info h6 {
    margin: 0;
    font-size: 14px;
}

.fv-law-item__info span {
    font-size: 12px;
    color: var(--text-light);
}

/* actions */
.fv-law-item__actions a {
    margin-left: 10px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

/* ================= BUTTON EXTENSION ================= */
.fv-btn--accent {
    background: var(--accent);
    color: white;
}

.fv-btn--danger {
    background: #ef4444;
    color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .fv-law-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ================= LAWS PAGE ================= */
.fv-laws-page {
    padding: 40px 15px;
}

/* title */
.fv-laws-page__title {
    margin: 30px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}



/* =========================
   WRAPPER (glass + card)
========================= */
.fv-law-search {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

/* soft AI glow */
.fv-law-search::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

/* =========================
   HEADER
========================= */
.fv-law-search__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 15px;
}

.fv-law-search__title i {
    color: #6366f1;
    margin-left: 6px;
}

/* =========================
   HINT BOX
========================= */
.fv-law-search__hint-box {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.fv-law-search__hint-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fv-law-search__hint-item {
    font-size: 13px;
    color: #374151;
    line-height: 1.8;
    position: relative;
    padding-right: 16px;
}

.fv-law-search__hint-item::before {
    content: "•";
    position: absolute;
    right: 0;
    color: #6366f1;
    font-weight: bold;
}

/* =========================
   INPUT
========================= */
.fv-law-search__input-wrapper {
    margin-bottom: 15px;
}

.fv-law-search__input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.fv-law-search__input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

/* =========================
   ACTION GRID
========================= */
.fv-law-search__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* =========================
   BUTTON BASE
========================= */
.fv-law-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 11px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    border: none;
}

/* hover */
.fv-law-search__btn:hover {
    transform: translateY(-2px);
}

/* =========================
   TITLE SEARCH
========================= */
.fv-law-search__btn--title {
    background: #1f2937;
    color: #fff;
}

/* =========================
   CONTENT SEARCH
========================= */
.fv-law-search__btn--content {
    background: #374151;
    color: #fff;
}

/* =========================
   AI BUTTON (MOST IMPORTANT)
========================= */
.fv-law-search__btn--ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* shimmer effect */
.fv-law-search__btn--ai::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    transition: 0.6s;
}

.fv-law-search__btn--ai:hover::after {
    left: 120%;
}

/* =========================
   RESET
========================= */
.fv-law-search__btn--reset {
    background: #ef4444;
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .fv-law-search {
        padding: 16px;
    }
}
/* ================= LAW LIST ================= */
.fv-law-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* item */
.fv-law-item {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    display: flex;
    justify-content: space-between;
    align-items: center;

    border: 1px solid transparent;
    transition: 0.25s;
}

/* hover */
.fv-law-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* info */
.fv-law-item__info h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.fv-law-item__info span {
    font-size: 12px;
    color: var(--text-light);
}

/* actions */
.fv-law-item__actions {
    display: flex;
    gap: 10px;
}

.fv-law-item__actions a {
    font-size: 13px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);

    transition: 0.2s;
}

.fv-law-item__actions a:hover {
    background: var(--primary);
    color: white;
}

/* ================= SIDEBAR IMPROVED ================= */
.fv-sidebar {
    background: var(--white);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* title */
.fv-sidebar__title {
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

/* links */
.fv-sidebar__link {
    display: block;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);

    transition: 0.2s;
}

.fv-sidebar__link:hover {
    background: var(--bg);
    color: var(--primary);
}

/* active */
.fv-sidebar__link--active {
    background: var(--primary);
    color: white;
}

/* clear filter */
.fv-sidebar a.text-red {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #ef4444;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .fv-law-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .fv-law-item__actions {
        width: 100%;
        justify-content: space-between;
    }

    .fv-search-actions {
        flex-direction: column;
    }

    .fv-btn {
        width: 100%;
    }
}

/* desktop sticky sidebar */
@media (min-width: 992px) {
    .fv-sidebar {
        position: sticky;
        top: 20px;
    }
}

/* ================= TOPBAR ================= */
.fv-laws-topbar {
    margin-bottom: 20px;
    padding: 10px 0;
}

.fv-laws-title {
    font-size: 22px;
    font-weight: 700;
}

/* ================= TOGGLE BUTTON ================= */
.fv-categories-toggle {
    background: linear-gradient(135deg, #6366f1, #1f2937);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ================= PANEL ================= */
.fv-categories-panel {
    transition: all 0.3s ease;
}

/* ================= SIDEBAR ================= */
.fv-sidebar {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* title */
.fv-sidebar__title {
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

/* links */
.fv-sidebar__link {
    display: block;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    transition: 0.2s;
}

.fv-sidebar__link:hover {
    background: #f3f4f6;
}

/* active */
.fv-sidebar__link--active {
    background: #6366f1;
    color: #fff;
}

/* clear */
.fv-sidebar__clear {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #ef4444;
    font-size: 13px;
}

/* ================= MOBILE DRAWER ================= */
@media (max-width: 992px) {

    .fv-categories-panel {
        display: none;
        margin: 10px 0;
        animation: fadeIn 0.25s ease;
    }

    .fv-categories-panel.active {
        display: block;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
    /**/
/* ================= PAGE ================= */
.fv-clause-page {
    min-height: 100vh;
}

/* ================= TITLE ================= */
.fv-clause-page h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #2d2a26;
}

/* ================= SEARCH ================= */
.fv-clause-search-panel {
    background: linear-gradient(145deg, #ffffff, #f8f6f1);
    border-radius: 18px;

    padding: 18px;
    margin-bottom: 20px;

    box-shadow: 0 12px 35px rgba(0,0,0,0.08);

    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= HEADER ================= */
.fv-clause-search-panel__header {
    text-align: center;
    margin-bottom: 15px;
}

.fv-clause-search-panel__header h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.fv-clause-search-panel__header p {
    font-size: 13px;
    color: #6b7280;
}

/* ================= INPUT ================= */
.fv-clause-search-panel__input input {
    width: 100%;
    padding: 12px 14px;

    border-radius: 12px;
    border: 1px solid #e5e7eb;

    background: #fafafa;

    outline: none;

    transition: 0.2s;
}

.fv-clause-search-panel__input input:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ================= ACTIONS ================= */
.fv-clause-search-panel__actions {
    display: flex;
    gap: 10px;

    justify-content: center;

    margin-top: 15px;
}

/* ================= BUTTON SYSTEM ================= */
.fv-btn {
    border: none;
    border-radius: 12px;

    padding: 10px 14px;

    font-size: 14px;
    cursor: pointer;

    transition: 0.2s ease;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    text-decoration: none;
}

/* primary */
.fv-btn--primary {
    background: #111827;
    color: #fff;
}

.fv-btn--primary:hover {
    background: #000;
}

/* dark */
.fv-btn--dark {
    background: #e5e7eb;
    color: #111827;
}

.fv-btn--dark:hover {
    background: #d1d5db;
}

/* ai */
.fv-btn--ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.fv-btn--ai:hover {
    opacity: 0.9;
}

/* danger */
.fv-btn--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.fv-btn--danger:hover {
    background: #fecaca;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .fv-clause-search-panel__actions {
    }

    .fv-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ================= CARDS ================= */
.fv-clause-card {
    background: #fffdf7;
    border-radius: 16px;
    padding: 18px;

    box-shadow:
            0 10px 30px rgba(0,0,0,0.08),
            inset 0 0 20px rgba(0,0,0,0.03);

    transition: 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fv-clause-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 20px 40px rgba(0,0,0,0.12),
            inset 0 0 20px rgba(0,0,0,0.03);
}

/* ================= HEADER ================= */
.fv-clause-card .articles-law-title p {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

/* badge */
.fv-clause-card .badge {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}

/* ================= TEXT ================= */
.fv-clause-card .articles-law-text {
    font-size: 14px;
    line-height: 2.1;
    color: #374151;
    margin-top: 10px;
}

/* متن ماده */
.clause-content-preview {
    max-height: 200px !important;
    overflow-y: auto;
    padding-right: 6px;

    /* اسکرول نرم */
    scroll-behavior: smooth;

    /* فید شدن بالا و پایین (حس حرفه‌ای) */
    /*mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);*/
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 96%, transparent);
}

/* اسکرول بار برای Chrome / Edge */
.clause-content-preview::-webkit-scrollbar {
    width: 6px;
}

.clause-content-preview::-webkit-scrollbar-track {
    background: transparent;
}

.clause-content-preview::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #4f46e5);
    border-radius: 10px;
}

.clause-content-preview::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5, #4338ca);
}

/* برای Firefox */
.clause-content-preview {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 transparent;
}

/* ================= ACTIONS ================= */
.fv-clause-card .print,
.fv-clause-card .shayre {
    font-size: 13px;
    color: #6b7280;
    transition: 0.2s;
}

.fv-clause-card .print:hover {
    color: #111;
}

.fv-clause-card .shayre:hover {
    color: #2563eb;
}

/* ================= EMPTY ================= */
.empty-state i {
    opacity: 0.6;
}

/* ================= PAGINATION ================= */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    background: #f3f4f6;
}

.pagination .active .page-link {
    background: #6366f1;
    color: #fff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .fv-clause-search__form {
        width: 100% !important;
    }

    .fv-clause-card {
        padding: 15px;
    }

}







    