@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root{
  --bg:#0b0f14;
  --surface:#11171d;
  --surface2:#151c23;
  --line:#202a33;
  --text:#f5f7fa;
  --muted:#9aa6b2;
  --blue:#38bdf8;
  --red:#ff3b30;
  --blue-soft:rgba(56,189,248,.09);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{width:min(1320px,calc(100% - 40px));margin:auto}

/* TOP BAR */
.topbar{background:#05080c;border-bottom:1px solid #161e26;color:#b9c4cc;font-size:12px}
.topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between}
.breaking{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.breaking span{
  display:inline-block;
  background:var(--red);
  color:#fff;
  padding:7px 11px;
  margin-right:10px;
  font-weight:800;
  font-size:11px;
  letter-spacing:.25px;
}
.breaking strong{font-weight:500}
.social{color:#8b99a4;font-size:11px}

/* HEADER */
.header{
  background:#0b0f14;
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:30px;
}
.logo{
  font-family:Manrope,Inter,sans-serif;
  font-size:29px;
  font-weight:800;
  line-height:1;
  letter-spacing:-1.5px;
  white-space:nowrap;
}
.logo span{color:var(--blue)}
.logo small{
  display:block;
  font-family:Inter,sans-serif;
  font-size:10px;
  color:#7e8a95;
  font-weight:500;
  letter-spacing:0;
  margin-top:6px;
}
.header nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
}
.header nav a{
  color:#e5ebef;
  font-size:13px;
  font-weight:700;
  padding:11px 10px;
  border-radius:6px;
  white-space:nowrap;
}
.header nav a:hover{
  color:#fff;
  background:var(--blue-soft);
}
.head-actions{display:flex;align-items:center}
.search-icon{
  width:40px;height:40px;
  display:grid;place-items:center;
  border:1px solid #293640;
  border-radius:8px;
  color:#dce5ea;
  font-size:25px;
}
.search-icon:hover{border-color:var(--blue);color:var(--blue)}

/* MAIN LAYOUT */
main{background:var(--bg);min-height:400px}
.page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:28px;
  padding-top:28px;
}
.content,.article{min-width:0}

/* HERO */
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:16px;
}
.hero{
  height:430px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:#10161d;
  box-shadow:0 12px 35px rgba(0,0,0,.28);
}
.hero-img,.hero-img img{width:100%;height:100%;object-fit:cover}
.hero-overlay{
  position:absolute;
  inset:auto 0 0;
  padding:30px;
  background:linear-gradient(transparent,rgba(0,0,0,.95));
}
.hero-overlay span,.badge{
  display:inline-block;
  background:var(--red);
  color:#fff;
  padding:5px 9px;
  border-radius:4px;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.hero h1{
  font-family:Manrope,Inter,sans-serif;
  font-size:36px;
  line-height:1.08;
  letter-spacing:-.9px;
  margin:12px 0 8px;
}
.hero p{margin:0 0 12px;color:#c7d1d8;line-height:1.5}
.hero small{color:#9aa6b2}

/* SECTION TITLES */
.section-title,.side-title{
  font-family:Manrope,Inter,sans-serif;
  font-size:18px;
  font-weight:800;
  margin:28px 0 14px;
  padding-left:11px;
  border-left:3px solid var(--blue);
  letter-spacing:-.2px;
}
.section-title a,.side-title a{
  float:right;
  color:var(--blue);
  font-family:Inter,sans-serif;
  font-size:10px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin-top:3px;
}
.latest-panel,.side-card{
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px;
  background:var(--surface);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.latest-panel .section-title{margin:0 0 8px}

/* LATEST / MINI */
.latest-item,.mini{
  display:flex;
  gap:11px;
  padding:11px 0;
  border-bottom:1px solid #1b252e;
}
.latest-item:last-child,.mini:last-child{border-bottom:0}
.thumb{
  width:88px;height:58px;
  flex:none;
  overflow:hidden;
  border-radius:6px;
  background:#151c23;
}
.thumb img{width:100%;height:100%;object-fit:cover}
.latest-item b,.mini b{display:block;font-size:12.5px;line-height:1.3}
.latest-item small,.mini small,.card small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:10px;
}

/* CARDS */
.cards{display:grid;gap:14px}
.cards.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.cards.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:#31505f;
  box-shadow:0 12px 30px rgba(0,0,0,.24);
}
.card-img{
  position:relative;
  height:150px;
  overflow:hidden;
  background:#151c23;
}
.card-img img{width:100%;height:100%;object-fit:cover}
.card-img em{
  position:absolute;
  top:8px;left:8px;
  background:var(--red);
  color:#fff;
  font-style:normal;
  font-size:12px;
  font-weight:800;
  padding:4px 7px;
  border-radius:4px;
}
.card>span{
  display:block;
  padding:10px 12px 0;
  color:var(--blue);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
}
.card h3{
  font-family:Manrope,Inter,sans-serif;
  font-size:15px;
  line-height:1.28;
  margin:6px 12px;
  color:#f1f5f7;
  letter-spacing:-.15px;
}
.card small{padding:0 12px 12px}

.placeholder{
  width:100%;height:100%;
  background:linear-gradient(135deg,#151c23,#0c1116);
}

/* ADS */
.adbox{
  min-height:100px;
  margin:16px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#0d1319;
  border:1px dashed #2a3944;
  border-radius:6px;
  color:#71808b;
}
.adbox.tall{height:300px}
.adbox.wide{height:90px}
.adbox span{font-size:8px;letter-spacing:1px;margin-bottom:8px}
.adbox strong{font-size:16px;color:#74838f}

/* SIDEBAR */
.side-card{margin-bottom:18px}
.most{
  display:flex;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #1b252e;
}
.most em{
  color:var(--red);
  font-size:18px;
  font-weight:800;
  font-style:normal;
}
.most b{font-size:12px;line-height:1.3}

/* CATEGORY / SEARCH */
.breadcrumbs{font-size:11px;color:#71808b;margin-bottom:15px}
.page-title{
  font-family:Manrope,Inter,sans-serif;
  font-size:40px;
  line-height:1.1;
  margin:0 0 8px;
  letter-spacing:-.8px;
}
.lead{color:var(--muted);line-height:1.5}
.post-list{margin-top:20px}
.list-card{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.list-img{
  height:165px;
  overflow:hidden;
  border-radius:8px;
  background:#151c23;
}
.list-img img{width:100%;height:100%;object-fit:cover}
.list-card span{
  color:var(--blue);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.list-card h2{
  font-family:Manrope,Inter,sans-serif;
  font-size:24px;
  line-height:1.18;
  margin:7px 0;
  letter-spacing:-.5px;
}
.list-card p{color:#8e9aa5;line-height:1.5}

/* ARTICLE */
.article h1{
  font-family:Manrope,Inter,sans-serif;
  font-size:48px;
  line-height:1.05;
  letter-spacing:-1.2px;
  margin:12px 0;
}
.article-deck{
  font-size:19px;
  color:#9ba8b3;
  line-height:1.5;
}
.byline{
  padding:12px 0;
  color:#73818c;
  font-size:12px;
  border-bottom:1px solid var(--line);
}
.byline span{float:right;color:#a8b4bd}
.featured{
  width:100%;
  max-height:620px;
  overflow:hidden;
  margin-top:20px;
  border-radius:9px;
  background:#151c23;
}
.featured img{width:100%;height:auto}
.caption{padding:6px;font-size:11px;color:#687680}
.article-body{
  color:#dce3e8;
  font-size:18px;
  line-height:1.78;
}
.article-body h2,.article-body h3{
  font-family:Manrope,Inter,sans-serif;
  color:#fff;
}
.article-body h2{font-size:28px;line-height:1.2;margin-top:30px}
.article-body h3{font-size:22px}
.article-body a{color:var(--blue)}
.article-body img{max-width:100%;height:auto}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}
.tags span{
  background:#111a21;
  border:1px solid #23323d;
  color:#b8c4cc;
  padding:6px 10px;
  border-radius:16px;
  font-size:11px;
}

/* SEARCH */
.search-form{display:flex;gap:10px}
.search-form input{
  flex:1;
  padding:14px;
  background:#0f151b;
  color:#fff;
  border:1px solid var(--line);
  border-radius:7px;
}
.search-form button{
  padding:0 20px;
  background:var(--red);
  color:#fff;
  border:0;
  border-radius:7px;
  font-weight:800;
}

/* FOOTER */
.footer{
  margin-top:55px;
  padding-top:45px;
  background:#070a0e;
  border-top:1px solid var(--line);
  color:#aeb9c2;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
}
.footer h4{color:#fff;font-family:Manrope,Inter,sans-serif}
.footer a{display:block;margin:9px 0;color:#8e9ba5}
.footer a:hover{color:var(--blue)}
.footer .logo span{color:var(--blue)}
.copyright{
  border-top:1px solid #141d25;
  padding:18px;
  color:#65737f;
  font-size:11px;
  text-align:center;
}

/* RESPONSIVE: never hide categories */
@media(max-width:1180px){
  .header-inner{gap:16px}
  .header nav{justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
  .header nav::-webkit-scrollbar{display:none}
  .header nav a{font-size:12px;padding:9px 8px}
  .page-grid{grid-template-columns:1fr}
  .sidebar{display:none}
  .cards.five{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .header-inner{min-height:72px;flex-wrap:wrap;padding:13px 0}
  .header nav{order:3;width:100%;flex:none;justify-content:flex-start;overflow-x:auto}
  .header nav a{font-size:12px;padding:8px 9px}
  .hero-grid{grid-template-columns:1fr}
  .hero{height:370px}
  .cards.five,.cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .wrap{width:calc(100% - 24px)}
  .topbar .social{display:none}
  .hero h1{font-size:29px}
  .hero-overlay{padding:22px}
  .cards.five,.cards.four{grid-template-columns:1fr 1fr}
  .list-card{grid-template-columns:120px minmax(0,1fr)}
  .list-img{height:100px}
  .list-card h2{font-size:18px}
  .article h1{font-size:33px}
  .article-body{font-size:17px}
  .footer-grid{grid-template-columns:1fr}
}

/* FINAL V7 FOOTER/CATEGORY POLISH */
.footer-brand p{color:#8e9ba5;line-height:1.6;margin:14px 0 0;max-width:360px}
.footer-column{min-width:0}
.footer-column h4{margin:0 0 14px;font-size:14px}
.footer-column a{display:block !important;width:max-content;max-width:100%;margin:8px 0 !important;line-height:1.45}
.footer-column a:hover{color:var(--blue)}
.category-section .list-card:first-child{padding-top:10px}
.category-section .list-card:last-child{border-bottom:0}
