/* Card and detail page title font overrides - Vazirmatn / Inter */
/* Force Vazirmatn on ALL card titles (maximum specificity) - PROFILE & EXPLORE */
.cards-grid .card-title,
.cards-grid .cards-grid__post-card__title,
.cards-grid .study-title-overlay,
.cards-grid .review-title-text,
.cards-grid .new-review-card .review-title-text,
.cards-grid .review-card .review-title-text,
.cards-grid h5.review-title-text,
.cards-grid h6.card-title,
.cards-grid h5.card-title,
.cards-grid h4.card-title,
/* EXPLORE PAGE CARDS */
.explore-card .card-title,
.explore-card h6.card-title,
.explore-card h5.card-title,
.explore-card h4.card-title,
.explore-card .study-title-overlay,
.explore-card .review-title-text,
.explore-card .review-header h5,
.explore-card-wrapper .card-title,
.explore-card-wrapper .study-title-overlay,
.explore-card-wrapper .review-title-text {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 600 !important;
}

/* Force Vazirmatn for card subtitles and text - PROFILE & EXPLORE */
.cards-grid .card-subtitle,
.cards-grid .card-text,
.cards-grid .cards-grid__post-card__subtitle,
.cards-grid .cards-grid__post-card__text,
.cards-grid .card-body,
.cards-grid .unified-card .card-body,
.cards-grid .study-card .card-body,
.cards-grid .publication-card .card-body,
.cards-grid .cards-grid__post-card__body,
.explore-card .card-subtitle,
.explore-card .card-text,
.explore-card .card-body,
.explore-card-wrapper .card-subtitle,
.explore-card-wrapper .card-text,
.explore-card-wrapper .card-body {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

/* IMPORTANT: DO NOT apply fonts to review card body content */
.cards-grid .review-content-area,
.cards-grid .new-review-card .review-content-area,
.explore-card .review-content-area,
.explore-card .new-review-card .review-content-area {
    font-family: inherit !important; /* Use system default */
}

/* DETAIL PAGE ELEMENTS (Study, Publication, Post Details) */
.container .card .card-body h4.card-title,
.container .card-body h4.card-title,
.card h4.card-title,
h4.card-title,
.container .card .card-body p.text-muted,
.container .card-body p.text-muted,
.card-body p.text-muted,
p.text-muted,
p.text-muted.small,
.container .card .card-body strong,
.container .card-body strong,
.card-body strong,
.row strong,
strong {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

/* REVIEW DETAIL PAGE ELEMENTS */
.review-header-card h2.review-title-inline,
h2.review-title-inline,
.review-title-inline,
.review-by a,
.review-by strong a,
.review-header-inline .review-by a,
a.text-decoration-none.text-dark,
.review-info-section p.text-muted,
.external-work-details-section p.text-muted,
.external-work-card p.text-muted {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

/* PUBLICATION DETAIL PAGE ELEMENTS */
.publication-header h1.publication-title,
h1.publication-title,
.publication-title,
.publication-author a strong,
.publication-author strong,
p.publication-author a strong,
p.publication-author strong,
.complete-book-info-section .info-card .info-content span,
.book-info-grid .info-card .info-content span,
.info-card .info-content span,
.info-content span,
.publication-description .description-content,
.publication-main-content .description-content,
.description-content {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

/* Text justification for description content - only when Persian mode is active */
body[data-language-mode="AllPersian"] .publication-description .description-content,
body[data-language-mode="AllPersian"] .publication-main-content .description-content,
body[data-language-mode="AllPersian"] .description-content,
body[data-language-mode="MixedMode"] .publication-description .description-content,
body[data-language-mode="MixedMode"] .publication-main-content .description-content,
body[data-language-mode="MixedMode"] .description-content {
    text-align: justify !important;
    text-align-last: right !important;
    direction: rtl !important;
}

body[data-language-mode="AllEnglish"] .publication-description .description-content,
body[data-language-mode="AllEnglish"] .publication-main-content .description-content,
body[data-language-mode="AllEnglish"] .description-content {
    text-align: justify !important;
    text-align-last: left !important;
    direction: ltr !important;
}

/* English paragraphs in description content */
.description-content[lang="en"],
.description-content[dir="ltr"],
.description-content p[lang="en"],
.description-content p[dir="ltr"] {
    text-align: justify !important;
    text-align-last: left !important; /* For English LTR */
    direction: ltr !important;
}

/* Persian paragraphs in description content */
.description-content[lang="fa"],
.description-content[dir="rtl"],
.description-content p[lang="fa"],
.description-content p[dir="rtl"] {
    text-align: justify !important;
    text-align-last: right !important; /* For Persian RTL */
    direction: rtl !important;
}

/* PUBLICATION DETAIL PAGE - REVIEW CARDS SECTION */
.reviews-of-my-books-section .simple-review-card .simple-review-title,
.reviews-of-my-books-section h6.simple-review-title,
.recent-reviews-list .simple-review-title,
.simple-review-title,
.reviews-of-my-books-section .simple-review-username-link,
.reviews-of-my-books-section .simple-review-username-text,
.recent-reviews-list .simple-review-username-link,
.recent-reviews-list .simple-review-username-text,
.simple-review-username-link,
.simple-review-username-text,
.reviews-of-my-books-section .simple-review-label,
.recent-reviews-list .simple-review-label,
.simple-review-label {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

.reviews-of-my-books-section .simple-review-card .simple-review-title,
.reviews-of-my-books-section h6.simple-review-title,
.recent-reviews-list .simple-review-title,
.simple-review-title {
    font-weight: 600 !important;
}

.reviews-of-my-books-section .simple-review-username-link,
.reviews-of-my-books-section .simple-review-username-text,
.recent-reviews-list .simple-review-username-link,
.recent-reviews-list .simple-review-username-text,
.simple-review-username-link,
.simple-review-username-text {
    font-weight: 500 !important;
}

/* POST DETAIL PAGE ELEMENTS */
article.card .card-header h1.h3,
article.card .card-header h1,
.card-header h1.h3,
h1.h3,
article.card .card-body,
article .card-body {
    font-family: 'Vazirmatn', 'Noto Sans Arabic', 'Tahoma', 'Arial', sans-serif !important;
}

/* English text override (for explicitly marked English titles) */
.cards-grid .review-title-text[lang="en"],
.cards-grid .review-title-text.direction-ltr,
.cards-grid .card-title[lang="en"],
.explore-card .review-title-text[lang="en"],
.explore-card .review-title-text.direction-ltr,
.explore-card .card-title[lang="en"],
h2.review-title-inline[lang="en"],
.review-title-inline[lang="en"],
h1.publication-title[lang="en"],
.publication-title[lang="en"],
h1.h3[lang="en"],
article.card .card-header h1[lang="en"] {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif !important;
}
