:root{
    --black: #100f0f;
    --light-black: #202020;
    --gray:#aaaaaa;
    --white: #fff;
    --light-white: #f5f5f5;
    --light-gray: #dddddd;
    --green:#00674f;
    --color-info: #17a2b8;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --color-secondary: #6c757d;
    --color-primary: #007bff;
    --color-black: #000000;

    /* Box Shadows */
    --shadow-info: 0 4px 10px rgba(23, 162, 184, 0.3);
    --shadow-success: 0 4px 10px rgba(40, 167, 69, 0.3);
    --shadow-danger: 0 4px 10px rgba(220, 53, 69, 0.3);
    --shadow-warning: 0 4px 10px rgba(255, 193, 7, 0.3);
    --shadow-secondary: 0 4px 10px rgba(108, 117, 125, 0.3);
    --shadow-primary: 0 4px 10px rgba(0, 123, 255, 0.3);

    /* Default Border Position */
    --border-position: right;
}
@font-face {
    font-family: "Urdu";
    src: url('../fonts/Urdu.ttf') format('truetype');
}
@font-face {
    font-family: "ArabicBold";
    src: url('../fonts/Amiri-Bold.ttf') format('truetype');
}
@font-face {
    font-family: "ArabicBoldItalic";
    src: url('../fonts/Amiri-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: "ArabicItalic";
    src: url('../fonts/Amiri-Italic.ttf') format('truetype');
}
@font-face {
    font-family: "Arabic";
    src: url('../fonts/Amiri-Regular.ttf') format('truetype');
}
.side-img{
    width: 7.5em;
    height: 6.25em;
    -webkit-border-radius: 0.625em;
    -moz-border-radius: 0.625em;
    border-radius: 0.625em;
}
/* Left-to-Right (LTR) Languages */
.lang_en, .lang_fr, .lang_de, .lang_es, .lang_it, .lang_nl, .lang_pt, .lang_ru, .lang_zh, .lang_ja, .lang_ko, .lang_tr, .lang_hi, .lang_th, .lang_vi, .lang_id, .lang_sw, .lang_fil, .lang_uk, .lang_pl, .lang_ro, .lang_no, .lang_sv, .lang_da, .lang_fi, .lang_el, .lang_hrw, .lang_az, .lang_ka, .lang_hy, .lang_et, .lang_lv, .lang_lt, .lang_cs, .lang_sk, .lang_sl {
    direction: ltr;
    text-align: left;
}

/* Right-to-Left (RTL) Languages */
.lang_ar, .lang_fa, .lang_ur, .lang_he, .lang_ps, .lang_sd {
    text-align: right !important;
    direction: rtl !important;
}
.lang_ar{
    font-family: 'Arabic',sans-serif !important;
}
.lang_ur{
    font-family: "Urdu", serif !important;
}

/* Specific Styling for Headers and Paragraphs in RTL */
.lang_ar h1, .lang_ar h2, .lang_ar h3, .lang_ar h4, .lang_ar h5, .lang_ar h6, .lang_ar p, .lang_ar ul, .lang_ar ul li,
.lang_fa h1, .lang_fa h2, .lang_fa h3, .lang_fa h4, .lang_fa h5, .lang_fa h6, .lang_fa p, .lang_fa ul, .lang_fa ul li,
.lang_ur h1, .lang_ur h2, .lang_ur h3, .lang_ur h4, .lang_ur h5, .lang_ur h6, .lang_ur p, .lang_ur ul, .lang_ur ul li,
.lang_he h1, .lang_he h2, .lang_he h3, .lang_he h4, .lang_he h5, .lang_he h6, .lang_he p, .lang_he ul, .lang_he ul li,
.lang_ps h1, .lang_ps h2, .lang_ps h3, .lang_ps h4, .lang_ps h5, .lang_ps h6, .lang_ps p, .lang_ps ul, .lang_ps ul li,
.lang_sd h1, .lang_sd h2, .lang_sd h3, .lang_sd h4, .lang_sd h5, .lang_sd h6, .lang_sd p, .lang_sd ul, .lang_sd ul li {
    text-align: right !important;
}
.lang_ar h1, .lang_ar h2, .lang_ar h3, .lang_ar h4, .lang_ar h5, .lang_ar h6{
    font-family: 'ArabicBold',sans-serif !important;
}
.lang_ar p, .lang_ar ul, .lang_ar ul li{
    font-family: 'Arabic', sans-serif !important;
}
.lang_ur h1, .lang_ur h2, .lang_ur h3, .lang_ur h4, .lang_ur h5, .lang_ur h6, .lang_ur p, .lang_ur ul, .lang_ur ul li{
    font-family: "Urdu", serif !important;
}

/* RTL Font Sizes */
h1.lang_ar, .lang_ar h1, h1.lang_fa, .lang_fa h1, h1.lang_ur, .lang_ur h1, h1.lang_he, .lang_he h1, h1.lang_ps, .lang_ps h1, h1.lang_sd, .lang_sd h1 {
    font-size: 3.5em !important;
}

h2.lang_ar, .lang_ar h2, h2.lang_fa, .lang_fa h2, h2.lang_ur, .lang_ur h2, h2.lang_he, .lang_he h2, h2.lang_ps, .lang_ps h2, h2.lang_sd, .lang_sd h2 {
    font-size: 3rem !important;
}

h3.lang_ar, .lang_ar h3, h3.lang_fa, .lang_fa h3, h3.lang_ur, .lang_ur h3, h3.lang_he, .lang_he h3, h3.lang_ps, .lang_ps h3, h3.lang_sd, .lang_sd h3 {
    font-size: 2.5rem !important;
}

h4.lang_ar, .lang_ar h4, h4.lang_fa, .lang_fa h4, h4.lang_ur, .lang_ur h4, h4.lang_he, .lang_he h4, h4.lang_ps, .lang_ps h4, h4.lang_sd, .lang_sd h4 {
    font-size: 2rem !important;
}

h5.lang_ar, .lang_ar h5, h5.lang_fa, .lang_fa h5, h5.lang_ur, .lang_ur h5, h5.lang_he, .lang_he h5, h5.lang_ps, .lang_ps h5, h5.lang_sd, .lang_sd h5 {
    font-size: 1.5rem !important;
}

h6.lang_ar, .lang_ar h6, h6.lang_fa, .lang_fa h6, h6.lang_ur, .lang_ur h6, h6.lang_he, .lang_he h6, h6.lang_ps, .lang_ps h6, h6.lang_sd, .lang_sd h6 {
    font-size: 1rem !important;
}

/* Paragraph Styles for RTL */
.lang_ar p, .lang_fa p, .lang_ur p, .lang_he p, .lang_ps p, .lang_sd p {
    font-size: 1.5em !important;
    line-height: 2em;
}
.admin-image{
    width: 3em;
    height: 3em;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    padding: .1em;
    border: .1em solid #0a3c93;
}
.bg-black{
    background: var(--black);
}
.sidebar_dashboard{
    background: var(--black);
    border-bottom: .1em solid var(--gray);
}
.author_ul{
    background: var(--black);
    padding-top: 1em;
    padding-bottom: 1em;
}
.author_ul li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white) !important;
    margin-bottom: .2em;
    -webkit-border-radius: 1em 0 1em 0;
    -moz-border-radius: 1em 0 1em 0;
    border-radius: 1em 0 1em 0;
}
.author_ul li .dashboard-link{
    display: block;
    text-decoration: none;
    padding: .5em;
    width: 100%;
    color: var(--white) !important;
}
.author_ul li:hover,
.author_ul li a.active{
    background: var(--green) !important;
    -webkit-border-radius: 1em 0 1em 0;
    -moz-border-radius: 1em 0 1em 0;
    border-radius: 1em 0 1em 0;
}
.author_ul li:hover a,
.author_ul li:hover .dashboard-link{
    color: var(--white) !important;
}
/* Custom al_ilm_cards */
.al_ilm_card {
    position: relative;
    border-radius: 12px;
    background-color: #fff;
    border: 4px solid transparent;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Default shadow */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Dynamic border based on --border-position */
.al_ilm_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    transition: all 0.3s ease-in-out;
}

/* Custom border position based on --border-position */
.al_ilm_card[data-border-position="left"] {
    border-left: 6px solid var(--color-primary);
}
.al_ilm_card[data-border-position="right"] {
    border-right: 6px solid var(--color-primary);
}
.al_ilm_card[data-border-position="top"] {
    border-top: 6px solid var(--color-primary);
}
.al_ilm_card[data-border-position="bottom"] {
    border-bottom: 6px solid var(--color-primary);
}

/* Hover effect */
.al_ilm_card:hover {
    transform: translateY(-5px);
}

/* Apply box shadows for each card type */
.al_ilm_card-info {
    box-shadow: var(--shadow-info);
}
.al_ilm_card-info[data-border-position="left"] {
    border-left-color: var(--color-info);
}

.al_ilm_card-success {
    box-shadow: var(--shadow-success);
}
.al_ilm_card-success[data-border-position="left"] {
    border-left-color: var(--color-success);
}

.al_ilm_card-danger {
    box-shadow: var(--shadow-danger);
}
.al_ilm_card-danger[data-border-position="left"] {
    border-left-color: var(--color-danger);
}

.al_ilm_card-warning {
    box-shadow: var(--shadow-warning);
}
.al_ilm_card-warning[data-border-position="left"] {
    border-left-color: var(--color-warning);
}

.al_ilm_card-secondary {
    box-shadow: var(--shadow-secondary);
}
.al_ilm_card-secondary[data-border-position="left"] {
    border-left-color: var(--color-secondary);
}

.al_ilm_card-primary {
    box-shadow: var(--shadow-primary);
}
.al_ilm_card-primary[data-border-position="left"] {
    border-left-color: var(--color-primary);
}

/* Fade-in animation for card appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.al_ilm_card {
    animation: fadeIn 0.5s ease-in-out;
}

.al_ilm_buttons{
    display: flex;
    align-items: center;
}
.al_ilm_buttons a:not(:first-child){
    margin-left: .3em !important;
}
/* Block quote */
blockquote {
    position: relative;
    font-style: italic;
    padding: 10px;
    background-color: var(--white);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    color: var(--light-black);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

blockquote::before {
    content: "“";
    font-size: 3rem;
    color: var(--color-primary);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

blockquote:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

blockquote.footer {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
    color: var(--color-primary);
}

blockquote.footer cite {
    font-style: normal;
}

/* Custom Color Variants */
.blockquote-info {
    border-left-color: var(--color-info);
}

.blockquote-success {
    border-left-color: var(--color-success);
}

.blockquote-danger {
    border-left-color: var(--color-danger);
}

.blockquote-warning {
    border-left-color: var(--color-warning);
}

/* Custom Color for Quote Marks */
.blockquote-info::before {
    color: var(--color-info);
}

.blockquote-success::before {
    color: var(--color-success);
}

.blockquote-danger::before {
    color: var(--color-danger);
}

.blockquote-warning::before {
    color: var(--color-warning);
}
.al_ilm_toggler{
    width: 100%;
    font-size: 2em;
    padding-top: .4em;
    padding-bottom: .3em;
    justify-content: flex-end;
}
.al_ilm_toggler_icon{
    border: 1px solid var(--white);
    padding: .3em;
    height: 1.5em;
    width: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}
.post-warning p{
    font-style: normal;
    font-size: 1.2em;
}
.post-links{
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    border-top: .01em solid var(--dark);
    border-bottom: .01em solid var(--dark);
    padding-top: .4em;
    padding-bottom: .4em;
}
.share_links{
    list-style: none;
    display: flex;
}
.share_links li{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em !important;
    height: 2em !important;
}
.share_links li:not(:first-child){
    margin-left: .3em;
}
.share_links a{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--green);
    color: var(--white);
    width: 100%;
    height: 100%;
    -webkit-border-radius: 1em 0 1em 0;
    -moz-border-radius: 1em 0 1em 0;
    border-radius: 1em 0 1em 0;
    -webkit-background-clip: inherit !important;
}
.share_links a:hover{
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: var(--color-success);
}
.social_facebook{
    background: #1877F2 !important;
}
.social_facebook:hover{
    background: #1053a9 !important;
}
.social_twitter{
    background: #000000 !important;
}
.social_twitter:hover{
    background: #202020 !important;
}
.social_linkedin{
    background: #0077B5 !important;
}
.social_linkedin:hover{
    background: #00537e !important;
}
.social_telegram{
    background: #24A1DE !important;
}
.social_telegram:hover{
    background: #1c80b1 !important;
}
.text-strong{
    font-weight: bolder;
    color: var(--color-black) !important;
}
.reply_box{
    height: 10em !important;
    resize: none;
}
.question_input{
    height: 10em !important;
    resize: none;
    border: 1px solid var(--green) !important;
}
.vote_count_ul{
    list-style: none;
    display: flex;
    justify-content: flex-end;
}
.vote_count_ul li:not(:first-child){
    margin-left: 1em;
}
.footer-ul{
    list-style: none !important;
}
.footer-ul li a{
    color: var(--light-white) !important;
}
.footer-ul li:hover a{
    color: var(--green) !important;
}
