:root{--blue:#0c52bb;--blue2:#0b3f9c;--ink:#0c2b5a;--line:#dce7f7;--bg:#f7fbff;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;color:var(--ink);background:var(--bg)}
.topbar{height:96px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 4.4vw;gap:24px}.brand{display:flex;align-items:center;gap:28px}.brand img{width:135px;height:72px;object-fit:contain}.author{display:flex;flex-direction:column;gap:6px}.author span{font-weight:800;color:#0751b8}.author strong{font-size:18px;color:#121212}.head-actions{display:flex;gap:18px;align-items:center}.search{width:280px;height:45px;border:1px solid #ccd8eb;border-radius:12px;display:flex;align-items:center;background:#fff}.search input{border:0;outline:0;padding:0 16px;width:100%;font-size:15px}.search span{font-size:26px;padding-right:12px}.login{border:0;background:linear-gradient(135deg,#0d63e6,#0548bd);color:#fff;border-radius:24px;padding:14px 25px;font-weight:800;font-size:15px;cursor:pointer}
.nav{position:sticky;top:0;z-index:20;display:flex;justify-content:center;gap:0;background:linear-gradient(90deg,#0d4fb6,#063e99);box-shadow:0 4px 12px #0c3d7b26}.nav a{color:#fff;text-decoration:none;padding:18px 24px;font-weight:700;font-size:14px;border-bottom:3px solid transparent}.nav a:hover,.nav a.active{background:#ffffff10;border-bottom-color:#fff}
.hero{position:relative;min-height:445px;background:url('assets/hero-bg.jpg') center/cover no-repeat;display:flex;align-items:center;justify-content:center;overflow:hidden}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0f61c947 0%,#ffffff19 45%,#ffffff10 100%)}.hero-content{position:relative;z-index:2;text-align:center;max-width:790px;margin-top:12px}.hero-logo{width:300px;filter:drop-shadow(0 16px 18px #0b3b8650)}.hero h1{font-size:72px;line-height:.92;margin:2px 0 2px;letter-spacing:2px;color:#082d72}.hero h1 span{color:#086be6}.sub{font-weight:900;letter-spacing:2px;margin:10px 0 34px}.motto{display:inline-block;background:#fff;border-radius:16px;padding:16px 28px;font-size:19px;font-weight:800;box-shadow:0 8px 25px #133a6d26}
.categories{max-width:1450px;margin:26px auto 8px;padding:0 32px;display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.card{background:#fff;border:1px solid #dfe8f4;border-radius:18px;padding:22px;box-shadow:0 6px 18px #164f8e14;min-height:245px;display:flex;flex-direction:column;align-items:flex-start}.icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900;font-size:28px}.orange{background:#ff6d00}.pink{background:#e9405f}.teal{background:#07989b}.brown{background:#9c6530}.blue{background:#1b67b8}.card h3{margin:14px 0 8px;color:#0c4ea8}.card p{font-size:14px;line-height:1.55;color:#47596d;min-height:66px}.badge{font-size:12px;border-radius:15px;background:#edf4ff;padding:6px 10px;margin:4px 0 16px}.card button{margin-top:auto;width:100%;background:#fff;border:1.5px solid #0c63c6;color:#0b57b8;border-radius:10px;padding:10px;font-weight:800;cursor:pointer}.card button:hover{background:#0c63c6;color:#fff}
.popular{max-width:1450px;margin:18px auto 40px;padding:0 32px}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title h2{font-size:25px}.all-btn{background:#0756bd;color:#fff;border:0;border-radius:9px;padding:11px 18px;font-weight:800}.popular-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.material{background:#fff;border:1px solid #e2eaf5;border-radius:16px;overflow:hidden;box-shadow:0 7px 18px #0c418318}.material img{display:block;width:100%;height:160px;object-fit:cover}.material div{padding:14px 16px}.material h3{margin:0 0 6px;color:#12366e}.material p{margin:0;color:#64748b;font-size:14px}.info-panel{max-width:1370px;margin:0 auto 38px;background:linear-gradient(135deg,#0a58be,#0a8bd2);color:#fff;padding:28px 34px;border-radius:20px;display:flex;justify-content:space-between;align-items:center}.info-panel h2{margin:0 0 6px}.info-panel p{margin:0}.info-panel a{color:#0a52b7;background:#fff;text-decoration:none;border-radius:10px;padding:12px 20px;font-weight:800}footer{text-align:center;background:#082d72;color:#fff;padding:22px}
@media (max-width:1050px){.categories{grid-template-columns:repeat(2,1fr)}.popular-grid{grid-template-columns:repeat(2,1fr)}.nav{overflow-x:auto;justify-content:flex-start}.nav a{white-space:nowrap}.topbar{height:auto;flex-direction:column;align-items:stretch}.head-actions{justify-content:space-between}.hero h1{font-size:56px}}
@media (max-width:650px){.author strong{font-size:14px}.brand{gap:12px}.brand img{width:105px}.search{width:100%}.head-actions{flex-direction:column;align-items:stretch}.categories,.popular{padding:0 14px}.categories{grid-template-columns:1fr}.popular-grid{grid-template-columns:1fr}.hero{min-height:390px}.hero-logo{width:220px}.hero h1{font-size:44px}.motto{font-size:15px;margin:0 15px}.info-panel{margin:0 14px 25px;flex-direction:column;gap:18px;align-items:flex-start}}

/* ===== Бекенд кошулгандан кийинки кошумча стилдер ===== */
.search{overflow:hidden}
.search-btn{border:0;background:transparent;font-size:24px;padding:0 12px;cursor:pointer;color:#0b57b8}
.login{display:inline-block;text-decoration:none}
.all-btn{display:inline-block;text-decoration:none;cursor:pointer}
.material{cursor:pointer;transition:transform .15s,box-shadow .15s}
.material:hover{transform:translateY(-3px);box-shadow:0 12px 26px #0c418326}
.tag{display:inline-block;margin-top:8px;font-size:12px;background:#edf4ff;color:#0b57b8;border-radius:14px;padding:5px 10px}
.cat-desc{color:#47596d;margin:0 0 18px}
.empty{color:#7b8aa0;background:#fff;border:1px dashed #cbd9ec;border-radius:14px;padding:26px;text-align:center}
.material-detail{display:grid;grid-template-columns:1fr 1fr;gap:26px;background:#fff;border:1px solid #e2eaf5;border-radius:16px;padding:22px;box-shadow:0 7px 18px #0c418318}
.material-detail img{width:100%;max-height:360px;object-fit:cover;border-radius:12px}
.material-body p{line-height:1.6}
.material-body .meta{color:#7b8aa0;font-size:13px}
.section-title small{font-size:15px;font-weight:400;color:#64748b}
@media (max-width:900px){.material-detail{grid-template-columns:1fr}}

/* Футер ар дайым беттин эң ылдыйында турсун (мазмун аз болсо да) */
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto}
footer{margin-top:auto}
.material-detail img{display:block;margin:0 auto;object-fit:contain;background:#f4f8fd}
