@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap");
:root{--navy:#071f36;--deep:#061a2c;--gold:#e7b129;--cream:#f7f3e9;--ink:#102a40;--muted:#607184;--line:#d9e0e5;--white:#fff;--teal:#0e7b78}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:"Source Sans 3","Noto Kufi Arabic",sans-serif}
html[lang=ar] body{font-family:"Noto Kufi Arabic","Source Sans 3",sans-serif}
a{color:inherit}
.shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.skip{position:absolute;inset-block-start:-100px;inset-inline-start:20px;background:#fff;padding:12px 18px;z-index:10}
.skip:focus{inset-block-start:12px}
.site-header{position:sticky;top:0;z-index:5;background:rgba(7,31,54,.97);color:#fff;border-bottom:1px solid rgba(231,177,41,.35)}
.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.brand{display:block;flex:0 0 auto}
.brand img{display:block;width:176px;height:auto}
nav{display:flex;gap:24px;align-items:center;margin-inline:auto}
nav a,.language{text-decoration:none;font-weight:600}
nav a:hover,.language:hover{color:var(--gold)}
.language{border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:8px 14px}
.hero{padding:clamp(68px,9vw,116px) 0;background:radial-gradient(circle at 15% 15%,rgba(231,177,41,.14),transparent 28%),linear-gradient(135deg,var(--navy),#0c3a50);color:#fff}
.hero .shell{max-width:980px}
.kicker{margin:0 0 12px;color:var(--gold);font-weight:800;letter-spacing:.05em}
.hero h1{margin:0;font-size:clamp(2.3rem,6vw,5rem);line-height:1.12;max-width:900px}
.hero p:last-child{margin:24px 0 0;max-width:800px;color:#dbe5ec;font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.85}
.library{padding-block:clamp(48px,7vw,88px)}
.tools{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px}
.filters{display:flex;flex-wrap:wrap;gap:10px}
button,input{font:inherit}
.filters button{border:1px solid #b6c2cb;border-radius:999px;background:#fff;color:var(--ink);padding:10px 18px;cursor:pointer;font-weight:700}
.filters button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.search input{width:min(360px,100%);min-height:46px;border:1px solid #b6c2cb;border-radius:12px;background:#fff;padding:10px 16px;color:var(--ink)}
.result-count{margin:12px 0 28px;color:var(--muted);font-weight:700}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.book-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(7,31,54,.07)}
.book-card[hidden]{display:none}
.cover-wrap{aspect-ratio:4/5;background:#eef2f4;padding:18px;display:grid;place-items:center}
.cover-wrap img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px rgba(7,31,54,.18))}
.book-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:20px}
.theme{color:var(--teal);font-size:.88rem;font-weight:800}
.book-card h2{margin:10px 0 22px;font-size:1.07rem;line-height:1.55}
.buy{display:inline-flex;align-items:center;gap:8px;margin-top:auto;border-radius:10px;background:var(--gold);color:#061a2c;padding:10px 14px;text-decoration:none;font-weight:800}
.buy:hover{background:#f2c658}
.seller-note{margin-top:36px;padding:20px 24px;border-inline-start:4px solid var(--gold);background:#fff;color:var(--muted);line-height:1.75}
.empty{padding:32px;background:#fff;border-radius:16px;text-align:center;font-weight:700}
.next-step{padding:clamp(48px,7vw,78px) 0;background:var(--navy);color:#fff}
.next-grid{display:grid;grid-template-columns:1fr auto;align-items:center;gap:32px}
.next-step h2{margin:0;font-size:clamp(1.8rem,4vw,3rem)}
.next-step p:not(.kicker){max-width:760px;color:#dbe5ec;line-height:1.8}
.primary{display:inline-flex;justify-content:center;border-radius:12px;background:var(--gold);color:#061a2c;padding:14px 22px;text-decoration:none;font-weight:800}
footer{padding:28px 0;background:#041321;color:#cbd6de}
footer .shell{display:flex;justify-content:space-between;gap:20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:980px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}nav{display:none}}
@media(max-width:720px){.shell{width:min(100% - 28px,1180px)}.header-inner{min-height:68px;gap:14px}.brand img{width:148px}.language{margin-inline-start:auto}.tools{align-items:stretch;flex-direction:column}.search input{width:100%}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.book-copy{padding:15px}.cover-wrap{padding:12px}.next-grid{grid-template-columns:1fr}.primary{width:100%}footer .shell{flex-direction:column}}
@media(max-width:430px){.book-grid{grid-template-columns:1fr}.book-card{display:grid;grid-template-columns:42% 58%}.cover-wrap{aspect-ratio:auto;min-height:250px}.book-copy{padding:18px}.book-card h2{font-size:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
