/* HadithApps v2.0 homepage/header/footer refinements */
:root{--v20-header:#1a211d;--v20-nav:#1c5b3d;--v20-nav-hi:#2b7550;--v20-gold:#e1c77c;--v20-muted:#b6c2b7;--v20-panel:#151c18;--v20-edge:rgba(212,231,214,.14)}
.site-header{position:relative!important;top:auto!important;z-index:25;width:100%;background:var(--v20-header)!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:0 2px 10px rgba(0,0,0,.12)!important}
.header-inner{max-width:1640px!important;width:100%;min-height:86px;margin:0 auto!important;padding:10px clamp(16px,2vw,34px)!important;display:grid!important;grid-template-columns:minmax(250px,310px) minmax(360px,1fr) minmax(360px,auto)!important;align-items:center;gap:clamp(12px,1.5vw,24px);background:transparent!important;border:0!important;box-shadow:none!important}
.header-brand{display:flex;align-items:center;gap:12px;min-width:0;color:#fff!important;text-decoration:none!important}
.header-brand img{width:62px!important;height:62px!important;flex:0 0 62px;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.header-brand-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.header-brand-copy strong{font-size:clamp(15px,1.15vw,18px)!important;font-weight:700;line-height:1.5;white-space:nowrap;color:#f6f8f4!important}
.header-brand-copy small{font-size:clamp(10px,.8vw,12px)!important;color:#c4d0c6!important;line-height:1.6;white-space:normal}
.header-search-centered{justify-self:center;max-width:700px!important;width:100%!important}
.header-search{display:flex;align-items:center;gap:6px;margin:0;padding:4px 6px 4px 14px;border:1px solid rgba(207,226,211,.55)!important;border-radius:999px!important;background:#e8ede8!important;box-shadow:0 3px 12px rgba(0,0,0,.13)!important}
.header-search input{height:42px;min-width:30px;color:#23392c!important;font-size:15px!important;background:transparent!important}
.header-search select{height:36px;max-width:130px;color:#385746!important;font-size:12px!important;background:#f7f9f6!important;border:0!important}
.header-search button{width:42px;height:42px;flex:0 0 42px;border-radius:50%!important;background:#2b8054!important;color:white!important;font-size:23px}
.header-actions-visible{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.site-theme-select{height:40px;max-width:142px;padding:7px 9px;border:1px solid rgba(206,222,208,.22);border-radius:10px;background:#252e28;color:#f2f5f0;font-family:inherit;font-size:11px}
.header-account,.header-donate{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:10px;text-decoration:none!important;font-family:'Noto Sans Bengali',sans-serif;font-size:12px;font-weight:700;white-space:nowrap}
.header-account{background:#29332d;color:#eef3ed!important;border:1px solid rgba(255,255,255,.13)}
.header-donate{background:#d7b75d;color:#18241c!important;border:1px solid #e8d18c}
.main-nav-row{position:relative!important;top:auto!important;z-index:20;width:100%;min-height:57px;padding:5px clamp(10px,3vw,40px)!important;display:flex!important;align-items:center;justify-content:center;gap:clamp(5px,1.1vw,17px);background:var(--v20-nav)!important;border-bottom:1px solid rgba(227,239,226,.18);box-shadow:0 3px 9px rgba(0,0,0,.13)}
.main-nav-row a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px clamp(13px,1.7vw,26px)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important;background:rgba(255,255,255,.045)!important;color:#fff!important;text-decoration:none!important;font-family:'Noto Sans Bengali','Noto Serif Bengali',sans-serif;font-size:clamp(15px,1.05vw,18px)!important;font-weight:700!important;white-space:nowrap;transition:background .18s ease}
.main-nav-row a:hover{background:var(--v20-nav-hi)!important}
.main-nav-row .nav-symbol{font-size:22px!important;color:#f4e6bd!important}.main-nav-row .nav-caret{font-size:17px!important;color:#e9f0e7!important}
/* Compact first icon row: no tile backgrounds, closer icon-label spacing. */
.home-category-section{margin:20px auto 24px!important;padding:0 12px!important}
.home-feature-grid{max-width:1420px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(3px,.65vw,10px)!important;align-items:start}
.home-feature-grid a.feature-tile,.home-feature-grid a.feature-tile:hover{min-height:0!important;padding:0 2px 4px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;text-decoration:none!important}
.home-feature-grid .feature-icon,.home-feature-grid .feature-quran-image{width:clamp(66px,6vw,92px)!important;height:clamp(66px,6vw,92px)!important;margin:0 auto -1px!important;padding:0!important;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2))}
.home-feature-grid .feature-tile span{margin:0!important;color:#fff!important;font-size:clamp(13px,.93vw,16px)!important;font-weight:500!important;line-height:1.4;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.home-feature-grid .feature-tile small{display:block;min-height:17px;margin-top:3px;color:#a9c8b1;font-size:10px;line-height:1.35;text-align:center}
.home-feature-grid .feature-tile:not(.feature-hadith-tile) small{display:none}
/* App download project panel: dark/ash blend with full feature list on left. */
.quran-project-strip{width:min(100%,1510px)!important;margin:20px auto 38px!important;padding:clamp(18px,2vw,28px)!important;border:1px solid rgba(185,206,190,.16)!important;border-radius:17px!important;background:linear-gradient(130deg,#171d19 0%,#1b221e 52%,#141a16 100%)!important;box-shadow:0 13px 30px rgba(0,0,0,.17)!important}
.app-download-layout{display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr)!important;align-items:start;gap:clamp(20px,2.2vw,34px)}
.app-download-left{min-width:0;padding:0 8px 0 0}
.app-download-left .eyebrow{display:block;color:#c3d1c3!important;font-size:11px;letter-spacing:.11em;font-weight:800;line-height:1.6}
.app-download-left h2{margin:7px 0 10px!important;color:#f4f6f0!important;font-size:clamp(24px,2.15vw,32px)!important;line-height:1.5;font-weight:700}
.app-download-lead{margin:0 0 13px!important;color:#c0c9c1!important;font-size:13px!important;line-height:1.8}
.app-feature-list{list-style:none!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;margin:0!important;padding:0!important}
.app-feature-list li{display:flex;align-items:flex-start;gap:8px;min-width:0;color:#d6ded7;font-size:12px;line-height:1.72;padding:3px 0}
.app-feature-list li>span{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin-top:1px;border-radius:7px;background:rgba(104,159,114,.15);color:#a4d09c;font-size:13px;font-weight:700}
.app-feature-list li div{min-width:0}.app-feature-list li strong{font-weight:700;color:#f2f4ee}
.app-download-right{min-width:0;padding:0 0 0 clamp(16px,1.8vw,26px)!important;border-left:1px solid rgba(211,228,213,.14)!important;display:flex;flex-direction:column;gap:12px}
.app-right-heading{text-align:center;color:#f1f5ef;font-size:17px;font-weight:700;padding:3px 0 2px}
.app-selectors{display:grid;grid-template-columns:1fr;gap:5px}
.app-select-label{font-size:11px;color:#b8c7b9}
.app-mode-select{width:100%;min-height:44px;padding:8px 12px;border:1px solid rgba(172,205,168,.32);border-radius:10px;background:#26342a;color:#f7f8f3;font-size:14px;font-weight:700}
.app-language-title{display:block;text-align:center;color:#dce8dc;font-size:13px;font-weight:700;padding:3px 0 0}
.app-language-panel{width:100%;margin:0!important}
.app-language-form{width:100%;margin:0}
.app-language-form select{width:100%;height:44px;max-width:none;min-width:0;padding:8px 12px;border:1px solid rgba(172,205,168,.32);border-radius:10px;background:#26342a;color:#f3f7ee;font-size:13px}
.app-language-form option{background:#172a1d;color:#fff}
.hadith-language-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.hadith-language-tabs a{display:flex;align-items:center;justify-content:center;min-height:41px;padding:7px 6px;border:1px solid rgba(171,205,167,.27);border-radius:9px;background:#26342a;color:#f4f7ef;font-size:12px;font-weight:700;text-decoration:none}
.app-platform-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:center;justify-items:center;gap:9px 15px!important;padding:5px 2px!important}
.app-platform-item{width:100%;min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.app-platform-item img{display:block;width:clamp(100px,9vw,132px)!important;height:clamp(100px,9vw,132px)!important;max-width:100%;object-fit:contain;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:drop-shadow(0 5px 8px rgba(0,0,0,.25))}
.app-platform-item strong{color:#f2f5ef!important;font-size:12px!important;font-weight:600;line-height:1.4;text-align:center}
.app-platform-item:last-child:nth-child(odd){grid-column:1/-1;width:50%}
.app-platform-note{margin:0!important;color:#aab9ac;font-size:10px;text-align:center;letter-spacing:.03em}
/* Footer rebuilt as an original DBHT 3-column footer; no third-party store badges or invented contact links. */
.dbht-footer{margin-top:38px;padding:36px 0 0;background:#1a211d!important;border-top:1px solid rgba(255,255,255,.1);color:#e8eee8}
.dbht-footer-grid{width:min(100%,1510px);margin:0 auto!important;padding:0 24px 28px;display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:clamp(20px,3vw,48px);align-items:start}
.footer-column{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.footer-column h2{width:100%;display:flex;align-items:center;gap:12px;margin:0 0 8px;padding:0 0 13px;border-bottom:1px solid rgba(220,235,222,.2);color:#f4f6f1;font-size:21px;font-weight:600}
.footer-column h2 span{color:#b6d6bb;font-size:23px}
.footer-column p,.footer-column a{margin:0;color:#d2ddd3;font-size:13px;line-height:1.8;text-decoration:none}
.footer-column a:hover{color:#f4d98e}
.footer-donate-button{width:100%;min-height:43px;margin-top:7px!important;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e5e9e5;color:#1b3022!important;font-size:14px!important;font-weight:700}
.footer-social-placeholders{display:flex;align-items:center;gap:9px;margin-top:8px}
.footer-social-placeholders span{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(220,235,222,.27);border-radius:50%;color:#d8e5d9;font-size:15px;font-weight:700}
.footer-social-empty{width:100%;display:grid;gap:7px;margin-top:4px}
.footer-social-empty span{height:27px;border:1px solid rgba(220,235,222,.17);border-radius:5px;background:rgba(255,255,255,.025)}
.dbht-footer .copyright{padding:14px 18px;text-align:center;border-top:1px solid rgba(220,235,222,.12);color:#aebdb0;font-size:11px}
.donate-page{max-width:850px;margin:45px auto 70px;padding:35px;border:1px solid rgba(185,206,190,.2);border-radius:16px;background:#151d18;color:#eef4ee}
.donate-page .eyebrow{color:#a9cda8;font-size:11px;letter-spacing:.1em}.donate-page h1{font-size:29px;margin:12px 0}.donate-page p{color:#c2cec4;line-height:1.9}.donate-notice{display:grid;gap:7px;margin:25px 0;padding:18px;border:1px solid rgba(185,206,190,.22);border-radius:10px;background:#1d2920;color:#e8f0e8}.donate-notice span{font-size:13px;color:#b8c7ba}
/* Ten coordinated page themes. */
html[data-theme="forest"]{--v20-header:#14251b;--v20-nav:#2b6740}html[data-theme="ocean"]{--v20-header:#14232b;--v20-nav:#15536b}html[data-theme="midnight"]{--v20-header:#171721;--v20-nav:#303047}html[data-theme="slate"]{--v20-header:#20272d;--v20-nav:#3c4b55}html[data-theme="burgundy"]{--v20-header:#28191e;--v20-nav:#6a293b}html[data-theme="violet"]{--v20-header:#211a2b;--v20-nav:#503a70}html[data-theme="desert"]{--v20-header:#29231b;--v20-nav:#70532c}html[data-theme="sepia"]{--v20-header:#292219;--v20-nav:#6e5637}
html[data-theme="light"] .site-header{background:#e8eee9!important}html[data-theme="light"] .header-brand-copy strong{color:#183d29!important}html[data-theme="light"] .header-brand-copy small{color:#4d6654!important}html[data-theme="light"] .site-theme-select,html[data-theme="light"] .header-account{background:#f5f8f5;color:#244431}
.main-nav-row{background:var(--v20-nav)!important}.site-header{background:var(--v20-header)!important}
@media(max-width:1180px){.header-inner{grid-template-columns:minmax(205px,260px) minmax(300px,1fr)!important;grid-template-areas:"brand actions" "search search";row-gap:9px}.header-brand{grid-area:brand}.header-search-centered{grid-area:search;max-width:780px}.header-actions-visible{grid-area:actions}.app-download-layout{grid-template-columns:1fr!important}.app-download-right{border-left:0!important;border-top:1px solid rgba(211,228,213,.14);padding:17px 0 0!important}}
@media(max-width:760px){.header-inner{grid-template-columns:1fr!important;grid-template-areas:"brand" "search" "actions";padding:10px 12px!important;gap:8px}.header-brand img{width:48px!important;height:48px!important;flex-basis:48px}.header-brand-copy strong{font-size:14px!important}.header-brand-copy small{font-size:10px!important}.header-search-centered{width:100%;max-width:none!important}.header-search input{font-size:12px!important}.header-search select{max-width:93px;font-size:10px!important}.header-actions-visible{justify-content:space-between;width:100%}.site-theme-select{max-width:115px;flex:1}.header-account,.header-donate{font-size:11px;padding:7px 9px}.main-nav-row{justify-content:flex-start;overflow-x:auto;gap:4px;padding:5px 8px!important}.main-nav-row a{flex:0 0 auto;min-height:41px;padding:7px 10px!important;font-size:12px!important}.main-nav-row .nav-symbol{font-size:17px!important}.home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px 3px!important}.home-feature-grid .feature-icon,.home-feature-grid .feature-quran-image{width:clamp(66px,19vw,92px)!important;height:clamp(66px,19vw,92px)!important}.home-feature-grid .feature-tile span{font-size:12px!important}.home-feature-grid .feature-tile small{font-size:9px}.app-download-layout{grid-template-columns:1fr!important}.app-feature-list{grid-template-columns:1fr!important;gap:4px}.app-feature-list li{font-size:11px}.app-download-right{border-top:1px solid rgba(211,228,213,.14);padding-top:14px!important}.app-platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.app-platform-item img{width:clamp(88px,25vw,118px)!important;height:clamp(88px,25vw,118px)!important}.dbht-footer-grid{grid-template-columns:1fr!important;padding:0 18px 23px}.footer-column h2{font-size:18px}.donate-page{margin:25px 10px 45px;padding:22px 17px}}
/* Full-page palette variables for ten selectable themes. */
html[data-theme="forest"]{--navy:#071a11;--navy-2:#0c2418;--navy-3:#123321;--ink:#edf4ed;--muted:#a9bcae;--line:rgba(197,223,202,.16);--green:#8dc99d}
html[data-theme="ocean"]{--navy:#071923;--navy-2:#0b2634;--navy-3:#12384a;--ink:#edf5f8;--muted:#a9bec9;--line:rgba(186,219,232,.16);--green:#80c7d5}
html[data-theme="midnight"]{--navy:#10101a;--navy-2:#171725;--navy-3:#242438;--ink:#f0eff7;--muted:#b3b0c7;--line:rgba(210,205,238,.16);--green:#b4a3dd}
html[data-theme="slate"]{--navy:#121b22;--navy-2:#1b2831;--navy-3:#263944;--ink:#eef3f5;--muted:#aebdc4;--line:rgba(205,222,229,.16);--green:#9bc6d2}
html[data-theme="burgundy"]{--navy:#1e1117;--navy-2:#2a1720;--navy-3:#3e202d;--ink:#f7edf0;--muted:#c6aeb8;--line:rgba(238,202,216,.16);--green:#d49caf}
html[data-theme="violet"]{--navy:#171120;--navy-2:#21172e;--navy-3:#322242;--ink:#f3eff8;--muted:#bdb0ca;--line:rgba(221,203,239,.16);--green:#c3a1e3}
html[data-theme="desert"]{--navy:#1c1710;--navy-2:#292116;--navy-3:#3b2f1f;--ink:#f5efe4;--muted:#c7b99f;--line:rgba(239,221,186,.16);--green:#d3b87d}
html[data-theme="sepia"]{--navy:#21190f;--navy-2:#302417;--navy-3:#443421;--ink:#f3e9d8;--muted:#c6b69c;--line:rgba(239,220,188,.17);--green:#d4b98b}
html[data-theme="light"]{--navy:#f2f5f2;--navy-2:#e9efea;--navy-3:#dfe9e1;--ink:#24362a;--muted:#64776a;--line:#d4e0d7;--green:#2b8b5b}
html[data-theme="light"] .main-nav-row{color:#fff}html[data-theme="light"] .home-feature-grid .feature-tile span{color:#24362a!important;text-shadow:none}
html[data-theme="light"] .app-download-left h2,html[data-theme="light"] .app-download-right,html[data-theme="light"] .app-right-heading{color:#f4f6f1}
