@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root {
  --ink:#073f43; --muted:#49666a; --paper:#f8f8f3; --line:#e2e6e0;
  --shadow:0 7px 20px rgba(25,48,45,.10);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--paper);color:#162b2d;font-family:"Vazirmatn",Tahoma,Arial,sans-serif}
a{color:inherit;text-decoration:none}
.container{width:min(980px,calc(100% - 32px));margin:auto}

header{height:76px;background:#fff;border-bottom:1px solid #edf0eb;display:flex;align-items:center;position:relative;z-index:3}
.header-inner{width:min(980px,calc(100% - 32px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:left top;mix-blend-mode:multiply}
.brand-text b{display:block;font-family:Arial,sans-serif;font-size:25px;letter-spacing:1px;color:#073f43}
.brand-text span{font-size:12px;color:#284e50}
.nav{display:flex;align-items:center;gap:34px;font-size:14px;font-weight:600}
.nav a{padding:28px 0 20px;border-bottom:3px solid transparent}
.nav a.active{border-bottom-color:#0a4b4e}
.search-icon{font-size:27px;line-height:1}

.hero{position:relative;min-height:355px;overflow:hidden;background:#f3f3ed}
.hero::before{content:"";position:absolute;inset:0;background:
 linear-gradient(90deg,rgba(248,248,243,.98) 0%,rgba(248,248,243,.92) 34%,rgba(248,248,243,.16) 66%,rgba(248,248,243,0) 100%),
 url("https://quran.ir/wsb/img/hero.jpg") right center/cover no-repeat;}
.hero-content{position:relative;padding:48px 0 28px;max-width:610px;text-align:center;margin-right:auto;margin-left:auto}
.hero h1{font-size:42px;line-height:1.55;color:#06464a;margin:0 0 8px;font-weight:800}
.hero p{font-size:16px;line-height:2;color:#274f51;margin:0 auto 20px;max-width:620px}
.search{height:54px;max-width:520px;margin:auto;background:#fff;border:1px solid #e5e7e2;border-radius:30px;display:flex;align-items:center;
gap:10px;padding:0 18px;box-shadow:var(--shadow);text-align:right}
.search span{font-size:25px;color:#06464a}
.search input{border:0;outline:0;width:100%;font:inherit;color:#567;direction:rtl;background:transparent}
.search input::placeholder{color:#777}

.category-nav{display:grid;grid-template-columns:repeat(13,1fr);gap:7px;margin-top:-18px;position:relative;z-index:2}
.nav-card{background:rgba(255,255,255,.96);border:1px solid #e3e7e1;border-radius:11px;min-height:87px;display:flex;flex-direction:column;
align-items:center;justify-content:center;gap:7px;box-shadow:0 5px 15px rgba(30,50,48,.08);text-align:center;padding:7px 4px}
.nav-card span{font-size:25px;color:#0c4c50}
.nav-card small{font-size:10px;font-weight:600;line-height:1.45}
.nav-card.active{background:#07555a;color:#fff;border-color:#07555a}
.nav-card.active span{color:#fff}

.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 26px}
.card{background:#fff;border:1px solid #e5e7e2;border-radius:11px;overflow:hidden;box-shadow:0 4px 12px rgba(26,43,41,.06)}
.card-head{height:47px;color:#fff;display:flex;align-items:center;gap:9px;padding:0 11px;font-size:13px}
.card-head strong{flex:1;text-align:center}
.badge{width:34px;height:27px;border:1px solid rgba(255,255,255,.9);border-radius:18px;display:grid;place-items:center;font-size:12px}
.head-icon{font-size:21px}
.emerald{background:#0b815d} .gold{background:#b3811e} .blue{background:#075cae}
.purple{background:#5540a4} .teal{background:#078b85} .red{background:#c51f32}
.olive{background:#657c2e} .brown{background:#8d6a31} .crimson{background:#a91645}
.slate{background:#315d78}
.card-body{padding:4px 10px 8px}
.item{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eceeea;min-height:62px}
.item:last-of-type{border-bottom:0}
.item-icon{width:40px;height:40px;border:1px solid #e4e7e1;border-radius:8px;display:grid;place-items:center;font-size:23px;color:#2a6870;
flex:0 0 auto;background:#fbfcfa}
.item div:last-child{min-width:0}
.item b{display:block;font-size:12px;line-height:1.65;color:#172c2e}
.item span{display:block;font-size:9px;color:#667879;line-height:1.55}
.more{display:block;text-align:left;color:#07565b;font-size:10px;font-weight:700;padding:9px 2px 2px}

footer{background:#034b50;color:#fff;margin-top:20px;position:relative;overflow:hidden}
footer::before{content:"";position:absolute;inset:auto 0 0 0;height:95px;
background:linear-gradient(90deg,rgba(0,25,27,.35),transparent),url("https://quran.ir/wsb/img/hero.jpgemblem.jpg") left bottom/120px auto no-repeat;
opacity:.55}
.footer-inner{position:relative;display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:35px;padding:38px 0 32px}
.footer-brand b{font:700 23px Arial,sans-serif;letter-spacing:1px}
.footer-brand p{font-size:12px;line-height:2.2;color:#d4e6e5;margin:12px 0 0}
.footer-col h4{font-size:14px;margin:0 0 12px}
.footer-col a{display:block;font-size:11px;color:#d4e6e5;line-height:2.2}
.copyright{position:relative;text-align:center;font-size:10px;color:#bdd5d3;padding:0 0 15px}

@media (max-width: 900px){
  .nav{gap:16px} .nav a{font-size:12px}
  .category-nav{grid-template-columns:repeat(7,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 620px){
  header{height:auto;padding:10px 0} .header-inner{flex-wrap:wrap}
  .nav{order:3;width:100%;justify-content:space-between;gap:10px}
  .nav a{padding:7px 0;font-size:11px}
  .brand-mark{width:48px;height:48px} .brand-text b{font-size:20px}
  .hero{min-height:370px} .hero-content{padding:40px 12px 25px}
  .hero h1{font-size:30px;line-height:1.6} .hero p{font-size:13px}
  .category-nav{grid-template-columns:repeat(4,1fr);margin-top:-8px}
  .nav-card{min-height:78px} .nav-card small{font-size:9px}
  .grid{grid-template-columns:1fr;gap:10px}
  .footer-inner{grid-template-columns:1fr 1fr;gap:25px}
}