@font-face {
    font-family: 'sky';
    src: url('../font/sky.ttf');
}

@font-face {
    font-family: 'sky-bold';
    src: url('../font/sky-bold.woff');
}

@font-face {
    font-family: 'adv';
    src: url('../font/AdvertisingMedium.ttf');
}
@font-face {
    font-family: 'adv-bold';
    src: url('../font/AdvertisingBold.ttf');
}
@font-face {
    font-family: 'adv-extra';
    src: url('../font/AdvertisingExtraBold.ttf');
}

@font-face {
    font-family: 'jazeera-bold';
    src: url('../font/Al-Jazeera-Arabic-Bold.ttf');
}

@font-face {
    font-family: 'UthmanicHafs_v2-1.ttf';
    src: url('../font/UthmanicHafs_v2-1.ttf');
}


@font-face {
    font-family: 'UthmanicHafs1B Ver12';
    src: url('../font/UthmanicHafs1B Ver12.otf');
}

@font-face {
    font-family: 'UthmanTN1Ver10';
    src: url('../font/UthmanTN1Ver10.otf');
}

@font-face {
    font-family: 'UthmanicHafs1Ver09';
    src: url('../font/UthmanicHafs1Ver09.otf');
}

@font-face {
    font-family: 'mcs_GF1';
    src: url('../font/mcs_GF1.ttf');
}

@font-face {
    font-family: 'mcs_GF2';
    src: url('../font/mcs_GF2.ttf');
}

@font-face {
    font-family: 'mcs_GF3';
    src: url('../font/mcs_GF3.ttf');
}

@font-face {
    font-family: 'mcs_GF4';
    src: url('../font/mcs_GF4.ttf');
}

@font-face {
    font-family: 'mcs_GF6';
    src: url('../font/mcs_GF6.ttf');
}

* {
    font-family: 'UthmanTN1Ver10';

}

body {
    background-color: #fbf7ee !important;
    opacity: 1;
}


.bibliography-table td {
    border: none;
    padding: 5px 10px;
}
.bibliography-table label {
    font-weight: bold;
}

.rawy_name {
    color: #c55235 !important;
    text-decoration: none !important
}

.gareeb {
    color: #245c8c !important;
}


.nartorAlfaa {
    font-size: 1.2rem;
    background: #fff;
    border: 3px solid #faf7ee !important;
    color: #afa787 !important;
    padding: 3px 0 !important;
    width: 50px;
    overflow: hidden;
}


.normal-title {
    font-family: 'sky' !important;
    font-size: 26px;
    color: #245c8c !important;
    text-align: center;
}


.hr-title {
    font-family: 'sky-bold' !important;
    font-size: 22px;
    color: #ffffff !important;
    text-align: center;
}

.ribbon-title {
    font-family: 'sky-bold' ;
    font-size: 26px;
    color: #ffffff !important;
    text-align: right;
}

/* Blue ribbon remains in normal order */
.blue-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f3d7a;
    padding: 15px 20px;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

/* Specific class for manuscript container */
.manuscript-layout {
    display: flex;
    flex-direction: row-reverse; /* Apply row-reverse only here */
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}


.hr-text {
    font-size: 22px;
    color: #c55235 !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.hr-text:before {
    content: "";
    height: 2px;
    width: 40%;
    margin-left: 5px;
    margin-right: 5px;
    background-color: #245c8c;
    display: inline-block;
}

.rounded-frame {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.title-cell {
    font-weight: bold;
    text-align: right;
}

.data-cell {
    color: #666;
    text-align: right;
}

.no-data {
    text-align: center;
    color: #999;
    font-weight: bold;
}

.hr-text:after {
    content: "";
    height: 2px;
    width: 40%;
    margin-left: 5px;
    margin-right: 5px;
    background-color: #245c8c;
    display: inline-block;
}


.ContentRadiues {
    background: #fff;
    padding: 15px;
    border-radius: 20px;
}

.boxMedia {
    box-shadow: 0px 0px 5px #afa788;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.boxMedia:hover {
    transform: scale(1.05);
}

/* ai Maagem */
.ia-maagem-item{border:1px solid #e6e6e6;border-radius:12px;padding:12px;margin:10px 0}
.ia-maagem-item-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:flex-start}
.ia-maagem-name{font-weight:800;font-size:18px}
.ia-maagem-meta{display:flex;gap:10px;align-items:center;opacity:.85}
.ia-maagem-score{font-size:12px;opacity:.7}
.ia-maagem-text{margin-top:10px;line-height:1.9}

/* ===== Maagem Neighbors ===== */

.ia-maagem-neighbors-title{
    margin-top:10px;
    font-size:14px;
    opacity:.85;
}

.ia-maagem-neighbors-row{
    margin-top:6px;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.ia-maagem-neighbors-row .ia-nei{
    padding:4px 10px;
    border-radius:999px;
    text-decoration:none;
    background:#cfe7ff;   /* light blue */
    color:#0b3a66;
    font-size:13px;
}

.ia-hl{ background:#fff3a0; padding:0 .15em; border-radius:.2em; }

.ia-hadith-box { padding: 12px 14px; }

.ia-hadith-block {
    margin: 0 0 10px 0;
    padding: 0;
}

.ia-hadith-title {
    margin: 0 0 6px 0;
}

.ia-rawy-list {
    margin: 0;
    padding: 0 18px 0 0; /* RTL */
}

.ia-rawy-list li { margin: 0 0 4px 0; }

.ia-rawy-link { text-decoration: none; }
.ia-rawy-link:hover { text-decoration: underline; }
.ia-rawy-list { list-style: none; margin: 6px 0 0; padding: 0; }
.ia-rawy-list li { display: block; margin: 6px 0; }
.ia-rawy-link { text-decoration: underline; }

.ia-takhreej-row {
    margin: 6px 0;
}

.ia-takhreej-link {
    text-decoration: underline;
}

.ia-takhreej-hidden {
    display: none;
}

.ia-takhreej-toggle {
    margin-top: 8px;
    cursor: pointer;
    color: #0066cc;
    font-weight: 600;
}

.ia-hadith-sharh .ia-sharh-tabs{
    display:flex; gap:10px; flex-wrap:wrap;
    border-bottom:1px solid rgba(0,0,0,.08);
    padding-bottom:10px; margin-bottom:12px;
}
.ia-hadith-sharh .ia-sharh-tab{
    border:1px solid rgba(0,0,0,.08);
    background:#f7f7f7;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
}
.ia-hadith-sharh .ia-sharh-tab.is-active{
    background:#e9e3d2;
    border-color:rgba(0,0,0,.12);
}
.ia-hadith-sharh .ia-sharh-pane{ display:none; }
.ia-hadith-sharh .ia-sharh-pane.is-active{ display:block; }

.ia-hadith-sharh .ia-sharh-text{
    line-height:1.95;
}
.ia-search-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.ia-search-item:hover {
    background: #f8f8f8;
}
.ia-search-item.is-active {
    background: #eaf4ff;
}
.ia-search-snippet {
    font-size: 15px;
}
.ia-search-meta {
    font-size: 13px;
    color: #666;
}
.ia-search-count {
    font-weight: bold;
    margin-bottom: 10px;
}

.ia-search-item{padding:10px;border-bottom:1px solid #eee;cursor:pointer}
.ia-search-item:hover{background:#f8f8f8}
.ia-search-item.is-active{background:#eaf4ff}
.ia-search-meta{font-size:13px;color:#666;margin-top:4px}
.ia-search-count{font-weight:bold;margin:10px 0}

/* hokm block */
.ia-hadith-hokm {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f7f9f8;
    border-radius: 8px;
    border: 1px solid #e2e6e3;
}

/* hokm title line */
.ia-hadith-hokm b {
    color: #444;
}

/* rawy (gold/brown like screenshot) */
.ia-hokm-rawy {
    color: #a6781c;
    font-weight: 600;
}

/* mohadeth (neutral dark) */
.ia-hokm-mohadeth {
    color: #444;
    font-weight: 600;
}

/* ✅ book source (dark red like screenshot) */
.ia-hokm-book {
    color: #8b0000;   /* dark red */
    font-weight: 700;
}

/* optional: page number */
.ia-hadith-hokm .ia-hadith-value {
    margin-top: 6px;
    line-height: 1.9;
}

.ia-hadith-hokm .ia-hadith-value:first-child {
    background: #e7f0ea;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.ia-sharh-pane {
    display: none;
}

.ia-sharh-pane.is-active {
    display: block;
}
.ia-maagem-neighbors-row .ia-nei-center{
    background:#0b3a66;   /* dark blue */
    color:#fff;
    font-weight:700;
}
.ia-maagem-neighbors-row{
    margin-top:6px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.ia-maagem-neighbors-row a.ia-nei{
    display:inline-flex;
    padding:4px 10px;
    border-radius:999px;
    text-decoration:none;
    background:#cfe7ff;
    color:#0b3a66;
    font-size:13px;
    line-height:1.6;
}

.ia-maagem-neighbors-row a.ia-nei-center{
    background:#0b3a66;
    color:#fff;
    font-weight:700;
}

.ia-maagem-neighbors {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e6eef7;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ia-neighbor {
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

/* Light blue neighbors */
.ia-neighbor-link {
    background: #e6f1fb;
    color: #0d4f8b;
}

.ia-neighbor-link:hover {
    background: #cfe6fb;
}

/* Dark blue current term */
.ia-neighbor-current {
    background: #0d4f8b;
    color: white;
    font-weight: 600;
}


/* ✅ Global unified tab style */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs .nav-link {
    font-weight: bold;
    color: #1f3d7a;
    background-color: #f0f0f0; /* ✅ light gray by default */
    border: 1px solid transparent;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0 5px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.nav-tabs .nav-link:hover {
    background-color: #f0f0f0;
}

.nav-tabs .nav-link.active {
    background-color: #c5bea4; /* ✅ Quran-style beige */
    color: white;
    border-color: #c5bea4 #c5bea4 transparent;
    border-bottom: 1px solid #f8f9fa;
    z-index: 2;
    position: relative;
}

nav-item-hover:hover {
    background: #c55235;

}
.header-nav-item .dropdown-item {
    border-bottom: 1px solid #f7f7f7;
    color: #777;
    font-family: sky !important;
    font-weight: 400;
    padding: 6px 18px 6px 18px;
    position: relative;
    text-transform: none;
    letter-spacing: -0.5px;
}


.header-nav-item .dropdown-item:hover {
    color: #ffbb4a;
}

.header-nav-item:hover .header-nav-link {
    color: #ffbb4a;
}

.hadith-box {
    background: #f7f7f7 !important;
    border-radius: 33px;
    height: 300px;
    overflow-y: auto;
}


.scrollspy-example {
    position: relative;
    max-height: 400px;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
}

.toggle-example {
    position: relative;
    max-height: 400px;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
}

.sura-name {
    color: #c55235;
}

.round-brackets {
    color: #c55235;
}

.square-brackets {
    color: #c90076;
}

.curly-brackets {
    color: #245c8c;
}

.aya-tag {
    color: #c55235;
}

.guillemet {
    color: #245c8c;
}

.double-quotes {
    color: #245c8c;
}





.g-title {
    color: #505050;
    background: #f7f7f7;
    margin-bottom: 5px;
    border-right: 3px solid #ccc;
    padding: 10px 10px 10px 0;
    font-size: 22px;

}

.g-paragraph {
    margin: 10px 0;
    padding: 5px 5px 5px 0;
    text-align: justify;
    font-size: 20px;
    line-height: 35px!important;
}

.g-paragraph:hover {
    background-color: #f5f5f5;
}



.g-link {
    color: #f50000;
}

.g-aya {
    color: #494179;
}

.g-square-brackets {
    color: #245c8c;
}

.g-parentheses {
    color: #c55235;
}

.g-quotes {
    color: #aea68a;
}

.g-list {
    color: #f50000;
    text-align: center;
    padding: 0 3px;
    font-size: 21px;
}



.g-symbol{
    color: #f50000;

}



.copy-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none; /* Initially hidden */
    width: 150px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-family: 'sky-bold';

}
.g-copy{
    text-decoration: none;

}

.book-title-link {
    color: inherit; /* Inherit the original color */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
}

.book-title-link:hover {
    text-decoration: none; /* Keep underline off on hover */
    cursor: pointer; /* Show pointer cursor on hover */
}


/* Styled search box and navigation buttons */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.search-input {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 16px;
    width: 100%;
    max-width: 400px;
}

.search-button,
.nav-button {
    border: none;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover,
.nav-button:hover {
    background-color: #e2e6ea;
}

.nav-button-bold {
    font-weight: bold;
}


.scrollable-book-index-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.book-read-header {
    text-align: center;
    border: 1px solid white;
    background: #faf7ee;
    margin: 7px 0;
    padding: 7px;
    border-radius: 10px;
}
.book-header-title{

    color: #202a5a;
    font-family: 'sky-bold';
    font-size: 22px;

}


.section-header-title{

    color: #ffffff;
    font-family: 'sky-bold';
    font-size: 26px;

}
.manuscript-title{
    color: #202a5a;
    font-family: 'sky-bold';
    font-size: 22px;

}


.small-span-book-page{
    font-size: 12px;
    color: #707189;
    padding-right: 3px;
    display: inline-block;

}



.book-index-toggle {
    -webkit-transition: all .50s ease-out;
    transition: all .50s ease-out;
    border-radius: 5px;
    color: #245c8c;
    display: block;
    position: relative;
    cursor: pointer;
    padding: 2px;

}

.book-index-toggle.active {
    -webkit-transition: all .50s ease-in;
    transition: all .50s ease-in;


}

.book-index-toggle.active .fa-angle-right {
    transform: rotate(90deg);
}


.book-index-item {
    cursor: pointer;
    color: #202a5a;
    font-weight: bold;
}

.book-index-item:hover {
    text-decoration: none;
    background-color: #e8e1ca;

}

.book-index-item-active{
    background-color: #e8e1ca;
}


.ico-file {
    font-family: "Font Awesome 5 Free";
    content: "\128462"; /* Unicode for the copy icon */
    color: rosybrown;
    font-size: 19px;
    margin: 0 10px;
    font-style: normal;

}

.ico-files::before {
    font-family: "Font Awesome 5 Free";
    content: "\f0c5"; /* Unicode for the copy icon */
    color: grey;
    font-size: 17px;
    margin: 0 10px;
    font-style: normal;

}




.arabic-double-quotes {
    color: #245c8c;
}

.poetry {
    color: #c55235;
}

.aya {
    font-family: 'UthmanicHafs' !important;
    text-align: justify !important;
    color: #245c8c;
}

.hadith {
    font-family: 'UthmanTN1Ver10' !important;
    font-size: 24px;
    line-height: 1.7;
    text-align: justify;
}

.sep {
    color: #aea68a;
}


.mosshaf-aya-selected {

    background: #f3d29b !important;
}


.mosshaf {
    font-family: 'UthmanicHafs1Ver09' !important;
    font-size: 26px;
    line-height: 1.7;
    text-align: justify !important;
}


.aya-data {
    font-family: 'UthmanicHafs1Ver09' !important;
    font-size: 22px;
    line-height: 1.5;
    text-align: justify !important;
    color: #595c5f;
}

.aya-data-ai {
    font-family: 'UthmanicHafs1Ver09' !important;
    font-size: 24px;
    line-height: 1.5;
    text-align: justify !important;
    color: #0656a7;
}
.mosshaf-data {
    font-size: 24px;
    line-height: 1.7;
    text-align: justify;
}


.mosshaf-sura-name {
    background-image: url("../images/sura_name_frame.webp") !important;
    clear: both;
    padding: 11px 0;
    background-repeat: no-repeat;
    background-position: center center;
    height: auto;
    background-size: cover;
    text-align: center;
}

.mosshaf-aya:hover {
    background: #ffeb3b38;
    cursor: pointer;
}

mark {
    background-color: yellow;
}


search-result:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


.card-title {
    font-size: 20px;
    color: #205c8c;
    cursor: pointer;
    text-decoration: none !important;
}


.bib-title {
    font-size: 18px;
    color: #000000;
    cursor: pointer;
    text-decoration: none !important;
}

.today-hadith {
    font-size: 22px;
    color: #000000;
    cursor: pointer;
    text-decoration: none !important;
}

/*modify the bootstrap calsses*/
.nav-link.active {
    background-color: #245c8c !important;
    color: #e9ecef !important;

}


.nav-link-dark-green {
    font-size: 14px;
    font-weight: bold;
    font-family: 'sky' !important;
    color: #245c8c !important;

}

.nav-link-dark-green.active {
    font-size: 14px;
    font-weight: bold;
    font-family: 'sky' !important;
    color: #FFF !important;
    background-color: #afa788 !important;

}


.nav-link {
    font-family: sky !important;


}


.invalid-feedback {
    color: #afa788 !important;

}


.loader-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    z-index: 9999; /* Ensure the loader is on top of other content */
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 10px;
    padding: 6px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #007bff; /* Change color for better visibility */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TTS Buttons - Shades of AE9969FF */
.btn-play {
    background-color: #AE9969;
    color: white;
    border: none;
}
.btn-play:hover {
    background-color: #947f57;
}

.btn-pause {
    background-color: #c1ae87;
    color: white;
    border: none;
}
.btn-pause:hover {
    background-color: #a8946d;
}

.btn-stop {
    background-color: #e4d4b8;
    color: black;
    border: none;
}
.btn-stop:hover {
    background-color: #cdbb99;
}

/* Force dropdown to look styled */
select#voice-select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    background-image: none;
}

.page-menu-section {
    background: #ffffff;
    /*padding: 13px 0;*/
    /*border-radius: 13px;*/
    box-shadow: 0px 0px 14px #b3acac2e;
    /*margin: 0 0 0 2px;*/
    background-image: url("../images/top_header_2.webp") !important;
    clear: both;
    background-repeat: no-repeat;
    background-position: center center;
    height: auto;
    background-size: cover;

}


/*.mosshaf-border {*/
/*    background-image: url("../images/top.webp") !important;*/
/*    border: none;*/
/*    background-repeat: repeat;*/
/*    padding: 10px;*/

/*}*/

.page-menu-row {
    background: #ffffff21;
    padding: 10px 10px 7px 18px;
    border-radius: 28px;
}

.form-select {
    background-position: left .75rem center !important;
}

.header-nav-link {
    color: #444;
    font-size: 16px;
    font-weight: 100 !important;
    font-family: 'sky-bold' !important;
}

.header-bib {
    color: #245c8c;
    font-size: 32px;
    font-weight: 100 !important;
    font-family: 'sky-bold' !important;
}

.list-group {
    padding-left: 0; /* Remove left padding of the list */
    margin: 0; /* Ensure the list aligns with the parent container */
}

.list-group-item {
    padding-left: 10px; /* Adjust to align content as needed */
    margin: 0; /* Remove extra spacing */
    border: none; /* Optional: if borders look off */
}


.list-group-item:hover {
    background-color: #f9f9f9;
}

.book-title-link {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.book-title-link:hover {
    color: #007bff;
}

.header-bib-small {
    color: #245c8c;
    font-size: 24px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.child-list-group {
    display: none; /* Hidden by default */
    padding-left: 10px;
    width: 120%; /* Adjust width */
}

.translation-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    font-family: 'sky' !important;
    margin-bottom: 1rem;
    color: #1f3d7a; /* Example color - adjust to match your theme */
}

.daily-picks-box {
    border: 2px solid #b08a5a; /* warm brown */
    border-radius: 14px;
    background: #fff;
}

/* Fatwa related list */
.ia-fatwa-related-title{
    margin-top: 12px;
    text-align: right;
    direction: rtl;
    font-weight: 700;
    font-size: 1.08em;
}

.ia-fatwa-related{
    margin-top: 6px;
    text-align: right;
    direction: rtl;
    font-size: 1.06em; /* 1-2 points تقريبًا */
    line-height: 1.6;
}

.ia-fatwa-related-item{
    margin: 0;
    padding: 0;
}

.ia-fatwa-related-item a{
    text-decoration: none;
}
.ia-fatwa-related-item a:hover{
    text-decoration: underline;
}
.ia-fatwa-head, .ia-fatwa-q, .ia-fatwa-best, .ia-fatwa-sec, .ia-fatwa-sum-title{
    text-align:right; direction:rtl;
    margin: 0 0 6px 0;
}

.ia-audio-player {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ia-audio-player audio::-webkit-media-controls-enclosure {
    background-color: #f1f3f4;
}

/* حاوية المراجع الرئيسية */
.ia-sources-box {
    margin-top: 25px !important;
    border-top: 1px solid #e0e0e0 !important;
    padding-top: 15px !important;
    direction: rtl !important; /* ضمان الاتجاه من اليمين لليسار */
    text-align: right !important;
}

/* عنوان القسم */
.ia-sources-title {
    display: block !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    font-size: 1.2em !important;
}

/* السطر الواحد (النقطة + الرابط) */
.ia-source-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important; /* يمنع التباعد الأفقي */
    margin-bottom: 8px !important;
    gap: 8px !important; /* مسافة ثابتة وصغيرة بين النقطة والنص */
}

/* النقطة الزرقاء */
.ia-source-bullet {
    color: #2980b9 !important;
    font-size: 1.5em !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* الرابط */
.ia-source-link {
    color: #2980b9 !important;
    text-decoration: underline !important;
    font-size: 26px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    display: inline-block !important;
}

.ia-source-link:hover {
    color: #1a5276 !important;
    text-decoration: none !important;
}


.subtitle_small {
    color: #245c8c;
    font-size: 16px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitle {
    color: #245c8c;
    font-size: 18px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.subtitle1 {
    color: #245c8c;
    font-size: 18px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitle2 {
    color: #245c8c;
    font-size: 22px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.subtitle3bl {
    color: #245c8c;
    font-size: 26px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitle2w {
    color: #ffffff;
    font-size: 20px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.subtitle2wbold {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.subtitle3wbold {
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitlebr {
    color: #AD9762FF;
    font-size: 18px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitle2br {
    color: #AD9762FF;
    font-size: 22px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}
.subtitle3br {
    color: #AE9969FF;
    font-size: 28px;
    font-weight: 100 !important;
    font-family: 'sky' !important;
}

.preserve-nl{
    white-space: pre-line; /* show \n as line breaks */
    direction: rtl;
    text-align: right;
    line-height: 1.9;
}

.subtitle3bl {
    color: #005C90ff;
    font-size: 26px;
    font-weight: bold !important;
    font-family: 'sky' !important;
}

.dx-last{
    color: #005C90ff;
    font-weight: 900;
    font-size: 1.08em;

}

.dropdown-hover:hover .dropdown-menu {
    display: block;
}

li a {
    display: block;
    padding: 10px;
    background-color: transparent; /* Make the background transparent */
    border: 1px solid #ddd;
    border-radius: 5px; /* Keeps rounded corners */
    text-decoration: none;
    font-size: 16px;
    color: #333;
    text-align: center;
    transition: background-color 0.3s ease;
}

li a:hover {
    background-color: #E9E2D7FF; /* Add hover background color */
    color: white;
}


.QuranTFrame {
    background: url("../images/top.webp");
    height: 23px !important;
    width: 100%;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
}

.QuranBFrame {
    background: url("../images/bottom.webp");
    width: 100%;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
}

.btn-dark-green {
    color: #FFF !important;
    background-color: #afa788 !important;
    border-color: #afa788 !important;
    border-radius: 35px;
    font-family: sky !important;


}


.btn-dark-green:hover {
    color: #fff;
    background-color: #8b8261 !important;
}

.btn-light-green {
    color: #afa788 !important;
    background-color: #ffffff !important;
    border-color: #afa788 !important;
    border-radius: 35px;
    font-family: sky !important;


}


.btn-light-green:hover {
    color: #ffffff !important;
    background-color: #8b8261 !important;
}


.btn {
    font-size: 12px;
}


.QuranCFrame {
    background: url("../images/center.webp");
    width: 100%;
    padding: 0px 18px !important;
    background-size: 100% 33px !important;
}

.mosshaf-aya-no {
    background: url("../images/ayaaSign.svg");
    width: 41px;
    height: 51px;
    color: #fff;
    position: relative;
    top: -6px;
    text-align: center;
    margin: 0 auto;
}

.muted { opacity: .7; font-size: .92em; }

:root{
    --ia-msg-font: 20px;     /* كبّر/صغّر من هنا */
    --ia-msg-line: 1.85;
}

.msg .bubble{
    font-size: var(--ia-msg-font);
    line-height: var(--ia-msg-line);
}

/* لو تريد اختلاف بسيط بين السؤال والجواب */
.msg.user .bubble{ font-size: 24px; }
.msg.ai   .bubble{ font-size: 22px; }


.btn-blue {
    color: #FFF !important;
    background-color: #245c8c !important;
    border-color: #245c8c !important;
    border-radius: 35px;
    font-family: sky !important;
}

.btn-blue:hover {
    color: #fff;
    background-color: #144063 !important;
}

.btn-primary {
    --bs-btn-bg: #245c8c !important;

}


/*.mosshaf-data > * {*/
/*    !* Make the span inherit the styles of the div *!*/
/*    font-size: inherit !important;*/
/*    font-family: inherit !important;*/
/*    !* Add more inherit properties as needed *!*/
/*}*/


.select-radius {
    font-size: 16px;
    border-radius: 18px;
}


.form-control::placeholder {
    color: #adadad; /* replace with the color you want */
}

/* Set styles for all nav links */
.hadith-nav-link {
    border: 0 !important;
    border-bottom: 3px solid #eee !important;
    border-radius: 0 !important;
    color: black !important;
}

/* Set styles for active nav link */
.hadith-nav-link.active {
    color: black !important;
    background-color: transparent !important;
    border-bottom-color: #ffbb4a !important;
}

.hadith-nav-link:hover {
    color: #ffbb4a !important;
    border-bottom-color: #ffbb4a !important;
}

.fa-greater-than {
    color: #bbbbbb;
    font-size: 13px;
    opacity: 0.5;
    font-weight: 900;
    margin-top: 2px;
}


.blue-toggle {
    -webkit-transition: all .50s ease-out;
    transition: all .50s ease-out;
    /*background: #f7f7f7;*/
    background: #ece6d5;
    border-left: 3px solid #245c8c;
    border-radius: 5px;
    color: #245c8c;
    display: block;
    min-height: 20px;
    padding: 12px 20px 12px 10px;
    position: relative;
    cursor: pointer;
    font-weight: 500;
    font-size: 20px;
}

.blue-toggle.active {
    color: #FFF;
    background: #afa788;
    border-left-color: #afa788;
    -webkit-transition: all .50s ease-in;
    transition: all .50s ease-in;


}

.blue-toggle.active .fa-angle-right {
    transform: rotate(90deg);
}



     /* General Layout */
 .container-fluid {
     margin-top: 20px;
 }

.row {
    margin: 0;
}

/* Sidebar Styles */

 .sidebar a {
     color: #367ecc;
     text-decoration: none;
 }

.sidebar a:hover {
    color: #367ecc;  /* Change to your desired hover color */
    background-color:#E9E2D7FF ;
    text-decoration: none;  /* Optional, add underline on hover */
}

.share-link {
    color: #C4B28A;  /* Use your preferred color */
    font-size: 20px;
    text-decoration: none;
}

.share-link i, .share-link span {
    margin-right: 5px;
}

.share-link:hover {
    color: #b39266;  /* Slightly darker hover color */
    text-decoration: underline;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.border-end {
    border-right: 1px solid #ddd !important;
}

.list-group {
    padding: 0;
    margin: 0;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    padding: 10px 15px;
    text-align: right;
    background-color: transparent;
}

.list-group-item:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Main Content Area */
.col-md-10 {
    padding: 15px;
    background-color: #fff;
}

.table {
    width: 100%;
    margin-top: 20px;
}

/* Buttons */
.btn {
    font-size: 0.9rem;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* Search Form */
.form-control {
    border-radius: 0.25rem;
}

.form-select {
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004085;
    border-color: #004085;
}

/* Table */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.table tbody tr:hover {
    background-color: #f2f2f2;
}

.table tbody td {
    text-align: center;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .col-md-2 {
        display: none;
    }

    .col-md-10 {
        width: 100%;
        padding: 10px;
    }

    .table {
        font-size: 0.85rem;
    }
    /* Subject Tree Styles */
    .subject-tree-container {
        font-size: 0.9em;
    }

    .subject-item {
        transition: all 0.2s ease;
    }

    .subject-item:hover {
        background-color: #f8f9fa;
    }

    .subject-header {
        cursor: pointer;
    }

    .toggle-children {
        font-size: 0.8em;
    }

    .subject-actions .btn {
        padding: 0.1rem 0.3rem;
        font-size: 0.7em;
    }

    .children-container {
        border-left: 2px solid #e9ecef;
        padding-left: 10px;
    }

    .verse-item {
        background-color: #f8f9fa;
    }

    .search-result {
        background-color: #fff3cd;
    }

    .breadcrumb-container {
        font-size: 0.8em;
    }

}




