/* HadithApps v1.8 — DBHT navigation, transparent category icons and Quran project strip */
:root{
  --dbht-menu:#1d4d37;
  --dbht-menu-border:#3b7554;
  --dbht-gold:#dfc37d;
  --dbht-text:#f3f7f1;
  --dbht-muted:#b5c8ba;
}

/* One floating menu only: no left-side DBHT wordmark or extra menu row. */
.site-header{
  position:sticky;
  top:8px;
  z-index:100;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:7px clamp(10px,2vw,24px) 0;
  backdrop-filter:none !important;
}
.header-inner{
  width:min(100%,1580px);
  max-width:1580px !important;
  min-height:70px;
  margin:0 auto;
  padding:9px clamp(12px,1.7vw,24px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(12px,1.4vw,22px);
  background:linear-gradient(120deg,#1d4d37 0%,#21573c 55%,#1a4934 100%) !important;
  border:1px solid var(--dbht-menu-border);
  border-radius:19px;
  box-shadow:0 12px 30px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
}
.header-inner>.dbht-brand{display:none !important}
.main-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:1 1 auto;
  min-width:0;
  gap:clamp(2px,.45vw,9px);
  color:#f2f7f2;
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
}
.main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:48px;
  padding:9px clamp(8px,.85vw,15px);
  border:0 !important;
  border-radius:10px;
  background:transparent !important;
  color:#f5f8f3 !important;
  font-size:clamp(13px,.95vw,16px);
  font-weight:700;
  text-decoration:none;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible{
  background:rgba(7,35,22,.30) !important;
  color:#fff !important;
  transform:translateY(-1px);
}
.nav-symbol{
  display:inline-grid;
  place-items:center;
  width:auto;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent !important;
  color:var(--dbht-gold) !important;
  font-size:21px;
  line-height:1;
}
.nav-caret{
  color:#d6e4d7;
  font-size:17px;
  line-height:1;
  margin-left:1px;
}
.header-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
  gap:10px;
  min-width:0;
}
.header-search{
  display:flex;
  align-items:center;
  gap:5px;
  width:clamp(280px,26vw,390px);
  min-width:0;
  margin:0;
  padding:4px 5px 4px 12px;
  border:1px solid rgba(229,240,230,.75);
  border-radius:999px;
  background:#f1f5ef;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.06);
}
.header-search-icon{color:#326b49;font-size:22px;line-height:1}
.header-search input{
  flex:1 1 auto;
  min-width:55px;
  width:100%;
  height:37px;
  padding:0 5px;
  border:0;
  outline:0;
  background:transparent;
  color:#1f3829;
  font-family:'Noto Sans Bengali',sans-serif;
  font-size:13px;
}
.header-search input::placeholder{color:#789080}
.header-search select{
  flex:0 0 auto;
  max-width:100px;
  height:34px;
  padding:0 4px;
  border:0;
  border-left:1px solid #d1ddd3;
  outline:0;
  background:transparent;
  color:#365543;
  font-size:11px;
}
.header-search button{
  flex:0 0 36px;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#286b48;
  color:#fff;
  font-size:23px;
  line-height:1;
}
.header-search button:hover{background:#174d33}
.header-actions{display:flex;align-items:center;gap:7px}
.header-account{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border:1px solid rgba(232,242,231,.35);
  border-radius:10px;
  color:#f5f8f2 !important;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.header-actions .btn{font-size:12px;white-space:nowrap}

/* Spacious homepage, with the category icons directly on the page background. */
.page-shell{max-width:1560px}
.home-category-section{
  width:100%;
  margin:34px auto 32px;
  padding:0 8px;
}
.home-feature-grid{
  width:100%;
  max-width:1480px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:start;
  justify-items:center;
  gap:clamp(8px,1.8vw,26px);
}
.home-feature-grid a.feature-tile,
.home-feature-grid a.feature-tile:hover,
.home-feature-grid a.feature-quran-tile,
.home-feature-grid a.feature-quran-tile:hover{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  width:100%;
  min-height:0;
  padding:0 5px 7px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#fff !important;
  text-align:center;
  text-decoration:none;
  transform:none;
}
.home-feature-grid a.feature-tile:hover .feature-icon{
  transform:translateY(-4px) scale(1.035);
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.30));
}
.feature-icon{
  display:block;
  width:clamp(112px,10.2vw,146px);
  height:clamp(112px,10.2vw,146px);
  max-width:100%;
  margin:0 auto;
  object-fit:contain;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.18));
  transition:transform .18s ease,filter .18s ease;
}
.feature-quran-image{
  width:clamp(126px,11vw,158px);
  height:clamp(126px,11vw,158px);
  margin-bottom:-1px;
}
.home-feature-grid .feature-tile span{
  display:block;
  margin:0;
  color:#f5f6f2 !important;
  font-family:'Noto Sans Bengali','Noto Serif Bengali',sans-serif;
  font-size:clamp(13px,.95vw,16px);
  font-weight:400 !important;
  line-height:1.45;
  text-shadow:0 1px 5px rgba(0,0,0,.46);
}
.home-feature-grid .feature-quran-tile span{
  font-size:clamp(12px,.9vw,15px);
  font-weight:400 !important;
  margin-top:-2px;
}

/* Quran project container: readable left copy and DBHT project identity + language picker on the right. */
.quran-project-strip{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1490px;
  margin:28px auto 38px;
  padding:22px clamp(16px,2vw,30px) 20px;
  border:1px solid rgba(104,148,111,.38);
  border-radius:20px;
  background:linear-gradient(130deg,rgba(19,45,30,.96),rgba(15,31,22,.98) 56%,rgba(23,50,32,.96));
  box-shadow:0 14px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.04);
}
.quran-project-heading{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(430px,1fr);
  align-items:center;
  gap:24px;
  margin-bottom:16px;
}
.quran-project-copy{min-width:0}
.quran-project-copy .eyebrow{
  color:#c4d9b5;
  font-size:10px;
  letter-spacing:.13em;
  font-weight:700;
}
.quran-project-heading h2{
  margin:5px 0 5px;
  color:#f6f8ef;
  font-size:clamp(19px,1.75vw,26px);
  font-weight:600;
  line-height:1.45;
}
.quran-project-heading p{
  margin:0;
  color:#c0d0c0;
  font-size:13px;
  line-height:1.7;
}
.quran-project-identity{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:20px;
  min-width:0;
}
.quran-project-brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.quran-project-brand img{
  flex:0 0 70px;
  width:70px;
  height:70px;
  object-fit:contain;
  background:transparent;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.22));
}
.quran-project-brand strong{
  display:block;
  color:#fff;
  font-size:14px;
  font-weight:600;
}
.quran-project-brand small{
  display:block;
  margin-top:4px;
  color:#b7cbb8;
  font-family:Inter,sans-serif;
  font-size:9px;
  letter-spacing:.08em;
  line-height:1.5;
}
.language-picker-compact{
  flex:0 1 220px;
  min-width:160px;
  margin:0;
}
.language-picker-compact label{
  display:block;
  margin-bottom:5px;
  color:#cbd9c7;
  font-size:11px;
}
.language-picker-compact select{
  width:100%;
  max-width:100%;
  min-width:0;
  color:#eff6ed;
  border:1px solid #466a4c;
  border-radius:10px;
  background:#172b1d;
  padding:10px 12px;
  font-size:12px;
}
.language-picker-compact select option{background:#172b1d;color:#fff}

/* Platform grid: large, isolated artwork rather than small badges inside white/colored cards. */
.platform-grid.platform-grid-one-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-auto-flow:initial;
  grid-auto-columns:initial;
  gap:clamp(10px,1.6vw,24px);
  overflow:visible;
  padding:14px 0 0;
  border-top:1px solid rgba(171,199,169,.18);
}
.platform-card-compact{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:9px 5px 2px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  text-align:center;
}
.platform-card-compact .platform-icon-image{
  display:block;
  flex:0 0 auto;
  width:clamp(72px,7.3vw,104px);
  height:clamp(72px,7.3vw,104px);
  max-width:100%;
  object-fit:contain;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 6px 11px rgba(0,0,0,.23));
}
.platform-card-compact .platform-copy{min-width:0}
.platform-card-compact h3{
  margin:0;
  color:#f1f6ee !important;
  font-size:14px;
  font-weight:600;
}
.platform-card-compact p{
  margin:2px 0 0;
  color:#b4c6b3 !important;
  font-size:10px;
  line-height:1.5;
}

/* Floating DBHT badge, not part of the top menu. */
.dbht-floating-logo{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:110;
  width:116px;
  height:116px;
  display:grid;
  place-items:center;
  padding:0;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.dbht-floating-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 7px 14px rgba(0,0,0,.35));
}

/* Responsive arrangement without losing the one-menu/one-search structure. */
@media(max-width:1180px){
  .header-inner{flex-wrap:wrap;gap:8px;padding:9px 14px}
  .main-nav{order:1;flex:1 1 100%;justify-content:space-around;flex-wrap:wrap}
  .header-tools{order:2;width:100%;justify-content:flex-end}
  .header-search{width:min(100%,560px)}
  .quran-project-heading{grid-template-columns:1fr}
  .quran-project-identity{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:760px){
  .site-header{top:4px;padding:4px 7px 0}
  .header-inner{border-radius:14px;padding:8px 9px}
  .main-nav{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;gap:5px;padding-bottom:2px}
  .main-nav a{font-size:12px;padding:8px 9px;min-height:40px;gap:5px}
  .nav-symbol{font-size:17px}
  .nav-caret{font-size:14px}
  .header-tools{justify-content:stretch}
  .header-search{width:100%;max-width:none}
  .header-search select{max-width:88px;font-size:10px}
  .header-actions{display:none}
  .home-category-section{margin:23px auto 20px;padding:0 4px}
  .home-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px;column-gap:4px}
  .feature-icon{width:clamp(92px,24vw,128px);height:clamp(92px,24vw,128px)}
  .feature-quran-image{width:clamp(106px,27vw,140px);height:clamp(106px,27vw,140px)}
  .home-feature-grid .feature-tile span{font-size:13px}
  .home-feature-grid .feature-quran-tile span{font-size:12px}
  .quran-project-strip{margin:20px auto 28px;padding:16px 13px;border-radius:15px}
  .quran-project-heading{gap:13px;margin-bottom:11px}
  .quran-project-heading h2{font-size:19px}
  .quran-project-heading p{font-size:12px}
  .quran-project-identity{gap:12px}
  .quran-project-brand img{width:56px;height:56px;flex-basis:56px}
  .quran-project-brand strong{font-size:12px}
  .quran-project-brand small{font-size:8px}
  .language-picker-compact{flex:1 1 100%;min-width:0}
  .platform-grid.platform-grid-one-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:10px}
  .platform-card-compact .platform-icon-image{width:68px;height:68px}
  .platform-card-compact h3{font-size:12px}
  .platform-card-compact p{font-size:9px}
  .dbht-floating-logo{width:82px;height:82px;left:8px;bottom:8px}
}
@media(max-width:390px){
  .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-search select{max-width:75px}
}
