@font-face { font-family: "me_quran"; src: local("me_quran"), url("../fonts/me_quran.ttf"); }
@font-face { font-family: "KFGQPC Uthmanic Script HAFS"; src: local("KFGQPC Uthmanic Script HAFS"), url("../fonts/UthmanicHafs.ttf"); }
@font-face { font-family: "kitab"; src: local("kitab"), url("../fonts/Kitab-Regular.ttf"); }

@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
html {
  scroll-behavior: smooth;
}
body {
  padding-top: 0px;
  padding-bottom: 0px;
  background:#251e20 url(images/main-bg.jpg) repeat center top;
  color:#333;
  font-family: 'Roboto', sans-serif, Tahoma, Arial;
}

a { text-decoration: none; color:#666; }
a:hover { color:#115292; }

.header-wrapper { background:url(images/header-bg.png); }
.header-wrapper .container { background:none; padding-top:0px; }
.ads { margin: 0; padding: 15px 0; text-align: center; }

footer { padding:10px; color:#fff; background-color:#4a3f33; }
footer a, footer a:hover { color:#f6c489; }
.powered { text-align:center; margin:10px 0 0 0; color:#fff; }

.custom-breadcrumb { margin-top: 15px; }
.custom-breadcrumb .breadcrumb { background-color:#f9c875; padding: 15px; border-radius: 5px; }
.custom-breadcrumb .breadcrumb > li + li:before {  color: #666; }
.custom-breadcrumb .breadcrumb > .active {  color: #666; }
.custom-breadcrumb .breadcrumb li a span, .custom-breadcrumb .breadcrumb li a { color: #0b6555 !important; }

.card-custom { margin-bottom: 10px; border:none; border-radius:0; border-bottom:1px solid #1774b1; }
.card-custom .card-header { color:#fff; padding: 10px; background:#4a3f33; border-bottom:5px solid #f9c875; border-radius:0px;  }
.card-custom .card-header:first-child { border-radius: 0; }

.block { border: 1px solid #ddd; background-color:#ffffff; margin-bottom:10px; }

.navbar-collapse { padding-left: 0px; }

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: #666666; } /*ff8a00, 64ad15, 1eaade*/

div.spacer { padding:5px; margin: 0; background-color: #ffffff; border-bottom:1px dotted #666; margin-bottom:10px; }
div:hover.spacer { background-color: #eee; border-bottom:1px dotted #333; }

audio { width:100%; }
#sound { text-align:center; }

.ayat, .ayat4tafseer, .ayat2  {
  font-family:  'KFGQPC Uthmanic Script HAFS';
  font-size: 1.9em;
  line-height: 1.8em;
  font-weight: 500;
}
.surah-text {
  margin-top: 30px;
  text-align: center;
}
.aya-number {
  font-family: "Traditional Arabic", "Times New Roman";
  font-size: 25px;
  white-space: nowrap;
  color: #0e6efd;
}
#translateindex { font-family: 'KFGQPC Uthmanic Script HAFS'; }
#translateindex h1 { padding: 10px 0; margin: 0; color: #333; text-align:center; direction: ltr; }
#translateindex .englishtext { padding: 10px 0; margin: 0; color: #CC0000; text-align:center; direction: ltr; }
#translateindex .translate { margin: 10px 0; text-align:left; direction: ltr; }
#translateindex .translate_rtl { margin: 10px 5px 10px 0; }
#translateindex .ayat, #translateindex .ayat2, #translateindex .translate_rtl { direction: rtl; text-align:right; }
#translateindex .ayat { padding: 10px; margin-bottom: 10px; background-color:#fff; border: 1px solid #cccccc; }
#translateindex .ayat2 { padding: 10px; margin-bottom: 10px; background-color:#f2f2f2; border: 1px solid #cccccc; }

/* Start View All Sorah */
span.ayat { color:#333; padding: 0; }
span:hover.ayat { color:#425406; }
span:active.ayat { color:#425406; }
img.ayatnumber {  margin:0 5px 0 5px; }
/* End View All Sorah */

/* Start tafseer.php */
.tafseer { padding: 5px; margin: 0; color:#333; text-align:justify; }
.tafseer img { padding: 0; margin: 0; border:none; }
.ayat4tafseer {
  position: relative;
  margin-bottom: 25px;
  background-color:#fff;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}
.ayat4tafseer .number { color:#3499cc; }
.ayat4tafseer .author { font-size: .7em; }
.ayat4tafseer img { position:relative; top:1px; }
.ayat4tafseer_text {
  margin-bottom: 25px;
  background-color: #fff;
  font-size: 1.3em;
  line-height: 1.6em;
  color: #000;
}
.ayat4tafseersearch { padding: 10px; margin: 0 5px 25px 5px; background-color:#f2f2f2; border: 1px solid #cccccc; text-align:center; }
.ayat4tafseer_info { font-size: .7em; margin-bottom: 0; line-height: 1em; }
.share-content a { color: #4a3f33; }
.share-content a:hover { color: #f9c875; }

.share { text-align:center; margin-top: 10px;  margin-bottom: 20px; border: 1px solid #ddd; padding: 15px; }
.share h5 { margin-bottom: 15px; }
.share a { margin: 0 15px; font-size: 35px; color: #3499cc; }

.ayat, .ayat2 {
  position: relative;
}

.listen_aya {
  position: absolute;
  left: 0;
  top: 10px;
}

.section-content {
  background: #fff;
  padding: 15px;
  background: rgba(250,250,250,.9);
}

.section-title {
  text-align: center;
  margin: 0 0 20px 0;
  padding: 0;
}

.section-title h1 {
  padding-bottom: 15px;
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 10px 0;
  border-bottom: 4px solid #f9c875;
  display: inline-block;
}

.section-1, .section-2, .section-3 {
  padding: 15px 0;
  margin: 0;
  background: #f2f2f2;
  margin-bottom: 0;
}

.section-1 {
  background:#251e20 url(images/section-bg.jpg) repeat center top;
}

.section-2 {
  background:#251e20;
  border-top: 4px solid #56493d;
  border-bottom: 4px solid #56493d;
}

.section-2 .section-content {
  background:#fff;
}

.section-3 {
  background:#251e20 url(images/section-bg.jpg) repeat center top;
}

.quran-file {
  margin-bottom: 15px;
}

.books {
  margin-top: 30px;
}
.books h1, .books h2 {
  font-size: 22px;
  font-weight: 600;
}
.books .btn {
  color: #fff;
}
.books-type-3 .card-img-top {
  max-height: 250px;
}
.book-image {
  position: relative;
}
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #008CBA;
}
.book-image:hover .overlay {
  opacity: 1;
}
.overlay-text {
  color: #fff;
  font-size: 20px;
  padding: 15px;
}
.overlay-text a, .overlay-text .text-muted {
  color: #fff !important;
}

.books-languages {
  background-color: #fff;
  margin-bottom: 15px;
  padding: 15px;
}

.language-flag {
  border: 0px solid #f9c875;
  margin-top: 20px;
}

.language-flag img {
  width: 50px;
  height: 30px;
}

.language-loop {
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
  background:#251e20 url(images/section-bg.jpg) repeat center top;
}

.language-loop a {
  color: #fff;
}

.language-loop h1 {
  margin-top: 15px;
  padding-top: 0;
  font-weight: 700;
  font-size: 20px;
}

.language-loop h1 a {
  color: #f9c875;
}

.language-count {
  padding-top: 5px;
  padding-bottom: 15px;
}

.language-count span {
  margin: 0 10px;
}

.language-count .fas, .language-count .far {
  color: #f9c875;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #f9c875;
    border-color: #f9c875;
}

.page-link {
    color: #251e20;
}

.page-link:hover {
    color: #f9c875;
}

.flags {
  width: 30px;
  height: 18px;
}

#languages h5 a {
  font-size: 16px;
}
#quran h5 a {
  font-size: 16px;
}
.custom-navbar-brand {
  text-decoration: none !important;
  font-size: 22px;
  font-weight: 600;
}
.custom-nav {
  background-color: rgba(255, 255, 255, .9) !important;
}
@media (max-width: 767px) {
	.ads_hidden{ display:none; }
  .logo { width: 100%; float:none; text-align: center; }
  .ads { width: 100%; float:none; text-align: center; }
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
	.ads_hidden{ display:none; }
}

@media only screen and (min-width: 240px) and (max-width: 320px) {
	.ads_hidden{ display:none; }
}

@media only screen and (max-width: 240px) {
	.ads_hidden{ display:none; }
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
  .logo { width: 100%; float:none; text-align: center; }
  .ads { width: 100%; float:none; text-align: center; }
}
@media all and (device-width: 1024px) and (device-height: 768px) and (orientation:landscape) {
  .logo { width: 100%; float:none; text-align: center; }
  .ads { width: 100%; float:none; text-align: center; }
}

/* ===== Modern Alshabeeb Quran Theme 2026 ===== */
:root{--q-primary:#0c4f42;--q-primary-2:#146b59;--q-deep:#073b32;--q-gold:#c9a45c;--q-cream:#f7f5ef;--q-paper:#fff;--q-text:#17231f;--q-muted:#6c7873;--q-border:#e5e9e6;--q-shadow:0 18px 45px rgba(7,59,50,.10)}
html{scroll-padding-top:95px}
body{background:#f6f7f4;color:var(--q-text);font-family:'Cairo',Tahoma,Arial,sans-serif;line-height:1.8}
a{color:var(--q-primary-2);transition:.2s ease}a:hover{color:var(--q-gold)}
.memorial-bar{background:var(--q-deep);color:#fff;font-size:14px}.memorial-inner{min-height:42px;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center}.memorial-icon{color:#e8cf9b;font-size:17px}.memorial-dua{opacity:.7;font-size:12px}
.memorial-bar-disabled{display:none!important}
.custom-nav{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(18px);border-bottom:1px solid rgba(12,79,66,.08);box-shadow:0 7px 25px rgba(17,35,31,.04);padding:10px 0}.custom-navbar-brand{display:flex;align-items:center;gap:11px;color:var(--q-deep)!important}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,var(--q-primary),var(--q-primary-2));color:#fff;font-family:'KFGQPC Uthmanic Script HAFS';font-size:24px;box-shadow:0 7px 18px rgba(12,79,66,.18)}.brand-copy{display:flex;flex-direction:column;line-height:1.35}.brand-copy strong{font-size:17px}.brand-copy small{font-size:10px;color:var(--q-muted);font-weight:500}.custom-nav .nav-link{font-weight:600;color:#34453f!important;padding:10px 13px!important;border-radius:10px}.custom-nav .nav-link:hover{background:#edf5f2;color:var(--q-primary)!important}
.site-hero{background:radial-gradient(circle at 12% 12%,rgba(201,164,92,.15),transparent 28%),linear-gradient(135deg,#063b32,#0d5d4e);padding:54px 0;position:relative;overflow:hidden}.site-hero:after{content:'۞';position:absolute;left:-30px;bottom:-115px;font-family:'KFGQPC Uthmanic Script HAFS';font-size:340px;color:rgba(255,255,255,.025);pointer-events:none}.hero-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:48px;align-items:center}.hero-copy{color:#fff;position:relative;z-index:2}.hero-kicker{display:inline-block;color:#f0d99f;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:6px 13px;font-size:12px;font-weight:700;margin-bottom:17px}.hero-copy h1{font-size:43px;line-height:1.45;font-weight:800;margin:0 0 15px}.hero-copy h1 span{color:#e7cb8d}.hero-copy p{max-width:600px;color:rgba(255,255,255,.76);font-size:15px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px;position:relative;z-index:3}.hero-btn{border-radius:12px;padding:10px 20px;font-weight:700;border:1px solid transparent;cursor:pointer;pointer-events:auto;position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease}.hero-btn:hover,.hero-btn:focus-visible{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.18);text-decoration:none}.hero-btn:active{transform:translateY(0);box-shadow:0 5px 12px rgba(0,0,0,.14)}.hero-btn.btn-primary{background:#fff;color:var(--q-deep);border-color:#fff}.hero-btn.btn-primary:hover,.hero-btn.btn-primary:focus-visible{background:#e7cb8d;color:#063b32;border-color:#e7cb8d}.hero-btn-light{border-color:rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.05)}.hero-btn-light:hover,.hero-btn-light:focus-visible{background:#fff;color:var(--q-deep);border-color:#fff}.hero-btn:focus-visible{outline:3px solid rgba(231,203,141,.55);outline-offset:3px}
.prayer-widget{background:rgba(255,255,255,.98);border-radius:24px;padding:24px;box-shadow:0 25px 70px rgba(0,0,0,.2);position:relative;z-index:2}.prayer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.prayer-eyebrow{font-size:11px;color:var(--q-gold);font-weight:800}.prayer-head h2{font-size:18px;font-weight:800;margin:2px 0 0;color:var(--q-deep)}.location-btn{width:38px;height:38px;border:0;border-radius:11px;background:#edf5f2;color:var(--q-primary);cursor:pointer}.prayer-date{display:flex;justify-content:space-between;color:var(--q-muted);font-size:11px;margin:12px 0}.next-prayer{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;background:linear-gradient(135deg,#eaf4f0,#f8f5ea);border:1px solid #deebe6;padding:12px 15px;border-radius:14px;margin-bottom:13px}.next-prayer span{font-size:11px;color:var(--q-muted)}.next-prayer strong{color:var(--q-primary);font-size:15px}.next-prayer b{font-variant-numeric:tabular-nums;color:var(--q-deep);font-size:16px}.prayer-times{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.prayer-times>div{text-align:center;padding:9px 4px;border:1px solid var(--q-border);border-radius:11px;background:#fff}.prayer-times span{display:block;font-size:10px;color:var(--q-muted)}.prayer-times strong{font-size:14px;color:var(--q-text);font-variant-numeric:tabular-nums}.prayer-times .is-next{border-color:#d5b76f;background:#fffaf0}.prayer-times .is-next strong{color:#9b762b}.prayer-search{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;margin-top:13px}.prayer-search input{min-width:0;border:1px solid var(--q-border);border-radius:10px;padding:8px 10px;font-family:inherit;font-size:11px}.prayer-search button{border:0;border-radius:10px;background:var(--q-primary);color:#fff;padding:8px 15px;font-family:inherit;font-size:11px;font-weight:700}.prayer-note{font-size:9px;color:#909b96;margin-top:8px;text-align:center}
.site-main{background:#f6f7f4}.container-section{padding:0}.section-1,.section-2,.section-3{background:#f6f7f4!important;border:0!important;padding:46px 0!important}.section-2{background:#eef3f0!important}.section-content{background:transparent!important;padding:0!important}.section-title h1{font-family:'Cairo';font-size:25px!important;color:var(--q-deep);border:0!important;position:relative;padding-bottom:13px!important}.section-title h1:after{content:'';position:absolute;bottom:0;right:50%;transform:translateX(50%);width:45px;height:3px;border-radius:9px;background:var(--q-gold)}
div.spacer{height:100%;background:#fff;border:1px solid var(--q-border)!important;border-radius:13px;padding:13px 15px;margin-bottom:12px;box-shadow:0 5px 15px rgba(10,55,45,.035);transition:.2s ease}div:hover.spacer{background:#fbfdfc;border-color:#b9d3c9!important;transform:translateY(-2px);box-shadow:0 10px 25px rgba(10,55,45,.07)}div.spacer h5{margin:0;font-size:14px}div.spacer h5 a{color:#263832!important;font-weight:600}.modern-card,.card-custom{border:1px solid var(--q-border)!important;border-radius:18px!important;overflow:hidden;box-shadow:0 10px 30px rgba(10,55,45,.06);margin:25px 0;background:#fff}.card-custom .card-header{background:#fff!important;border:0!important;border-bottom:1px solid var(--q-border)!important;color:var(--q-deep)!important;padding:15px 20px}.card-custom .card-header h5{margin:0;font-weight:800}.card-custom .card-body{padding:20px}.custom-breadcrumb .breadcrumb{background:#edf3f0!important;border:1px solid #dfe8e4;padding:10px 14px!important;border-radius:12px!important}.custom-breadcrumb .breadcrumb a{color:var(--q-primary)!important}
.ayat,.ayat4tafseer,.ayat2{font-family:'KFGQPC Uthmanic Script HAFS';font-size:2.05em;line-height:2.05em;color:#17231f}.surah-text{background:#fff;border:1px solid var(--q-border);border-radius:18px;padding:28px;box-shadow:0 10px 30px rgba(10,55,45,.05)}.aya-number{color:var(--q-gold)}.tafseer,.ayat4tafseer_text{line-height:2;color:#283832}.form-control,.form-select,select,input{border-radius:10px!important;border-color:#dbe3df!important}.btn-primary,.page-item.active .page-link{background:var(--q-primary)!important;border-color:var(--q-primary)!important}.page-link{color:var(--q-primary)}
.language-loop{background:linear-gradient(135deg,var(--q-deep),var(--q-primary))!important;border-radius:15px;overflow:hidden}.language-loop h1 a{color:#f0d99f!important}.language-flag img{border-radius:4px;box-shadow:0 2px 5px rgba(0,0,0,.12)}
.site-footer{background:#052f28;color:rgba(255,255,255,.75);padding:42px 0 18px}.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px}.footer-title{font-size:19px;color:#fff;font-weight:800}.site-footer p{max-width:620px;font-size:13px;margin:8px 0}.footer-links{display:flex;gap:16px;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}.footer-links a,.site-footer a{color:#e7cb8d}.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.1);padding-top:16px;margin-top:25px;font-size:10px}.powered{display:none}
@media(max-width:991px){.hero-grid{grid-template-columns:1fr}.hero-copy{text-align:center}.hero-copy p{margin-left:auto;margin-right:auto}.hero-actions{justify-content:center}.site-hero{padding:38px 0}.prayer-widget{max-width:720px;margin:auto}.custom-nav .navbar-collapse{padding-top:10px}.memorial-dua{display:none}}
@media(max-width:767px){.hero-copy h1{font-size:31px}.prayer-widget{padding:16px;border-radius:18px}.prayer-times{grid-template-columns:repeat(3,1fr)}.prayer-search{grid-template-columns:1fr 1fr}.prayer-search button{grid-column:1/-1}.next-prayer{grid-template-columns:1fr auto}.next-prayer b{grid-column:1/-1;text-align:center;font-size:18px}.footer-grid{grid-template-columns:1fr}.footer-links{justify-content:flex-start}.footer-bottom{flex-direction:column}.memorial-inner{font-size:12px}.brand-copy small{display:none}.section-1,.section-2,.section-3{padding:30px 0!important}.ayat,.ayat4tafseer,.ayat2{font-size:1.75em}.surah-text{padding:18px}}


/* ===== Theme Toggle + Haram Live Stream (v2) ===== */
.nav-tools{display:flex;align-items:center;gap:9px;margin-inline-start:12px;order:3}
.theme-toggle{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--q-border);background:var(--q-paper);color:var(--q-text);border-radius:999px;padding:6px 10px 6px 8px;font-family:'Cairo',Tahoma,Arial,sans-serif;font-size:11px;font-weight:700;cursor:pointer;transition:.25s ease;white-space:nowrap}
.theme-toggle:hover{border-color:#b9d3c9;box-shadow:0 5px 15px rgba(10,55,45,.08)}
.theme-toggle-track{position:relative;display:flex;align-items:center;justify-content:space-between;width:48px;height:26px;border-radius:999px;padding:0 6px;background:#edf3f0;color:#8c9994;overflow:hidden}
.theme-toggle-track i{position:relative;z-index:1;font-size:10px}
.theme-toggle-knob{position:absolute;z-index:2;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);transition:transform .25s ease}
html[data-theme="dark"] .theme-toggle-knob{transform:translateX(-22px);background:#1f302b}
html[data-theme="dark"] .theme-toggle-track{background:#203c35;color:#dfc27e}
.theme-toggle:focus-visible{outline:3px solid rgba(201,164,92,.35);outline-offset:2px}

.haram-live-section{padding:40px 0;background:var(--q-paper);border-bottom:1px solid var(--q-border)}
.haram-live-card{display:grid;grid-template-columns:minmax(260px,.42fr) minmax(0,1fr);gap:28px;align-items:center;padding:25px;background:var(--q-cream);border:1px solid var(--q-border);border-radius:24px;box-shadow:var(--q-shadow)}
.haram-live-info{padding:10px 8px}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#b42318;background:#fff1f0;border:1px solid #ffd3cf;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800;margin-bottom:12px}.live-dot{width:8px;height:8px;border-radius:50%;background:#d92d20;box-shadow:0 0 0 0 rgba(217,45,32,.45);animation:livePulse 1.8s infinite}.haram-live-info h2{font-size:25px;color:var(--q-deep);font-weight:800;margin:0 0 8px}.haram-live-info p{color:var(--q-muted);font-size:13px;margin:0 0 17px}.haram-youtube-link{display:inline-flex;align-items:center;gap:8px;background:var(--q-primary);color:#fff!important;border-radius:11px;padding:9px 14px;font-size:12px;font-weight:700}.haram-youtube-link:hover{background:var(--q-primary-2);transform:translateY(-1px)}
.haram-video-wrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#07110e;box-shadow:0 15px 36px rgba(0,0,0,.16)}.haram-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@keyframes livePulse{0%{box-shadow:0 0 0 0 rgba(217,45,32,.45)}70%{box-shadow:0 0 0 8px rgba(217,45,32,0)}100%{box-shadow:0 0 0 0 rgba(217,45,32,0)}}

/* Dark theme */
html[data-theme="dark"]{color-scheme:dark;--q-primary:#56a58d;--q-primary-2:#79bba7;--q-deep:#d9eee7;--q-gold:#d7b96f;--q-cream:#13201c;--q-paper:#182823;--q-text:#e7efec;--q-muted:#9eada8;--q-border:#30433d;--q-shadow:0 18px 45px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:#101a17;color:var(--q-text)}
html[data-theme="dark"] .memorial-bar{background:#08120f}
html[data-theme="dark"] .custom-nav{background:rgba(18,31,27,.96)!important;border-bottom-color:#2a3d36;box-shadow:0 7px 25px rgba(0,0,0,.2)}
html[data-theme="dark"] .custom-navbar-brand{color:#e7efec!important}
html[data-theme="dark"] .custom-nav .nav-link{color:#cad8d3!important}
html[data-theme="dark"] .custom-nav .nav-link:hover{background:#20352f;color:#fff!important}
html[data-theme="dark"] .navbar-toggler{border-color:#41554e}
html[data-theme="dark"] .navbar-toggler-icon{filter:invert(1) grayscale(1)}
html[data-theme="dark"] .prayer-widget{background:#182823;box-shadow:0 25px 70px rgba(0,0,0,.36)}
html[data-theme="dark"] .prayer-head h2,html[data-theme="dark"] .next-prayer b{color:#e6f2ee}
html[data-theme="dark"] .location-btn{background:#213731;color:#79bba7}
html[data-theme="dark"] .next-prayer{background:linear-gradient(135deg,#20352f,#272b21);border-color:#36483f}
html[data-theme="dark"] .prayer-times>div{background:#15231f;border-color:#30433d}
html[data-theme="dark"] .prayer-times .is-next{background:#2c2a1d;border-color:#806d3e}
html[data-theme="dark"] .prayer-times .is-next strong{color:#e0c47d}
html[data-theme="dark"] .prayer-search input{background:#111d19;color:#e7efec;border-color:#30433d!important}
html[data-theme="dark"] .prayer-search input::placeholder{color:#7f918a}
html[data-theme="dark"] .site-main{background:#101a17}
html[data-theme="dark"] .section-1,html[data-theme="dark"] .section-2,html[data-theme="dark"] .section-3{background:#101a17!important}
html[data-theme="dark"] .section-2{background:#13201c!important}
html[data-theme="dark"] .section-title h1{color:#dcebe6}
html[data-theme="dark"] div.spacer,html[data-theme="dark"] .modern-card,html[data-theme="dark"] .card-custom,html[data-theme="dark"] .surah-text,html[data-theme="dark"] .block,html[data-theme="dark"] .section-content,html[data-theme="dark"] .books-languages{background:#182823!important;color:#e7efec;border-color:#30433d!important}
html[data-theme="dark"] div:hover.spacer{background:#1d302a!important;border-color:#49675d!important}
html[data-theme="dark"] div.spacer h5 a,html[data-theme="dark"] h1 a,html[data-theme="dark"] h2 a,html[data-theme="dark"] h3 a,html[data-theme="dark"] h4 a,html[data-theme="dark"] h5 a,html[data-theme="dark"] h6 a{color:#dbe8e3!important}
html[data-theme="dark"] .card-custom .card-header{background:#1c2e28!important;color:#e2eee9!important;border-color:#30433d!important}
html[data-theme="dark"] .custom-breadcrumb .breadcrumb{background:#1b2d27!important;border-color:#30433d}
html[data-theme="dark"] .ayat,html[data-theme="dark"] .ayat4tafseer,html[data-theme="dark"] .ayat2,html[data-theme="dark"] span.ayat,html[data-theme="dark"] .tafseer,html[data-theme="dark"] .ayat4tafseer_text{color:#edf3f1!important;background-color:transparent!important}
html[data-theme="dark"] #translateindex .ayat,html[data-theme="dark"] #translateindex .ayat2,html[data-theme="dark"] .ayat4tafseer,html[data-theme="dark"] .ayat4tafseer_text{background:#182823!important;border-color:#30433d!important}
html[data-theme="dark"] #translateindex h1{color:#e7efec}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] select,html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#111d19!important;color:#e7efec!important;border-color:#30433d!important}
html[data-theme="dark"] table,html[data-theme="dark"] .table{color:#e7efec}
html[data-theme="dark"] .haram-live-section{background:#101a17;border-color:#30433d}
html[data-theme="dark"] .haram-live-card{background:#182823;border-color:#30433d}
html[data-theme="dark"] .haram-live-info h2{color:#e5f0ec}
html[data-theme="dark"] .live-badge{background:#351b19;border-color:#69322e;color:#ffaca4}
html[data-theme="dark"] .site-footer{background:#07110e}

@media(max-width:991px){.custom-nav .container{position:relative}.nav-tools{margin-inline-start:auto}.theme-toggle-label{display:none}.theme-toggle{padding:5px}.haram-live-card{grid-template-columns:1fr}.haram-live-info{text-align:center}.haram-youtube-link{justify-content:center}}
@media(max-width:575px){.haram-live-section{padding:26px 0}.haram-live-card{padding:14px;border-radius:18px;gap:15px}.haram-live-info h2{font-size:21px}.haram-video-wrap{border-radius:13px}.theme-toggle-track{width:44px}.theme-toggle-knob{width:20px}.theme-toggle-label{display:none}}
@media(prefers-reduced-motion:reduce){.live-dot{animation:none}.theme-toggle-knob{transition:none}}

/* ===== Fix Start Reading Hover (v5) ===== */
.hero-actions .hero-btn.btn-primary{
  background:#ffffff !important;
  color:#073b32 !important;
  border-color:#ffffff !important;
}
.hero-actions .hero-btn.btn-primary:hover,
.hero-actions .hero-btn.btn-primary:focus,
.hero-actions .hero-btn.btn-primary:focus-visible{
  background:#e7cb8d !important;
  color:#063b32 !important;
  border-color:#e7cb8d !important;
  box-shadow:0 10px 24px rgba(0,0,0,.18) !important;
  transform:translateY(-2px);
}
.hero-actions .hero-btn.btn-primary:active{
  background:#d8b86f !important;
  color:#063b32 !important;
  border-color:#d8b86f !important;
  transform:translateY(0);
}


/* ===== Unified Internal Pages (v6) ===== */
.internal-only{display:none}.internal-page .home-only{display:none!important}.internal-page .internal-only{display:block}
.internal-page-head{background:radial-gradient(circle at 15% 20%,rgba(201,164,92,.12),transparent 28%),linear-gradient(135deg,#063b32,#0d5d4e);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.internal-page-head-inner{min-height:125px;display:flex;align-items:center;justify-content:flex-start;padding-top:24px;padding-bottom:24px}.internal-page-title{width:100%}.internal-page-eyebrow{display:inline-block;color:#e7cb8d;font-size:11px;font-weight:800;margin-bottom:6px}.internal-page-title h1{margin:0;color:#fff;font-size:30px;line-height:1.5;font-weight:800}
.internal-page .site-main{padding-top:24px;padding-bottom:45px;min-height:45vh}.internal-page .site-main.container.well{background:transparent!important}.internal-page .custom-breadcrumb{margin:0 0 16px}.internal-page .custom-breadcrumb .breadcrumb{margin:0;background:#fff!important;border:1px solid var(--q-border);box-shadow:0 5px 18px rgba(7,59,50,.035)}.internal-page .custom-breadcrumb .breadcrumb-item.active{color:var(--q-muted)}
.internal-page .card-custom,.internal-page .modern-card{margin:0 0 20px;background:var(--q-paper)!important}.internal-page .card-custom .card-header{background:linear-gradient(135deg,#f7faf8,#eef4f1)!important;color:#073b32!important;padding:16px 20px;border-bottom:1px solid #dce8e3!important}.internal-page .card-custom .card-header h5{font-size:18px}.internal-page .card-custom .card-body{background:var(--q-paper);padding:24px}.internal-page audio{width:100%;border-radius:999px;margin:4px 0 16px;display:block}.internal-page label{font-weight:700;color:var(--q-text);margin-bottom:5px}.internal-page .form-control,.internal-page .form-select,.internal-page select,.internal-page input{min-height:44px;background:var(--q-paper);color:var(--q-text);border:1px solid var(--q-border)!important;box-shadow:none!important}.internal-page .form-control:focus,.internal-page .form-select:focus,.internal-page select:focus,.internal-page input:focus{border-color:#80b5a5!important;box-shadow:0 0 0 3px rgba(12,79,66,.08)!important}.internal-page .btn-primary{background:#0c4f42!important;border-color:#0c4f42!important;color:#fff!important;border-radius:11px!important;font-weight:700;min-height:44px;transition:.2s ease}.internal-page .btn-primary:hover,.internal-page .btn-primary:focus{background:#146b59!important;border-color:#146b59!important;transform:translateY(-1px);box-shadow:0 7px 18px rgba(12,79,66,.16)}
.internal-page .ayat,.internal-page .ayat2,.internal-page .ayat4tafseer{color:#17231f!important;line-height:2.15}.internal-page .quran,.internal-page #quranindex,.internal-page #translateindex{background:transparent!important}.internal-page .block{border:1px solid var(--q-border)!important;border-radius:14px!important;background:var(--q-paper)!important;box-shadow:0 5px 18px rgba(7,59,50,.035);overflow:hidden}.internal-page .books-languages{border:1px solid var(--q-border);border-radius:15px;background:var(--q-paper);box-shadow:0 5px 18px rgba(7,59,50,.035)}.internal-page .language-loop{box-shadow:0 8px 24px rgba(7,59,50,.10)}.internal-page .pagination{gap:4px}.internal-page .page-link{border-radius:9px!important;border:1px solid var(--q-border);color:#0c4f42;background:var(--q-paper)}.internal-page .page-link:hover{background:#edf5f2;border-color:#cfe1da}.internal-page .page-item.active .page-link{background:#0c4f42!important;border-color:#0c4f42!important;color:#fff!important}.internal-page table,.internal-page .table{background:var(--q-paper);border-color:var(--q-border)}.internal-page .table>:not(caption)>*>*{border-color:var(--q-border)}
html[data-theme="dark"] .internal-page-head{background:radial-gradient(circle at 15% 20%,rgba(215,185,111,.08),transparent 28%),linear-gradient(135deg,#07130f,#102b23)}html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb{background:#182823!important;border-color:#30433d}html[data-theme="dark"] .internal-page .card-custom .card-header{background:#1c2e28!important;color:#e4efeb!important;border-color:#30433d!important}html[data-theme="dark"] .internal-page .card-custom .card-body{background:#182823!important}html[data-theme="dark"] .internal-page .ayat,html[data-theme="dark"] .internal-page .ayat2,html[data-theme="dark"] .internal-page .ayat4tafseer{color:#edf3f1!important}html[data-theme="dark"] .internal-page .page-link{background:#182823;color:#bfe1d6;border-color:#30433d}html[data-theme="dark"] .internal-page .page-link:hover{background:#20352f}html[data-theme="dark"] .internal-page .block,html[data-theme="dark"] .internal-page .books-languages{background:#182823!important;border-color:#30433d!important}
@media(max-width:767px){.internal-page-head-inner{min-height:unset;display:block;text-align:center;padding-top:24px;padding-bottom:24px}.internal-page-title h1{font-size:23px}.internal-page .site-main{padding-top:16px}.internal-page .card-custom .card-body{padding:16px}.internal-page .ayat,.internal-page .ayat2,.internal-page .ayat4tafseer{font-size:1.65em;line-height:2.1}}

/* V8: robust book cover rendering */
.book-cover-image{object-fit:contain;object-position:center;max-height:310px;padding:7px;background:var(--q-soft);border-radius:12px;}
.book-cover-fallback{object-fit:contain!important;padding:10px;background:linear-gradient(135deg,#f6f8f7,#eef4f1);}
html[data-theme="dark"] .book-cover-fallback, body.dark-mode .book-cover-fallback{background:#17352f;}



/* V11 — Books: Arabic chrome + truly compact, unbreakable covers */
.internal-page{direction:rtl;}
.internal-page .navbar-nav{direction:rtl;}
.custom-nav .navbar-collapse{direction:rtl;}
.custom-nav .navbar-nav.ms-auto{
  margin-right:auto!important;
  margin-left:0!important;
}
.internal-page .custom-breadcrumb .breadcrumb{direction:rtl;text-align:right;}

.book-cover-frame{
  width:64px!important;
  height:82px!important;
  min-width:64px!important;
  min-height:82px!important;
  max-width:64px!important;
  margin:12px auto!important;
  border-radius:9px;
  overflow:hidden;
  background:var(--q-soft) url('../../../images/book-open-navy-gold.png') center/contain no-repeat;
  box-shadow:0 3px 10px rgba(10,61,50,.08);
  display:block;
}
.book-cover-frame .book-cover-link{
  display:block!important;
  width:64px!important;
  height:82px!important;
  min-height:82px!important;
  border-radius:9px;
  background-image:var(--book-cover),url('../../../images/book-open-navy-gold.png');
  background-size:contain,contain;
  background-position:center,center;
  background-repeat:no-repeat,no-repeat;
  background-color:#eef3f0;
}
html[data-theme="dark"] .book-cover-frame,
html[data-theme="dark"] .book-cover-frame .book-cover-link,
body.dark-mode .book-cover-frame,
body.dark-mode .book-cover-frame .book-cover-link{background-color:#17352f;box-shadow:none;}

/* Let book text use the reclaimed space from the smaller cover */
.books .card .row.no-gutters > .col-md-3{flex:0 0 14%!important;max-width:14%!important;}
.books .card .row.no-gutters > .col-md-9{flex:0 0 86%!important;max-width:86%!important;}
.books .card-body{padding:14px 12px!important;}
.books .card-title{font-size:1.05rem!important;line-height:1.7!important;}

@media(max-width:767.98px){
  .book-cover-frame,.book-cover-frame .book-cover-link{width:56px!important;height:72px!important;min-width:56px!important;min-height:72px!important;max-width:56px!important;}
  .books .card .row.no-gutters > .col-md-3,.books .card .row.no-gutters > .col-md-9{flex:0 0 100%!important;max-width:100%!important;}
}

/* === V12: refined dark theme for book pages === */
html[data-theme="dark"] .internal-page .books,
html[data-theme="dark"] .internal-page .books .card,
html[data-theme="dark"] .internal-page .books .card-body,
html[data-theme="dark"] .internal-page .books .row,
body.dark-mode .internal-page .books,
body.dark-mode .internal-page .books .card,
body.dark-mode .internal-page .books .card-body,
body.dark-mode .internal-page .books .row{
  color:#e8f0ed!important;
}

html[data-theme="dark"] .internal-page .books .card,
body.dark-mode .internal-page .books .card{
  background:#16251f!important;
  border:1px solid #2d433a!important;
  box-shadow:0 10px 28px rgba(0,0,0,.18)!important;
}

html[data-theme="dark"] .internal-page .books .card-body,
body.dark-mode .internal-page .books .card-body{
  background:#16251f!important;
}

html[data-theme="dark"] .internal-page .books .card-title,
html[data-theme="dark"] .internal-page .books .card-title a,
html[data-theme="dark"] .internal-page .books h1,
html[data-theme="dark"] .internal-page .books h2,
body.dark-mode .internal-page .books .card-title,
body.dark-mode .internal-page .books .card-title a,
body.dark-mode .internal-page .books h1,
body.dark-mode .internal-page .books h2{
  color:#f2f7f5!important;
  opacity:1!important;
}

html[data-theme="dark"] .internal-page .books .card-text,
html[data-theme="dark"] .internal-page .books p,
html[data-theme="dark"] .internal-page .books .text-muted,
body.dark-mode .internal-page .books .card-text,
body.dark-mode .internal-page .books p,
body.dark-mode .internal-page .books .text-muted{
  color:#c2d0cb!important;
  opacity:1!important;
}

html[data-theme="dark"] .internal-page .books a:not(.page-link):not(.btn),
body.dark-mode .internal-page .books a:not(.page-link):not(.btn){
  color:#83cbb6!important;
}
html[data-theme="dark"] .internal-page .books a:not(.page-link):not(.btn):hover,
body.dark-mode .internal-page .books a:not(.page-link):not(.btn):hover{
  color:#b6e4d6!important;
}

html[data-theme="dark"] .internal-page .books i,
html[data-theme="dark"] .internal-page .books .fa,
html[data-theme="dark"] .internal-page .books .fas,
html[data-theme="dark"] .internal-page .books .far,
body.dark-mode .internal-page .books i,
body.dark-mode .internal-page .books .fa,
body.dark-mode .internal-page .books .fas,
body.dark-mode .internal-page .books .far{
  color:#9fb0aa!important;
}

html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb,
body.dark-mode .internal-page .custom-breadcrumb .breadcrumb{
  background:#14231e!important;
  color:#b9c8c3!important;
  border:1px solid #2d433a!important;
}
html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb a,
body.dark-mode .internal-page .custom-breadcrumb .breadcrumb a{
  color:#dfe9e5!important;
}

html[data-theme="dark"] .internal-page .books-languages,
body.dark-mode .internal-page .books-languages{
  background:linear-gradient(135deg,#173b31,#245c4d)!important;
  border-color:#315f52!important;
  color:#eef7f4!important;
}
html[data-theme="dark"] .internal-page .books-languages h1,
html[data-theme="dark"] .internal-page .books-languages h2,
html[data-theme="dark"] .internal-page .books-languages a,
body.dark-mode .internal-page .books-languages h1,
body.dark-mode .internal-page .books-languages h2,
body.dark-mode .internal-page .books-languages a{
  color:#f4f7f2!important;
}

html[data-theme="dark"] .internal-page .page-link,
body.dark-mode .internal-page .page-link{
  background:#14231e!important;
  color:#c7ddd5!important;
  border-color:#304b41!important;
}
html[data-theme="dark"] .internal-page .page-link:hover,
body.dark-mode .internal-page .page-link:hover{
  background:#203a32!important;
  color:#fff!important;
  border-color:#4e7568!important;
}
html[data-theme="dark"] .internal-page .page-item.active .page-link,
body.dark-mode .internal-page .page-item.active .page-link{
  background:#0f6b58!important;
  color:#fff!important;
  border-color:#0f6b58!important;
}

html[data-theme="dark"] .book-cover-frame,
body.dark-mode .book-cover-frame{
  background-color:#103f34!important;
  border:1px solid #4a7b6d!important;
  box-shadow:0 5px 14px rgba(0,0,0,.20)!important;
}

/* Keep book cards comfortably dark and readable instead of white blocks */
html[data-theme="dark"] .internal-page .books .bg-white,
html[data-theme="dark"] .internal-page .books .bg-light,
body.dark-mode .internal-page .books .bg-white,
body.dark-mode .internal-page .books .bg-light{
  background:#16251f!important;
}

/* Dark theme heading band: remove washed-out mint gradient */
html[data-theme="dark"] .internal-page .books-languages,
body.dark-mode .internal-page .books-languages{
  box-shadow:0 12px 32px rgba(0,0,0,.16)!important;
}

/* ===== V13: Dark Emerald palette + utilities ===== */
html[data-theme="dark"]{
  --q-dark-bg:#071A15;
  --q-dark-header:#0B211B;
  --q-dark-surface:#0D2A22;
  --q-dark-card:#12382E;
  --q-dark-card-hover:#18483B;
  --q-dark-border:#285247;
  --q-dark-text:#F1F5F3;
  --q-dark-muted:#B7C7C1;
  --q-dark-gold:#D8B45B;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .section-1,
html[data-theme="dark"] .section-2,
html[data-theme="dark"] .section-3,
html[data-theme="dark"] .haram-live-section,
html[data-theme="dark"] .site-tools-section{background:var(--q-dark-bg)!important;color:var(--q-dark-text)!important}
html[data-theme="dark"] .custom-nav{background:rgba(11,33,27,.97)!important;border-bottom-color:var(--q-dark-border)!important}
html[data-theme="dark"] .haram-live-card,
html[data-theme="dark"] .prayer-widget,
html[data-theme="dark"] div.spacer,
html[data-theme="dark"] .modern-card,
html[data-theme="dark"] .card-custom,
html[data-theme="dark"] .block,
html[data-theme="dark"] .books-languages{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] div:hover.spacer{background:var(--q-dark-card)!important;border-color:#37695b!important}
html[data-theme="dark"] .site-footer{background:#04100d!important}
html[data-theme="dark"] .internal-page .books .card,
html[data-theme="dark"] .internal-page .books .card-body,
html[data-theme="dark"] .internal-page .books .bg-white,
html[data-theme="dark"] .internal-page .books .bg-light{background:var(--q-dark-card)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .internal-page .books .card:hover{background:var(--q-dark-card-hover)!important}
html[data-theme="dark"] .internal-page .books-languages{background:linear-gradient(135deg,#0D2A22,#12382E)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb,
html[data-theme="dark"] .internal-page .page-link{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .internal-page .books .card-title,
html[data-theme="dark"] .internal-page .books .card-title a,
html[data-theme="dark"] .internal-page .books h1,
html[data-theme="dark"] .internal-page .books h2{color:var(--q-dark-text)!important}
html[data-theme="dark"] .internal-page .books p,
html[data-theme="dark"] .internal-page .books .card-text,
html[data-theme="dark"] .internal-page .books .text-muted{color:var(--q-dark-muted)!important}

.site-tools-section{padding:64px 0;background:linear-gradient(180deg,#f8fbf9 0%,#f2f7f4 100%);border-top:1px solid #e1ebe7;border-bottom:1px solid #e1ebe7}
.tools-section-head{text-align:center;max-width:720px;margin:0 auto 30px}
.tools-section-head>span{display:inline-block;color:#b08a38;font-size:12px;font-weight:800;margin-bottom:7px}
.tools-section-head h2{font-size:30px;font-weight:800;color:#073b32;margin:0 0 9px}
.tools-section-head p{margin:0;color:#66756f;font-size:14px;line-height:1.9}
.site-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.utility-card{background:#fff;border:1px solid #dfe9e5;border-radius:22px;padding:25px;box-shadow:0 16px 45px rgba(7,59,50,.07)}
.utility-card-head{display:flex;align-items:center;gap:13px;margin-bottom:20px}
.utility-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#0c4f42;color:#fff;display:grid;place-items:center;font-size:19px;box-shadow:0 8px 22px rgba(12,79,66,.18)}
.utility-eyebrow{display:block;color:#b08a38;font-size:11px;font-weight:800;margin-bottom:3px}
.utility-card h3{margin:0;color:#073b32;font-size:21px;font-weight:800}
.converter-tabs{display:flex;gap:8px;background:#f1f6f3;border:1px solid #dfe9e5;padding:5px;border-radius:13px;margin-bottom:18px}
.converter-tab{flex:1;border:0;background:transparent;color:#53645e;border-radius:9px;padding:10px 12px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:.2s ease}
.converter-tab:hover{color:#0c4f42;background:#e6f1ed}
.converter-tab.is-active{background:#0c4f42;color:#fff;box-shadow:0 5px 14px rgba(12,79,66,.16)}
.converter-form label,.contact-field label{display:block;color:#334740;font-weight:700;font-size:13px;margin-bottom:7px}
.converter-input-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.converter-form input,.converter-form select,.contact-form input,.contact-form textarea{width:100%;border:1px solid #cfddd7;background:#fff;color:#20342d;border-radius:11px;padding:11px 12px;font-family:inherit;font-size:14px;outline:none;transition:.2s ease;box-shadow:none}
.converter-form input:focus,.converter-form select:focus,.contact-form input:focus,.contact-form textarea:focus{border-color:#6ba592;box-shadow:0 0 0 3px rgba(12,79,66,.08)}
.converter-input-row button,.converter-submit-wide,.contact-submit{border:0;border-radius:11px;background:#0c4f42;color:#fff;font-family:inherit;font-size:13px;font-weight:800;padding:11px 17px;cursor:pointer;transition:.2s ease}
.converter-input-row button:hover,.converter-submit-wide:hover,.contact-submit:hover{background:#146b59;transform:translateY(-1px);box-shadow:0 8px 18px rgba(12,79,66,.16)}
.hijri-fields{display:grid;grid-template-columns:.7fr 1.35fr 1fr;gap:8px;margin-bottom:10px}
.converter-submit-wide{width:100%}
.converter-form.is-hidden{display:none}
.converter-result{margin-top:18px;padding:16px;border-radius:15px;background:linear-gradient(135deg,#eff7f3,#f8fbf9);border:1px solid #d9e7e1;text-align:center}
.converter-result-label{display:block;color:#75857f;font-size:11px;font-weight:700;margin-bottom:5px}
.converter-result strong{display:block;color:#073b32;font-size:19px;line-height:1.8;margin-bottom:3px}
.converter-result small{display:block;color:#66756f;line-height:1.7}
.utility-note{margin:12px 0 0;color:#71817b;font-size:11px;line-height:1.8}
.utility-note i{color:#b08a38;margin-inline-end:4px}
.contact-intro{color:#63736d;font-size:13px;line-height:1.9;margin:-5px 0 16px}
.contact-field{margin-bottom:11px}
.contact-form textarea{resize:vertical;min-height:135px}
.contact-submit{width:100%;min-height:47px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px}
.contact-status{min-height:24px;margin-top:10px;font-size:12px;font-weight:700;text-align:center;color:#53645e}
.contact-status.is-success{color:#14705c}.contact-status.is-error{color:#a9433a}
.contact-honeypot{position:fixed!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}

html[data-theme="dark"] .site-tools-section{border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .tools-section-head h2,
html[data-theme="dark"] .utility-card h3{color:var(--q-dark-text)!important}
html[data-theme="dark"] .tools-section-head p,
html[data-theme="dark"] .contact-intro,
html[data-theme="dark"] .utility-note{color:var(--q-dark-muted)!important}
html[data-theme="dark"] .tools-section-head>span,
html[data-theme="dark"] .utility-eyebrow{color:var(--q-dark-gold)!important}
html[data-theme="dark"] .utility-card{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important;box-shadow:0 18px 44px rgba(0,0,0,.22)}
html[data-theme="dark"] .utility-icon{background:var(--q-dark-card)!important;color:var(--q-dark-gold)!important;border:1px solid var(--q-dark-border)}
html[data-theme="dark"] .converter-tabs{background:#091e19!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .converter-tab{color:var(--q-dark-muted)!important}
html[data-theme="dark"] .converter-tab:hover{background:var(--q-dark-card)!important;color:var(--q-dark-text)!important}
html[data-theme="dark"] .converter-tab.is-active{background:var(--q-dark-card-hover)!important;color:#fff!important}
html[data-theme="dark"] .converter-form label,
html[data-theme="dark"] .contact-field label{color:#d8e5e0!important}
html[data-theme="dark"] .converter-form input,
html[data-theme="dark"] .converter-form select,
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea{background:#091e19!important;color:var(--q-dark-text)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .converter-result{background:linear-gradient(135deg,#0B211B,#12382E)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] .converter-result-label,
html[data-theme="dark"] .converter-result small{color:var(--q-dark-muted)!important}
html[data-theme="dark"] .converter-result strong{color:var(--q-dark-text)!important}
html[data-theme="dark"] .converter-input-row button,
html[data-theme="dark"] .converter-submit-wide,
html[data-theme="dark"] .contact-submit{background:var(--q-dark-card-hover)!important;border:1px solid #37695b!important}
html[data-theme="dark"] .converter-input-row button:hover,
html[data-theme="dark"] .converter-submit-wide:hover,
html[data-theme="dark"] .contact-submit:hover{background:#205444!important}

@media(max-width:991px){.site-tools-grid{grid-template-columns:1fr}.site-tools-section{padding:48px 0}}
@media(max-width:575px){.utility-card{padding:18px;border-radius:18px}.tools-section-head h2{font-size:24px}.converter-input-row{grid-template-columns:1fr}.converter-input-row button{width:100%}.hijri-fields{grid-template-columns:1fr}.utility-card-head{align-items:flex-start}.utility-card h3{font-size:18px}}

/* V16 — standalone utility pages */
.utility-page{padding:54px 0 72px;min-height:calc(100vh - 290px);background:linear-gradient(180deg,#f6f8f7 0%,#fff 100%)}
.utility-page-container{max-width:980px}
.utility-page-heading{display:flex;align-items:center;gap:18px;margin-bottom:28px;padding:0 4px}
.utility-page-icon{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#0c4f42;color:#d8b45b;font-size:22px;box-shadow:0 10px 24px rgba(12,79,66,.16);flex:0 0 auto}
.utility-page-heading h1{font-size:32px;line-height:1.35;margin:2px 0 7px;color:#15382f;font-weight:800}
.utility-page-heading p{margin:0;color:#6c7d77;font-size:15px;line-height:1.9}
.utility-page-card{background:#fff;border:1px solid #dde7e3;border-radius:22px;padding:30px;box-shadow:0 18px 48px rgba(25,65,53,.08)}
.utility-page-card-wide{max-width:820px;margin:0 auto}
.utility-page .converter-tabs{margin-bottom:24px;background:#eef4f1;padding:5px;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:5px}
.utility-page .converter-tab{padding:12px 16px;border-radius:10px;font-size:14px}
.utility-page .converter-form{padding-top:3px}
.utility-page .converter-form label,.utility-page .contact-field label{font-size:14px;margin-bottom:8px;color:#2b443b}
.utility-page .converter-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.utility-page .converter-input-row input,.utility-page .converter-form select,.utility-page .converter-form input,.utility-page .contact-form input,.utility-page .contact-form textarea{min-height:50px;border-radius:12px;font-size:15px;padding:12px 14px}
.utility-page .converter-input-row button,.utility-page .converter-submit-wide{min-height:50px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.utility-page .hijri-fields{display:grid;grid-template-columns:1fr 1.5fr 1.2fr;gap:10px;margin-bottom:12px}
.utility-page .converter-result{margin-top:24px;padding:21px 22px;border-radius:16px;background:#f4f8f6;border:1px solid #dce8e3;text-align:center}
.utility-page .converter-result-label{display:block;color:#7b8a85;font-size:12px;margin-bottom:7px}
.utility-page .converter-result strong{display:block;color:#0c4f42;font-size:21px;margin-bottom:5px}
.utility-page .converter-result small{color:#778680}
.utility-page-note{display:flex;align-items:flex-start;gap:9px;margin-top:18px;padding:13px 15px;border-radius:12px;background:#fffaf0;color:#786332;font-size:13px;line-height:1.8;border:1px solid #f0dfb4}
.contact-page-card{max-width:850px;margin:0 auto}
.contact-form-standalone .contact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-form-standalone .contact-field{margin-bottom:17px}
.field-with-icon{position:relative}
.field-with-icon>i{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#789189;z-index:2}
.field-with-icon input{padding-right:43px!important}
.contact-form-standalone textarea{min-height:185px!important;line-height:1.8}
.contact-field-hint{font-size:11px;color:#889690;margin-top:6px}
.contact-form-standalone .contact-submit{max-width:260px;margin:7px auto 0;min-height:50px;border-radius:13px}

html[data-theme="dark"] .utility-page{background:linear-gradient(180deg,var(--q-dark-bg,#071a15) 0%,#091e19 100%)}
html[data-theme="dark"] .utility-page-heading h1{color:#f1f5f3!important}
html[data-theme="dark"] .utility-page-heading p{color:#b7c7c1!important}
html[data-theme="dark"] .utility-page-icon{background:#12382e!important;color:#d8b45b!important;border:1px solid #285247}
html[data-theme="dark"] .utility-page-card{background:#0d2a22!important;border-color:#285247!important;box-shadow:none!important}

/* Installer appearance presets (v1.1) */
body.color-emerald{--q-primary:#0c4f42;--q-primary-2:#146b59;--q-deep:#073b32;--q-gold:#c9a45c;--q-soft:#edf5f2;--q-hero-a:#063b32;--q-hero-b:#0d5d4e}
body.color-navy{--q-primary:#17456b;--q-primary-2:#28709d;--q-deep:#102f4b;--q-gold:#e0bd62;--q-dark-gold:#e0bd62;--q-soft:#edf4f8;--q-hero-a:#0c2942;--q-hero-b:#1b5a85}
body.color-burgundy{--q-primary:#743947;--q-primary-2:#a05264;--q-deep:#4b202b;--q-gold:#d2ad67;--q-soft:#f8eff1;--q-hero-a:#401923;--q-hero-b:#813f50}
body.color-indigo{--q-primary:#4a4788;--q-primary-2:#6965aa;--q-deep:#302d61;--q-gold:#d1b56d;--q-soft:#f1f0f8;--q-hero-a:#292650;--q-hero-b:#55519a}
body.color-sand{--q-primary:#806039;--q-primary-2:#a17d4d;--q-deep:#513a22;--q-gold:#d8b760;--q-soft:#f7f2e9;--q-hero-a:#3d2b1b;--q-hero-b:#80603c}
body[class*="color-"] .site-hero{background:radial-gradient(circle at 12% 12%,rgba(255,255,255,.11),transparent 28%),linear-gradient(135deg,var(--q-hero-a),var(--q-hero-b))}
body[class*="color-"] .memorial-bar{background:var(--q-deep)}
body[class*="color-"] .custom-nav{border-bottom-color:color-mix(in srgb,var(--q-primary) 12%,transparent)}
body[class*="color-"] .custom-nav .nav-link:hover{background:var(--q-soft);color:var(--q-primary)!important}
body[class*="color-"] .brand-mark,body[class*="color-"] .utility-icon,body[class*="color-"] .utility-page-icon{background:linear-gradient(145deg,var(--q-primary),var(--q-primary-2))!important}
body[class*="color-"] .location-btn,body[class*="color-"] .custom-breadcrumb .breadcrumb{background:var(--q-soft)!important}
body[class*="color-"] .next-prayer{background:linear-gradient(135deg,var(--q-soft),#fffaf0)}
body[class*="color-"] .prayer-search button,body[class*="color-"] .contact-submit,body[class*="color-"] .converter-submit-wide,body[class*="color-"] .converter-input-row button,body[class*="color-"] .converter-tab.is-active{background:var(--q-primary)!important}
body[class*="color-"] .internal-page .btn-primary,body[class*="color-"] .internal-page .page-item.active .page-link{background:var(--q-primary)!important;border-color:var(--q-primary)!important}
body[class*="color-"] .internal-page-head{background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.08),transparent 28%),linear-gradient(135deg,var(--q-hero-a),var(--q-hero-b))!important}
body[class*="color-"] .site-footer{background:var(--q-deep)}

body.appearance-classic{font-family:Tahoma,Arial,sans-serif}
body.appearance-classic .site-hero{padding:44px 0}
body.appearance-classic .hero-copy h1{font-family:'KFGQPC Uthmanic Script HAFS',Tahoma,Arial,sans-serif;font-weight:600}
body.appearance-classic .prayer-widget,body.appearance-classic .modern-card,body.appearance-classic .card-custom,body.appearance-classic .utility-card,body.appearance-classic .utility-page-card{border-radius:8px!important;box-shadow:0 10px 25px rgba(0,0,0,.09)}
body.appearance-classic .brand-mark,body.appearance-classic .hero-btn,body.appearance-classic .custom-nav .nav-link{border-radius:5px}
body.appearance-classic .section-title h1:after{border-radius:0;width:70px;height:2px}

body.appearance-compact .custom-nav{padding:5px 0}
body.appearance-compact .memorial-inner{min-height:34px}
body.appearance-compact .site-hero{padding:30px 0}
body.appearance-compact .hero-copy h1{font-size:35px;line-height:1.35}
body.appearance-compact .hero-copy p{font-size:13px}
body.appearance-compact .hero-grid{gap:30px}
body.appearance-compact .prayer-widget{padding:17px;border-radius:16px}
body.appearance-compact .section-1,body.appearance-compact .section-2,body.appearance-compact .section-3{padding:30px 0!important}
body.appearance-compact .utility-page{padding:36px 0 48px}
body.appearance-compact .utility-page-card{padding:22px}
html[data-theme="dark"] .utility-page .converter-tabs{background:#091e19!important;border:1px solid #285247}
html[data-theme="dark"] .utility-page .converter-result{background:#091e19!important;border-color:#285247!important}
html[data-theme="dark"] .utility-page .converter-result strong{color:#f1f5f3!important}
html[data-theme="dark"] .utility-page .converter-result small,html[data-theme="dark"] .contact-field-hint{color:#9eb1aa!important}
html[data-theme="dark"] .utility-page-note{background:#17271e!important;border-color:#4b4930!important;color:#d7c890!important}

@media(max-width:767px){
 .utility-page{padding:34px 0 52px}.utility-page-heading{align-items:flex-start}.utility-page-heading h1{font-size:25px}.utility-page-icon{width:50px;height:50px;border-radius:15px}.utility-page-card{padding:20px;border-radius:17px}.utility-page .converter-input-row{grid-template-columns:1fr}.utility-page .hijri-fields{grid-template-columns:1fr}.contact-form-standalone .contact-form-grid{grid-template-columns:1fr}.contact-form-standalone .contact-submit{max-width:none;width:100%}
}

/* V18: Breadcrumb contrast fix across all pages */
.internal-page .custom-breadcrumb .breadcrumb li a,
.internal-page .custom-breadcrumb .breadcrumb li a span,
.custom-breadcrumb .breadcrumb li a,
.custom-breadcrumb .breadcrumb li a span {
  color: #0b6555 !important;
  opacity: 1 !important;
  font-weight: 700;
}
.internal-page .custom-breadcrumb .breadcrumb-item.active,
.custom-breadcrumb .breadcrumb-item.active {
  color: #66756f !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb li a,
html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb li a span,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb li a,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb li a span,
body.dark-mode .internal-page .custom-breadcrumb .breadcrumb li a,
body.dark-mode .internal-page .custom-breadcrumb .breadcrumb li a span,
body.dark-mode .custom-breadcrumb .breadcrumb li a,
body.dark-mode .custom-breadcrumb .breadcrumb li a span {
  color: #f1f5f3 !important;
}
html[data-theme="dark"] .internal-page .custom-breadcrumb .breadcrumb-item.active,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb-item.active,
body.dark-mode .internal-page .custom-breadcrumb .breadcrumb-item.active,
body.dark-mode .custom-breadcrumb .breadcrumb-item.active {
  color: #b7c7c1 !important;
}


/* V21 breadcrumb canonical visibility */
html:not([data-theme="dark"]) .custom-breadcrumb .breadcrumb a,
html:not([data-theme="dark"]) .custom-breadcrumb .breadcrumb a span,
html:not([data-theme="dark"]) .custom-breadcrumb .breadcrumb-home-v21 a {
  color:#0b6555 !important;
  opacity:1 !important;
  visibility:visible !important;
}
html[data-theme="dark"] .custom-breadcrumb .breadcrumb a,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb a span,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb-home-v21 a {
  color:#f1f5f3 !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* V22 final route/breadcrumb cleanup */
html[data-theme="light"] .custom-breadcrumb .breadcrumb-link-force,
html[data-theme="light"] .custom-breadcrumb .breadcrumb-link-force span{color:#0b6555!important;opacity:1!important;visibility:visible!important}
html[data-theme="dark"] .custom-breadcrumb .breadcrumb-link-force,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb-link-force span{color:#f1f5f3!important;opacity:1!important;visibility:visible!important}
body.home-page .site-tools-section, body.home-page #site-tools{display:none!important}


/* V23 — breadcrumb home/link contrast final fix */
html:not([data-theme="dark"]) .custom-breadcrumb .breadcrumb a,
html:not([data-theme="dark"]) .custom-breadcrumb .breadcrumb a span,
html[data-theme="light"] .custom-breadcrumb .breadcrumb a,
html[data-theme="light"] .custom-breadcrumb .breadcrumb a span {
  color:#0b6555 !important;
  opacity:1 !important;
  visibility:visible !important;
}
html[data-theme="dark"] .custom-breadcrumb .breadcrumb a,
html[data-theme="dark"] .custom-breadcrumb .breadcrumb a span {
  color:#f1f5f3 !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* FINAL HARAM LIVE LAYOUT - V29 */
.haram-live-section{
  padding:36px 0 !important;
}

.haram-live-section > .container{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
}

.haram-live-section .haram-live-card,
.haram-live-section .haram-live-card--video-only{
  display:block !important;
  width:min(100%, 1050px) !important;
  max-width:1050px !important;
  margin:0 auto !important;
  padding:22px !important;
  box-sizing:border-box !important;
}

.haram-live-section .haram-live-info,
.haram-live-section .haram-youtube-link{
  display:none !important;
}

.haram-live-section .haram-video-wrap{
  position:relative !important;
  display:block !important;
  width:100% !important;
  max-width:960px !important;
  margin:0 auto !important;
  aspect-ratio:16 / 9 !important;
  overflow:hidden !important;
  border-radius:20px !important;
}

.haram-live-section .haram-video-wrap iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  border:0 !important;
  display:block !important;
}

@media (max-width:991px){
  .haram-live-section .haram-live-card,
  .haram-live-section .haram-live-card--video-only{
    width:calc(100% - 32px) !important;
    padding:16px !important;
  }
}

@media (max-width:575px){
  .haram-live-section{
    padding:22px 0 !important;
  }

  .haram-live-section .haram-live-card,
  .haram-live-section .haram-live-card--video-only{
    width:calc(100% - 20px) !important;
    padding:10px !important;
  }

  .haram-live-section .haram-video-wrap{
    border-radius:14px !important;
  }
}

/* SEO H1 fix - preserve hero appearance */
.hero-main-title{
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: inherit;
}

/* V34 - Lite YouTube: load the heavy player only after user interaction */
.youtube-lite{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  cursor:pointer;
  overflow:hidden;
  background:#07110e;
  font-family:inherit;
}
.youtube-lite img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.youtube-lite:after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.38));
}
.youtube-lite-play{
  position:absolute;
  z-index:2;
  top:50%;
  left:50%;
  width:68px;
  height:68px;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#0c4f42;
  font-size:24px;
  box-shadow:0 12px 35px rgba(0,0,0,.28);
  transition:transform .2s ease;
}
.youtube-lite:hover .youtube-lite-play,
.youtube-lite:focus-visible .youtube-lite-play{
  transform:translate(-50%,-50%) scale(1.08);
}
.youtube-lite-label{
  position:absolute;
  z-index:2;
  right:16px;
  bottom:14px;
  left:16px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  text-shadow:0 1px 4px rgba(0,0,0,.65);
}

/* Mobile anchor navigation fix - stable */
#quran,
#tafseer,
#languages,
#haram-live{
  scroll-margin-top:90px;
}

@media (max-width:991px){
  #quran,
  #tafseer,
  #languages,
  #haram-live{
    scroll-margin-top:80px;
  }
}
/* V35.2 - Compact utility pages on mobile */
@media (max-width: 575px){

  .utility-page{
    padding:22px 0 34px;
    min-height:auto;
  }

  .utility-page-container{
    padding-left:14px;
    padding-right:14px;
  }

  .utility-page-heading{
    gap:12px;
    margin-bottom:18px;
    padding:0;
    align-items:flex-start;
  }

  .utility-page-icon{
    width:44px;
    height:44px;
    flex:0 0 44px;
    border-radius:13px;
    font-size:18px;
  }

  .utility-page-heading h1{
    font-size:22px;
    line-height:1.45;
    margin:0 0 5px;
  }

  .utility-page-heading p{
    font-size:13px;
    line-height:1.7;
  }

  .utility-page-card{
    padding:16px;
    border-radius:16px;
  }

  .utility-page .converter-tabs{
    margin-bottom:16px;
    padding:4px;
    border-radius:12px;
  }

  .utility-page .converter-tab{
    padding:9px 8px;
    font-size:12px;
  }

  .utility-page .converter-form label,
  .utility-page .contact-field label{
    font-size:12px;
    margin-bottom:5px;
  }

  .utility-page .converter-input-row input,
  .utility-page .converter-form select,
  .utility-page .converter-form input,
  .utility-page .contact-form input,
  .utility-page .contact-form textarea{
    min-height:44px;
    padding:9px 11px;
    font-size:14px;
  }

  .utility-page .converter-input-row{
    gap:8px;
  }

  .utility-page .converter-input-row button,
  .utility-page .converter-submit-wide{
    min-height:44px;
    padding:0 16px;
    font-size:13px;
  }

  .utility-page .converter-result{
    margin-top:16px;
    padding:15px 14px;
    border-radius:14px;
  }

  .utility-page .converter-result-label{
    font-size:11px;
    margin-bottom:4px;
  }

  .utility-page .converter-result strong{
    font-size:18px;
    line-height:1.6;
    margin-bottom:3px;
  }

  .utility-page .converter-result small{
    font-size:12px;
    line-height:1.6;
  }

  .utility-page-note{
    margin-top:14px;
    padding:10px 12px;
    border-radius:11px;
    font-size:12px;
    line-height:1.7;
  }

  .contact-form-standalone textarea{
    min-height:140px!important;
  }

  .contact-form-standalone .contact-field{
    margin-bottom:12px;
  }
}
/* V35.3 - Final compact utility mobile layout */
@media (max-width:575px){

  /* Compact internal page header */
  .internal-page-head-inner{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }

  .internal-page-title h1{
    font-size:21px!important;
    line-height:1.45!important;
  }

  /* Breadcrumb */
  .internal-page .custom-breadcrumb{
    margin-bottom:10px!important;
  }

  .internal-page .custom-breadcrumb .breadcrumb{
    padding:8px 11px!important;
    font-size:12px!important;
    border-radius:11px!important;
  }

  /* Main utility section */
  .internal-page .utility-page{
    padding:10px 0 26px!important;
  }

  /* The page title already exists above - remove duplicate title block */
  .internal-page .utility-page-heading{
    display:none!important;
  }

  .internal-page .utility-page-card{
    padding:14px!important;
    border-radius:15px!important;
  }

  .internal-page .utility-page .converter-tabs{
    margin-bottom:12px!important;
  }

  .internal-page .utility-page .converter-tab{
    padding:8px 6px!important;
    min-height:40px!important;
    font-size:12px!important;
  }

  .internal-page .utility-page .converter-form label{
    margin-bottom:4px!important;
    font-size:12px!important;
  }

  .internal-page .utility-page .converter-form input,
  .internal-page .utility-page .converter-form select{
    min-height:42px!important;
    padding:8px 10px!important;
  }

  .internal-page .utility-page .converter-submit-wide{
    min-height:42px!important;
    margin-top:4px!important;
  }

  .internal-page .utility-page .converter-result{
    margin-top:13px!important;
    padding:13px!important;
  }

  .internal-page .utility-page-note{
    margin-top:11px!important;
    padding:9px 11px!important;
  }
}
/* V35.4 - Mobile final polish for utility pages */
@media (max-width:575px){

  .internal-page .site-main{
    padding-top:10px!important;
  }

  .internal-page .custom-breadcrumb{
    margin-bottom:6px!important;
  }

  .internal-page .utility-page{
    padding-top:4px!important;
    padding-bottom:22px!important;
  }

  .internal-page .utility-page-container{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .internal-page .utility-page-card{
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:12px!important;
  }

  .internal-page .utility-page .converter-tabs{
    margin-bottom:10px!important;
  }

  .internal-page .utility-page .converter-result{
    margin-top:11px!important;
  }

  .internal-page .utility-page-note{
    margin-top:9px!important;
  }
}
/* V35.5 - Utility mobile bottom spacing fix */
@media (max-width:575px){

  .internal-page .utility-page{
    padding-bottom:8px!important;
    margin-bottom:0!important;
  }

  .internal-page .utility-page-container{
    margin-bottom:0!important;
  }

  .internal-page .site-main{
    padding-bottom:12px!important;
    margin-bottom:0!important;
  }
}
/* V35.6 - Navbar light/dark contrast final fix */

/* LIGHT MODE */
html:not([data-theme="dark"]) .custom-nav,
html[data-theme="light"] .custom-nav{
  background:#ffffff!important;
  border-bottom-color:#e1e9e5!important;
}

html:not([data-theme="dark"]) .custom-navbar-brand,
html[data-theme="light"] .custom-navbar-brand{
  color:#073b32!important;
}

html:not([data-theme="dark"]) .brand-copy strong,
html[data-theme="light"] .brand-copy strong{
  color:#073b32!important;
}

html:not([data-theme="dark"]) .brand-copy small,
html[data-theme="light"] .brand-copy small{
  color:#66756f!important;
}

html:not([data-theme="dark"]) .custom-nav .nav-link,
html[data-theme="light"] .custom-nav .nav-link{
  color:#263832!important;
}

html:not([data-theme="dark"]) .theme-toggle,
html[data-theme="light"] .theme-toggle{
  background:#ffffff!important;
  color:#17231f!important;
  border-color:#d6e1dc!important;
}

html:not([data-theme="dark"]) .theme-toggle-track,
html[data-theme="light"] .theme-toggle-track{
  background:#edf3f0!important;
  color:#52645d!important;
}

html:not([data-theme="dark"]) .theme-toggle-knob,
html[data-theme="light"] .theme-toggle-knob{
  background:#ffffff!important;
}

html:not([data-theme="dark"]) .navbar-toggler,
html[data-theme="light"] .navbar-toggler{
  color:#073b32!important;
  border-color:#b9cbc4!important;
  background-color:transparent!important;
}

html:not([data-theme="dark"]) .navbar-toggler-icon,
html[data-theme="light"] .navbar-toggler-icon{
  filter:none!important;
  opacity:1!important;
}

/* DARK MODE */
html[data-theme="dark"] .custom-navbar-brand,
html[data-theme="dark"] .brand-copy strong{
  color:#f1f5f3!important;
}

html[data-theme="dark"] .brand-copy small{
  color:#b7c7c1!important;
}

html[data-theme="dark"] .navbar-toggler{
  color:#f1f5f3!important;
  border-color:#49675d!important;
}

html[data-theme="dark"] .navbar-toggler-icon{
  filter:invert(1) grayscale(1) brightness(2)!important;
  opacity:1!important;
}

/* V36 - Independent mobile navigation, no Bootstrap/backdrop compositing */
.mobile-safe-nav{display:none}
@media (max-width:991px){
  .custom-nav{display:none!important}
  .mobile-safe-nav{
    display:block!important;
    position:relative!important;
    width:100%!important;
    z-index:1030!important;
    background:#ffffff!important;
    border-bottom:1px solid #dfe8e4!important;
    color:#073b32!important;
    opacity:1!important;
    visibility:visible!important;
    -webkit-transform:none!important;
    transform:none!important;
    -webkit-filter:none!important;
    filter:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  .mobile-safe-nav-inner{
    min-height:72px;
    padding:10px 16px;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px;
  }
  .mobile-safe-brand{
    display:flex!important;
    align-items:center!important;
    gap:10px;
    color:#073b32!important;
    text-decoration:none!important;
    opacity:1!important;
    visibility:visible!important;
  }
  .mobile-safe-brand-mark{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:grid!important;
    place-items:center!important;
    border-radius:14px;
    background:#58b49d!important;
    color:#ffffff!important;
    font-family:'KFGQPC Uthmanic Script HAFS',serif;
    font-size:25px;
    line-height:1;
  }
  .mobile-safe-brand-text{
    display:block!important;
    color:#073b32!important;
    font-family:'Cairo',Tahoma,Arial,sans-serif;
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
  }
  .mobile-safe-tools{display:flex!important;align-items:center!important;gap:10px}
  .mobile-theme-toggle,.mobile-menu-toggle{
    width:48px;
    height:44px;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #aac1b8!important;
    border-radius:12px!important;
    background:#ffffff!important;
    color:#073b32!important;
    opacity:1!important;
    visibility:visible!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    box-shadow:none!important;
  }
  .mobile-theme-icon{font-size:19px;line-height:1;color:#9a781d!important}
  .mobile-menu-toggle{gap:4px;align-content:center}
  .mobile-menu-toggle span{
    display:block!important;
    width:24px!important;
    height:2px!important;
    border-radius:9px!important;
    background:#073b32!important;
  }
  .mobile-safe-menu{
    padding:8px 16px 14px;
    background:#ffffff!important;
    border-top:1px solid #e5ece9;
  }
  .mobile-safe-menu[hidden]{display:none!important}
  .mobile-safe-menu:not([hidden]){display:grid!important;grid-template-columns:1fr;gap:4px}
  .mobile-safe-menu a{
    display:block!important;
    padding:11px 12px!important;
    border-radius:9px;
    color:#17372f!important;
    background:transparent!important;
    font-family:'Cairo',Tahoma,Arial,sans-serif;
    font-weight:600;
    text-decoration:none!important;
  }
  .mobile-safe-menu a:active{background:#edf5f2!important}

  html[data-theme="dark"] .mobile-safe-nav,
  html[data-theme="dark"] .mobile-safe-menu{background:#0b211b!important;border-color:#2c4940!important}
  html[data-theme="dark"] .mobile-safe-brand,
  html[data-theme="dark"] .mobile-safe-brand-text{color:#f1f5f3!important}
  html[data-theme="dark"] .mobile-theme-toggle,
  html[data-theme="dark"] .mobile-menu-toggle{background:#122d25!important;border-color:#3d5b51!important;color:#f1f5f3!important}
  html[data-theme="dark"] .mobile-menu-toggle span{background:#f1f5f3!important}
  html[data-theme="dark"] .mobile-safe-menu a{color:#e7efec!important}
}
/* END V36 */

/* V37 - Grouped navigation */
.nav-dropdown-item{position:relative}
.nav-dropdown{position:relative}
.nav-dropdown>summary{display:flex!important;align-items:center;gap:7px;list-style:none;cursor:pointer;user-select:none;white-space:nowrap}
.nav-dropdown>summary::-webkit-details-marker{display:none}
.nav-dropdown>summary i{font-size:9px;transition:transform .2s ease}
.nav-dropdown[open]>summary{background:#edf5f2;color:var(--q-primary)!important}
.nav-dropdown[open]>summary i{transform:rotate(180deg)}
.nav-dropdown-menu{position:absolute;z-index:1060;top:calc(100% + 10px);right:0;display:grid;min-width:205px;padding:8px;border:1px solid #dce7e3;border-radius:16px;background:#fff;box-shadow:0 18px 45px rgba(7,59,50,.16)}
.nav-dropdown-menu:before{position:absolute;top:-6px;right:25px;width:11px;height:11px;content:"";transform:rotate(45deg);border-top:1px solid #dce7e3;border-right:1px solid #dce7e3;background:#fff}
.nav-dropdown-menu a{position:relative;display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:11px;color:#23443b!important;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.nav-dropdown-menu a:hover{background:#edf5f2;color:#0b6555!important}
.nav-dropdown-menu a i{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e7f1ed;color:#0b6555;font-size:12px}
.nav-dropdown-menu-wide{min-width:220px}
html[data-theme="dark"] .nav-dropdown[open]>summary{background:#12382e!important;color:#f1f5f3!important}
html[data-theme="dark"] .nav-dropdown-menu{border-color:#285247;background:#0d2a22;box-shadow:0 18px 45px rgba(0,0,0,.32)}
html[data-theme="dark"] .nav-dropdown-menu:before{border-color:#285247;background:#0d2a22}
html[data-theme="dark"] .nav-dropdown-menu a{color:#e7efec!important}
html[data-theme="dark"] .nav-dropdown-menu a:hover{background:#12382e!important;color:#e4c977!important}
html[data-theme="dark"] .nav-dropdown-menu a i{background:#12382e;color:#e4c977}
.mobile-nav-group{border:1px solid #e3ebe8;border-radius:11px;background:#f8fbfa}
.mobile-nav-group>summary{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;list-style:none;color:#17372f;font-family:'Cairo',Tahoma,Arial,sans-serif;font-weight:700;cursor:pointer}
.mobile-nav-group>summary::-webkit-details-marker{display:none}
.mobile-nav-group>summary span{display:flex;align-items:center;gap:9px}.mobile-nav-group>summary span i{width:20px;color:#0b6555;text-align:center}
.mobile-group-chevron{font-size:10px;color:#789088;transition:transform .2s ease}.mobile-nav-group[open] .mobile-group-chevron{transform:rotate(180deg)}
.mobile-nav-group>div{display:grid;gap:2px;padding:0 7px 7px}.mobile-nav-group>div a{padding:9px 37px 9px 10px!important;font-size:13px!important;font-weight:600!important}
html[data-theme="dark"] .mobile-nav-group{border-color:#2c4940;background:#102a23}
html[data-theme="dark"] .mobile-nav-group>summary{color:#f1f5f3}html[data-theme="dark"] .mobile-nav-group>summary span i{color:#e4c977}
@media(min-width:992px){.mobile-nav-group{display:none!important}}

/* V40.1 - Keep the memorial identity visible while browsing on all screens. */
.mobile-fixed-header-stack{display:contents}
.memorial-bar{position:sticky;top:0;z-index:1070;width:100%;max-width:100vw;overflow:hidden}
@media(min-width:992px){.custom-nav.sticky-top{top:42px}}
@media(max-width:991px){
  body{padding-top:0}
  .mobile-fixed-header-stack{display:block;position:-webkit-sticky;position:sticky;top:0;right:auto;left:auto;z-index:1070;width:100%;background:#fff}
  .memorial-bar,.memorial-inner,.mobile-safe-nav,.mobile-safe-nav-inner,.mobile-safe-brand-mark,.mobile-safe-brand-text,.mobile-theme-toggle,.mobile-menu-toggle{transition:none}
  .mobile-fixed-header-stack .memorial-bar{position:relative!important;top:auto!important;z-index:auto!important}
  .memorial-inner{min-height:42px;padding-inline:10px;white-space:nowrap}
  .memorial-icon{flex:0 0 auto}
  .memorial-inner>span:nth-child(2){overflow:hidden;text-overflow:ellipsis}
  .mobile-safe-nav{position:relative!important;top:auto!important;z-index:auto!important}
  html[data-theme="dark"] .mobile-fixed-header-stack{background:#0b211b}
}

/* V40 - Keep long book pagination inside the phone viewport. */
.languages nav[aria-label="Page navigation"]{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.languages nav[aria-label="Page navigation"] .pagination{width:max-content;min-width:100%;margin-inline:0;padding-inline:0}
@media(max-width:575px){.languages nav[aria-label="Page navigation"]{padding-bottom:4px}}

/* V39 - Section search */
.qfa-section-search{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:10px 13px;border:1px solid var(--q-border);border-radius:14px;background:var(--q-paper);box-shadow:0 6px 20px rgba(7,59,50,.05)}
.qfa-section-search>i{color:var(--q-primary);font-size:14px}.qfa-section-search input{flex:1;min-width:0;height:42px!important;min-height:42px!important;padding:5px 2px!important;border:0!important;background:transparent!important;color:var(--q-text)!important;font-family:'Cairo',Tahoma,Arial,sans-serif;font-size:14px;box-shadow:none!important}.qfa-section-search input::placeholder{color:var(--q-muted)}.qfa-section-search button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:#edf5f2;color:var(--q-primary);cursor:pointer}.qfa-section-search button[hidden]{display:none}.qfa-search-count{white-space:nowrap;color:var(--q-muted);font-size:11px}.qfa-section-search.has-no-results{border-color:#d7b96f}
html[data-theme="dark"] .qfa-section-search button{background:#20352f;color:#79bba7}
@media(max-width:575px){.qfa-section-search{margin-bottom:14px}.qfa-search-count{position:absolute;top:100%;right:12px;margin-top:2px;font-size:9px}.qfa-section-search input{font-size:13px}}
/* END V37 */

/* Private shortcut visible only during an authenticated admin session */
.private-admin-shortcut{position:fixed;z-index:1200;left:18px;bottom:18px;display:flex;align-items:center;overflow:hidden;border:1px solid #d2e2dc;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(7,59,50,.18)}.private-admin-shortcut a{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;color:#0b6555!important;font-size:11px;font-weight:800;text-decoration:none}.private-admin-shortcut a+a{border-right:1px solid #dce8e4}.private-admin-shortcut a:hover{background:#edf5f2}.private-admin-shortcut a:last-child{padding-inline:11px}html[data-theme="dark"] .private-admin-shortcut{border-color:#285247;background:#0d2a22;box-shadow:0 12px 32px rgba(0,0,0,.35)}html[data-theme="dark"] .private-admin-shortcut a{color:#e4c977!important}html[data-theme="dark"] .private-admin-shortcut a+a{border-color:#285247}html[data-theme="dark"] .private-admin-shortcut a:hover{background:#12382e}@media(max-width:480px){.private-admin-shortcut{left:12px;bottom:12px}.private-admin-shortcut a{min-height:42px}.private-admin-shortcut span{display:none}}

/* V41 - Modern, consistently sized sharing applications. */
.share-content{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;direction:rtl}.share-content .share-app,.share-content .x-share-link{display:inline-grid;place-items:center;flex:0 0 48px;width:48px;height:48px;margin:0!important;padding:0;border:0;border-radius:14px;color:#fff!important;font-size:22px;line-height:1;vertical-align:middle;cursor:pointer;text-decoration:none;box-shadow:0 5px 14px rgba(10,52,45,.12);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}.share-content .share-app i{display:block;width:1em;line-height:1;text-align:center}.share-content .share-app-native{background:#229ed9}.share-content .share-app-facebook{background:#1877f2}.share-content .x-share-link{background:#000}.share-content .share-app-pinterest{background:#e60023}.share-content .share-app-reddit{background:#ff4500}.share-content .share-app-linkedin{background:#0a66c2}.share-content .share-app-tumblr{background:#35465c}.share-content .share-app-whatsapp{background:#25d366}.share-content .share-app-email{background:#607d8b}.share-x-icon{display:block;width:21px;height:21px;fill:currentColor}.share-content .share-app:hover,.share-content .x-share-link:hover{transform:translateY(-2px);filter:brightness(.96);box-shadow:0 8px 18px rgba(10,52,45,.18)}.share-content .share-app:focus-visible,.share-content .x-share-link:focus-visible{outline:3px solid #e4c977;outline-offset:3px}html[data-theme="dark"] .share-content .x-share-link{background:#f5f5f5;color:#050505!important}@media(max-width:575px){.share-content{gap:9px}.share-content .share-app,.share-content .x-share-link{flex-basis:44px;width:44px;height:44px;border-radius:12px;font-size:20px}.share-x-icon{width:19px;height:19px}}

/* V56 - Contact page rebuilt on the same responsive foundation as stable pages */
.contact-page-body .site-main,.contact-rebuilt{width:100%;max-width:100%;overflow-x:clip}
.contact-rebuilt{min-height:calc(100vh - 290px);padding:48px 0 68px;background:linear-gradient(180deg,#f6f8f7 0%,#fff 100%)}
.contact-rebuilt-container{width:100%;max-width:980px;margin-inline:auto;padding-inline:12px}
.contact-rebuilt-heading{display:flex;align-items:center;gap:16px;max-width:850px;margin:0 auto 24px}
.contact-rebuilt-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border-radius:17px;background:#0c4f42;color:#d8b45b;font-size:21px;box-shadow:0 10px 24px rgba(12,79,66,.16)}
.contact-rebuilt-eyebrow{display:block;margin-bottom:3px;color:#a57b25;font-size:12px;font-weight:800}
.contact-rebuilt-heading h1{margin:0 0 5px;color:#15382f;font-size:30px;font-weight:800;line-height:1.4}
.contact-rebuilt-heading p{margin:0;color:#6c7d77;font-size:14px;line-height:1.8}
.contact-rebuilt-card{width:100%;max-width:850px;margin-inline:auto;padding:28px;border:1px solid #dde7e3;border-radius:22px;background:#fff;box-shadow:0 18px 48px rgba(25,65,53,.08)}
.contact-form-rebuilt,.contact-form-rebuilt *{box-sizing:border-box}
.contact-form-rebuilt .contact-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.contact-form-rebuilt .contact-field{min-width:0;margin-bottom:16px}
.contact-form-rebuilt .contact-field label{display:block;margin-bottom:7px;color:#2b443b;font-size:14px;font-weight:700}
.contact-form-rebuilt .field-with-icon{position:relative;min-width:0}
.contact-form-rebuilt input,.contact-form-rebuilt textarea{display:block;width:100%;max-width:100%;min-width:0;border:1px solid #cfddd7;border-radius:12px;background:#fff;color:#20342d;font-family:inherit;font-size:15px;outline:none;box-shadow:none}
.contact-form-rebuilt input{height:50px;padding:11px 43px 11px 13px}
.contact-form-rebuilt textarea{min-height:185px;padding:13px 14px;line-height:1.8;resize:vertical}
.contact-form-rebuilt input:focus,.contact-form-rebuilt textarea:focus{border-color:#6ba592;box-shadow:0 0 0 3px rgba(12,79,66,.08)}
.contact-form-rebuilt .contact-field-hint{margin-top:6px;color:#889690;font-size:11px}
.contact-form-rebuilt .contact-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:min(100%,300px);min-height:50px;margin:8px auto 0;border:0;border-radius:13px;background:#0c4f42;color:#fff;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer}
html[data-theme="dark"] .contact-rebuilt{background:linear-gradient(180deg,#071a15 0%,#091e19 100%)}
html[data-theme="dark"] .contact-rebuilt-heading h1{color:#f1f5f3}
html[data-theme="dark"] .contact-rebuilt-heading p{color:#b7c7c1}
html[data-theme="dark"] .contact-rebuilt-card{border-color:#285247;background:#0d2a22;box-shadow:none}
html[data-theme="dark"] .contact-form-rebuilt .contact-field label{color:#d8e5e0}
html[data-theme="dark"] .contact-form-rebuilt input,html[data-theme="dark"] .contact-form-rebuilt textarea{border-color:#285247;background:#091e19;color:#f1f5f3}
@media(max-width:767px){
  .contact-rebuilt{padding:24px 0 46px}
  .contact-rebuilt-container{max-width:100%;padding-inline:12px}
  .contact-rebuilt-heading{align-items:flex-start;gap:11px;margin-bottom:17px}
  .contact-rebuilt-icon{flex-basis:44px;width:44px;height:44px;border-radius:13px;font-size:17px}
  .contact-rebuilt-heading h1{font-size:22px}
  .contact-rebuilt-heading p{font-size:12px;line-height:1.7}
  .contact-rebuilt-card{max-width:100%;padding:16px;border-radius:17px}
  .contact-form-rebuilt .contact-form-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .contact-form-rebuilt .contact-field{margin-bottom:12px}
  .contact-form-rebuilt .contact-field label{font-size:12px;margin-bottom:5px}
  .contact-form-rebuilt input{height:46px;font-size:16px}
  .contact-form-rebuilt textarea{min-height:150px;font-size:16px;resize:none}
  .contact-form-rebuilt .contact-submit{width:100%;max-width:none}
}

/* V56.4 - Palette-aware dark mode */
html[data-theme="dark"] body.color-emerald{--q-dark-bg:#071a15;--q-dark-header:#0b211b;--q-dark-surface:#0d2a22;--q-dark-card:#12382e;--q-dark-card-hover:#18483b;--q-dark-border:#285247;--q-dark-accent:#79bba7}
html[data-theme="dark"] body.color-navy{--q-dark-bg:#07131f;--q-dark-header:#0b1e30;--q-dark-surface:#10283d;--q-dark-card:#153650;--q-dark-card-hover:#1c4869;--q-dark-border:#2d5675;--q-dark-accent:#79b7df}
html[data-theme="dark"] body.color-burgundy{--q-dark-bg:#1d0b10;--q-dark-header:#2b1018;--q-dark-surface:#3a1721;--q-dark-card:#4a202c;--q-dark-card-hover:#612b3a;--q-dark-border:#754251;--q-dark-accent:#d99aaa}
html[data-theme="dark"] body.color-indigo{--q-dark-bg:#111022;--q-dark-header:#19172f;--q-dark-surface:#242142;--q-dark-card:#302c56;--q-dark-card-hover:#403b70;--q-dark-border:#575185;--q-dark-accent:#aaa6e3}
html[data-theme="dark"] body.color-sand{--q-dark-bg:#18120c;--q-dark-header:#251c12;--q-dark-surface:#332619;--q-dark-card:#443322;--q-dark-card-hover:#5a452e;--q-dark-border:#705a40;--q-dark-accent:#d9ba83}
html[data-theme="dark"] body[class*="color-"]{background:var(--q-dark-bg)!important;color:var(--q-dark-text,#f1f5f3)}
html[data-theme="dark"] body[class*="color-"] .site-main,
html[data-theme="dark"] body[class*="color-"] .section-1,
html[data-theme="dark"] body[class*="color-"] .section-2,
html[data-theme="dark"] body[class*="color-"] .section-3,
html[data-theme="dark"] body[class*="color-"] .site-tools-section,
html[data-theme="dark"] body[class*="color-"] .utility-page,
html[data-theme="dark"] body[class*="color-"] .contact-rebuilt{background:var(--q-dark-bg)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .custom-nav,
html[data-theme="dark"] body[class*="color-"] .mobile-safe-nav,
html[data-theme="dark"] body[class*="color-"] .mobile-safe-menu,
html[data-theme="dark"] body[class*="color-"] .mobile-fixed-header-stack{background:var(--q-dark-header)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .prayer-widget,
html[data-theme="dark"] body[class*="color-"] .modern-card,
html[data-theme="dark"] body[class*="color-"] .card-custom,
html[data-theme="dark"] body[class*="color-"] .card-custom .card-header,
html[data-theme="dark"] body[class*="color-"] .card-custom .card-body,
html[data-theme="dark"] body[class*="color-"] .utility-card,
html[data-theme="dark"] body[class*="color-"] .utility-page-card,
html[data-theme="dark"] body[class*="color-"] .contact-rebuilt-card,
html[data-theme="dark"] body[class*="color-"] .books-languages,
html[data-theme="dark"] body[class*="color-"] .block,
html[data-theme="dark"] body[class*="color-"] .surah-text,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu:before,
html[data-theme="dark"] body[class*="color-"] .private-admin-shortcut{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .next-prayer,
html[data-theme="dark"] body[class*="color-"] .converter-tabs,
html[data-theme="dark"] body[class*="color-"] .converter-result,
html[data-theme="dark"] body[class*="color-"] .qfa-section-search,
html[data-theme="dark"] body[class*="color-"] .contact-form-rebuilt input,
html[data-theme="dark"] body[class*="color-"] .contact-form-rebuilt textarea{background:var(--q-dark-card)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .nav-dropdown[open]>summary,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] body[class*="color-"] .mobile-theme-toggle,
html[data-theme="dark"] body[class*="color-"] .mobile-menu-toggle,
html[data-theme="dark"] body[class*="color-"] .qfa-section-search button,
html[data-theme="dark"] body[class*="color-"] .converter-tab.is-active,
html[data-theme="dark"] body[class*="color-"] .contact-submit{background:var(--q-dark-card-hover)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .custom-nav .nav-link:hover,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] body[class*="color-"] .qfa-section-search>i,
html[data-theme="dark"] body[class*="color-"] .qfa-section-search button{color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"] .site-footer{background:var(--q-dark-header)!important}

/* V56.5 - Complete component coverage for every selected palette */
body[class*="color-"] .theme-toggle-track,
body[class*="color-"] .nav-dropdown[open]>summary,
body[class*="color-"] .nav-dropdown-menu a:hover,
body[class*="color-"] .nav-dropdown-menu a i,
body[class*="color-"] .mobile-nav-group>summary span i,
body[class*="color-"] .qfa-section-search button{background:var(--q-soft)!important;color:var(--q-primary)!important}
body[class*="color-"] .theme-toggle:hover{border-color:var(--q-primary)!important}
body[class*="color-"] .internal-page .form-control:focus,
body[class*="color-"] .internal-page .form-select:focus,
body[class*="color-"] .internal-page select:focus,
body[class*="color-"] .internal-page input:focus{border-color:var(--q-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--q-primary) 18%,transparent)!important}

html[data-theme="dark"] body[class*="color-"] .section-content,
html[data-theme="dark"] body[class*="color-"] #languages,
html[data-theme="dark"] body[class*="color-"] .languages{background:var(--q-dark-bg)!important;color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] .theme-toggle{background:var(--q-dark-card)!important;border-color:var(--q-dark-border)!important;color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] .theme-toggle-track,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu a i,
html[data-theme="dark"] body[class*="color-"] .mobile-nav-group,
html[data-theme="dark"] body[class*="color-"] .mobile-nav-group>summary,
html[data-theme="dark"] body[class*="color-"] .private-admin-shortcut a:hover{background:var(--q-dark-card-hover)!important;border-color:var(--q-dark-border)!important;color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"] .theme-toggle-knob{background:var(--q-dark-header)!important}
html[data-theme="dark"] body[class*="color-"] .form-control,
html[data-theme="dark"] body[class*="color-"] .form-select,
html[data-theme="dark"] body[class*="color-"] select,
html[data-theme="dark"] body[class*="color-"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body[class*="color-"] textarea{background:var(--q-dark-header)!important;color:var(--q-dark-text)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] input::placeholder,
html[data-theme="dark"] body[class*="color-"] textarea::placeholder{color:var(--q-dark-muted)!important}
html[data-theme="dark"] body[class*="color-"] .language-loop,
html[data-theme="dark"] body[class*="color-"] .internal-page .books-languages{background:linear-gradient(135deg,var(--q-dark-surface),var(--q-dark-card))!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .internal-page .page-link,
html[data-theme="dark"] body[class*="color-"] .internal-page .custom-breadcrumb .breadcrumb{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important;color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] div:hover.spacer,
html[data-theme="dark"] body[class*="color-"] .internal-page .page-link:hover{background:var(--q-dark-card-hover)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .internal-page .page-item.active .page-link{background:var(--q-primary)!important;border-color:var(--q-primary)!important}

/* V56.6 - Utility and contact palette completion */
body[class*="color-"] .contact-rebuilt-icon,
body[class*="color-"] .contact-form-rebuilt .contact-submit{background:linear-gradient(145deg,var(--q-primary),var(--q-primary-2))!important}
body[class*="color-"] .contact-form-rebuilt input:focus,
body[class*="color-"] .contact-form-rebuilt textarea:focus{border-color:var(--q-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--q-primary) 18%,transparent)!important}
body[class*="color-"] .converter-tab:hover{background:var(--q-soft);color:var(--q-primary)}
html[data-theme="dark"] body[class*="color-"] .utility-page-note{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important;color:var(--q-dark-gold)!important}
html[data-theme="dark"] body[class*="color-"] .contact-rebuilt-icon{background:var(--q-dark-card-hover)!important;border:1px solid var(--q-dark-border)}
html[data-theme="dark"] body[class*="color-"] .contact-form-rebuilt .contact-submit{background:var(--q-primary)!important;border-color:var(--q-primary)!important}

/* V56.7 - A single, accessible accent color for every selected palette */
body[class*="color-"] .memorial-icon,
body[class*="color-"] .hero-kicker,
body[class*="color-"] .hero-copy h1 span,
body[class*="color-"] .prayer-eyebrow,
body[class*="color-"] .section-title h1:after,
body[class*="color-"] .utility-eyebrow,
body[class*="color-"] .utility-note i,
body[class*="color-"] .contact-rebuilt-eyebrow,
body[class*="color-"] .contact-rebuilt-icon,
body[class*="color-"] .site-footer a{color:var(--q-gold)!important}
html[data-theme="dark"] body[class*="color-"] .utility-page-note,
html[data-theme="dark"] body[class*="color-"] .converter-result strong,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu a:hover,
html[data-theme="dark"] body[class*="color-"] .nav-dropdown-menu a i,
html[data-theme="dark"] body[class*="color-"] .private-admin-shortcut a{color:var(--q-gold)!important}

/* V56.9 - Canonical palette contract for every internal page and theme */
body[class*="color-"]{
  --q-link:var(--q-primary-2);
  --q-heading:var(--q-deep);
  --q-surface:var(--q-paper);
}
body[class*="color-"].internal-page .books .card-title,
body[class*="color-"].internal-page .books .card-title a,
body[class*="color-"].internal-page .books h1,
body[class*="color-"].internal-page .books h2,
body[class*="color-"].internal-page .books h3,
body[class*="color-"].internal-page .books h4,
body[class*="color-"].internal-page .books h5{color:var(--q-heading)!important}
body[class*="color-"].internal-page .books a:not(.share-app):not(.x-share-link):not(.book-cover-link),
body[class*="color-"].internal-page .books a i{color:var(--q-link)!important}
body[class*="color-"].internal-page .books .card-text,
body[class*="color-"].internal-page .books p,
body[class*="color-"].internal-page .books .text-muted{color:var(--q-muted)!important}
body[class*="color-"].internal-page .books .card,
body[class*="color-"].internal-page .books .card-body{background:var(--q-surface)!important;border-color:color-mix(in srgb,var(--q-primary) 20%,#fff)!important}

html[data-theme="dark"] body[class*="color-"]{
  --q-link:var(--q-dark-accent);
  --q-heading:var(--q-dark-text);
  --q-surface:var(--q-dark-surface);
}
html[data-theme="dark"] body[class*="color-"].internal-page h1,
html[data-theme="dark"] body[class*="color-"].internal-page h2,
html[data-theme="dark"] body[class*="color-"].internal-page h3,
html[data-theme="dark"] body[class*="color-"].internal-page h4,
html[data-theme="dark"] body[class*="color-"].internal-page h5,
html[data-theme="dark"] body[class*="color-"].internal-page h6{color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"].internal-page .books a:not(.page-link):not(.btn):not(.share-app):not(.x-share-link):not(.book-cover-link),
html[data-theme="dark"] body[class*="color-"].internal-page .books a i{color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"].internal-page .books .card-title,
html[data-theme="dark"] body[class*="color-"].internal-page .books .card-title>a:not(.page-link):not(.btn){color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"].internal-page .books .card-text,
html[data-theme="dark"] body[class*="color-"].internal-page .books p,
html[data-theme="dark"] body[class*="color-"].internal-page .books .text-muted{color:var(--q-dark-muted)!important}
html[data-theme="dark"] body[class*="color-"].internal-page .books .card,
html[data-theme="dark"] body[class*="color-"].internal-page .books .card-body{background:var(--q-dark-surface)!important;border-color:var(--q-dark-border)!important}

/* V57.1 - Prayer widget follows the selected palette in both modes */
body[class*="color-"] .location-btn{background:var(--q-soft)!important;color:var(--q-primary-2)!important}
body[class*="color-"] .next-prayer{background:linear-gradient(135deg,var(--q-soft),color-mix(in srgb,var(--q-gold) 9%,#fff))!important;border-color:color-mix(in srgb,var(--q-primary) 17%,#fff)!important}
body[class*="color-"] .next-prayer strong{color:var(--q-primary)!important}
body[class*="color-"] .prayer-times>div{border-color:color-mix(in srgb,var(--q-primary) 17%,#fff)!important}
body[class*="color-"] .prayer-times .is-next{background:color-mix(in srgb,var(--q-gold) 13%,#fff)!important;border-color:var(--q-gold)!important}

html[data-theme="dark"] body[class*="color-"] .location-btn{background:var(--q-dark-card-hover)!important;color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"] .next-prayer{background:var(--q-dark-card)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .next-prayer span{color:var(--q-dark-muted)!important}
html[data-theme="dark"] body[class*="color-"] .next-prayer strong{color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"] .next-prayer b{color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] .prayer-times>div{background:var(--q-dark-card)!important;border-color:var(--q-dark-border)!important}
html[data-theme="dark"] body[class*="color-"] .prayer-times span{color:var(--q-dark-muted)!important}
html[data-theme="dark"] body[class*="color-"] .prayer-times strong{color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] .prayer-times .is-next{background:color-mix(in srgb,var(--q-gold) 17%,var(--q-dark-card))!important;border-color:color-mix(in srgb,var(--q-gold) 72%,var(--q-dark-border))!important}
html[data-theme="dark"] body[class*="color-"] .prayer-times .is-next strong{color:var(--q-dark-gold)!important}

/* V57.3 - Unified transparent navy/gold book artwork */
body[class*="color-"] .book-cover-frame,
body[class*="color-"] .book-cover-frame .book-cover-link{
  background-color:#fff!important;
  border-color:color-mix(in srgb,var(--q-primary) 16%,#fff)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body[class*="color-"].internal-page .book-cover-frame,
html[data-theme="dark"] body[class*="color-"].internal-page .book-cover-frame .book-cover-link{
  background-color:var(--q-dark-card)!important;
  border-color:var(--q-dark-border)!important;
  box-shadow:none!important;
}

/* V57.5 - Mobile header follows the selected palette */
body[class*="color-"] .mobile-safe-brand-mark{
  background:linear-gradient(145deg,var(--q-primary),var(--q-primary-2))!important;
  color:#fff!important;
}
body[class*="color-"] .mobile-safe-brand,
body[class*="color-"] .mobile-safe-brand-text{color:var(--q-deep)!important}
body[class*="color-"] .mobile-theme-toggle,
body[class*="color-"] .mobile-menu-toggle{
  border-color:color-mix(in srgb,var(--q-primary) 36%,#fff)!important;
  color:var(--q-primary)!important;
}
body[class*="color-"] .mobile-menu-toggle span{background:var(--q-primary)!important}
html[data-theme="dark"] body[class*="color-"] .mobile-safe-brand-mark{
  background:linear-gradient(145deg,var(--q-primary),var(--q-primary-2))!important;
}
html[data-theme="dark"] body[class*="color-"] .mobile-safe-brand,
html[data-theme="dark"] body[class*="color-"] .mobile-safe-brand-text{color:var(--q-dark-text)!important}
html[data-theme="dark"] body[class*="color-"] .mobile-menu-toggle span{
  background:var(--q-dark-text)!important;
  opacity:1!important;
  height:3px!important;
}

/* V58.1 - Canonical button palette across every route */
body[class*="color-"] .btn-primary:not(.hero-btn),
body[class*="color-"] button.btn-primary,
body[class*="color-"] input.btn-primary,
body[class*="color-"] input[type="submit"].btn,
body[class*="color-"] .page-item.active>.page-link,
body[class*="color-"] .pagination .active>.page-link{
  background:var(--q-primary)!important;
  border-color:var(--q-primary)!important;
  color:#fff!important;
}
body[class*="color-"] .btn-primary:not(.hero-btn):hover,
body[class*="color-"] .btn-primary:not(.hero-btn):focus,
body[class*="color-"] button.btn-primary:hover,
body[class*="color-"] button.btn-primary:focus{
  background:var(--q-primary-2)!important;
  border-color:var(--q-primary-2)!important;
  color:#fff!important;
}
html[data-theme="dark"] body[class*="color-"] .btn-primary:not(.hero-btn),
html[data-theme="dark"] body[class*="color-"] button.btn-primary,
html[data-theme="dark"] body[class*="color-"] input.btn-primary,
html[data-theme="dark"] body[class*="color-"] .page-item.active>.page-link,
html[data-theme="dark"] body[class*="color-"] .pagination .active>.page-link{
  background:var(--q-primary)!important;
  border-color:var(--q-dark-accent)!important;
  color:#fff!important;
}

/* V58.2 - Detailed tafseer view follows every selected palette */
body[class*="color-"].internal-page .ayat4tafseer,
body[class*="color-"].internal-page .ayat4tafseer_text{
  background:var(--q-soft)!important;
  border:1px solid color-mix(in srgb,var(--q-primary) 18%,#fff)!important;
  color:var(--q-text)!important;
  border-radius:14px;
  padding:18px;
}
body[class*="color-"].internal-page .ayat4tafseer .number,
body[class*="color-"].internal-page .ayat4tafseer a{color:var(--q-primary)!important}
body[class*="color-"].internal-page .listen_aya a.sm2_button,
body[class*="color-"].internal-page .listen_aya a.sm2_button.sm2_paused:hover{
  background-color:var(--q-primary)!important;
  border:1px solid color-mix(in srgb,var(--q-primary) 72%,#fff)!important;
}
body[class*="color-"].internal-page .listen_aya a.sm2_button:hover,
body[class*="color-"].internal-page .listen_aya a.sm2_button.sm2_playing{
  background-color:var(--q-primary-2)!important;
}
html[data-theme="dark"] body[class*="color-"].internal-page .ayat4tafseer,
html[data-theme="dark"] body[class*="color-"].internal-page .ayat4tafseer_text{
  background:var(--q-dark-surface)!important;
  border-color:var(--q-dark-border)!important;
  color:var(--q-dark-text)!important;
}
html[data-theme="dark"] body[class*="color-"].internal-page .ayat4tafseer .number,
html[data-theme="dark"] body[class*="color-"].internal-page .ayat4tafseer a{color:var(--q-dark-accent)!important}
html[data-theme="dark"] body[class*="color-"].internal-page .listen_aya a.sm2_button{
  background-color:var(--q-primary)!important;
  border-color:var(--q-dark-accent)!important;
}

.footer-admin-link{
  font-size:12px;
  opacity:.62;
  text-decoration:none;
  color:inherit;
}
.footer-admin-link:hover{
  opacity:1;
  text-decoration:underline;
}

/* V1.1.2 QURAN BRAND LOGO */
.brand-mark img,
.mobile-safe-brand-mark img {
    display:block;
    width:30px;
    height:30px;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    filter:brightness(0) invert(1);
}

.mobile-safe-brand-mark img {
    width:28px;
    height:28px;
}


/* V58.7 - Mobile header typography follows the page typography. */
@media (max-width:991px){
  .mobile-safe-brand-text,
  .mobile-safe-menu a,
  .mobile-nav-group>summary{
    font-family:inherit!important;
  }
}
