:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#101827;
  --muted:#6b7280;
  --accent:#ff3d57;
  --accent2:#0ea5e9;
  --border: rgba(16,24,39,.08);
  --shadow: 0 12px 30px rgba(16,24,39,.08);
  --radius: 18px;
}

body{ background:var(--bg); color:var(--text); }

.topbar{
  background: #0b1220;
  color: rgba(255,255,255,.85);
  padding: 8px 0;
}
.topbar-link{ color: rgba(255,255,255,.85); text-decoration:none; }
.topbar-link:hover{ color: #fff; }

.site-header{ background:#fff; border-bottom:1px solid var(--border); }
.header-inner{
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{ text-decoration:none; display:flex; align-items:baseline; gap:6px; }
.brand-main{ font-weight:900; letter-spacing:.08em; }
.brand-dot{ color:var(--accent); font-weight:800; }

.searchbar{ display:flex; align-items:center; gap:8px; width:min(460px, 100%); }
.searchbar-input{
  flex:1; border:1px solid var(--border); border-radius: 999px;
  padding: 10px 14px; outline:none;
}
.searchbar-btn{
  border:none; background:var(--accent); color:#fff;
  width:42px; height:42px; border-radius:999px;
}

.navcat{ background:#fff; border-top:1px solid var(--border); }
.navcat-inner{ display:flex; gap:14px; overflow:auto; padding: 10px 0; }
.navcat-link{
  text-decoration:none; color: #111827; font-weight:600;
  padding: 8px 10px; border-radius:999px; white-space:nowrap;
}
.navcat-link:hover{ background: rgba(255,61,87,.10); color: var(--accent); }

.section-title{ display:flex; align-items:end; justify-content:space-between; margin: 6px 0 12px; }
.section-title h3{ margin:0; font-weight:800; letter-spacing:.02em; }

/* Hero carousel */
.carousel-shell{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.carousel-track{ display:flex; transition: transform .35s ease; }
.carousel-prev,.carousel-next{
  position:absolute; top:50%; transform: translateY(-50%);
  border:none; width:44px; height:44px; border-radius:999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.carousel-prev{ left: 12px; }
.carousel-next{ right: 12px; }

.hero-item{ min-width: 100%; display:block; position:relative; }
.hero-item img{ width:100%; height: 420px; object-fit:cover; display:block; }
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(11,18,32,.86) 0%, rgba(11,18,32,.10) 60%, rgba(11,18,32,0) 100%);
  padding: 22px;
  display:flex; flex-direction:column; justify-content:end;
  color:#fff;
}
.hero-cat{
  display:inline-flex; align-self:flex-start;
  background: rgba(255,61,87,.95);
  padding: 6px 10px; border-radius:999px;
  font-weight:700; font-size:.85rem;
}
.hero-title{ margin: 10px 0 6px; font-weight:900; letter-spacing:.01em; }
.hero-meta{ color: rgba(255,255,255,.82); font-size:.9rem; }

/* Cards */
.news-card{
  display:block;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(16,24,39,.06);
  text-decoration:none;
  color: inherit;
  height:100%;
}
.news-thumb{ position:relative; }
.news-thumb img{ width:100%; height: 190px; object-fit:cover; display:block; }
.news-badge{
  position:absolute; left:12px; bottom:12px;
  background: rgba(14,165,233,.95);
  color:#fff; padding: 6px 10px; border-radius:999px;
  font-weight:700; font-size:.82rem;
}
.news-body{ padding: 14px 14px 16px; }
.news-title{ margin: 0 0 8px; font-weight:800; font-size: 1.02rem; line-height:1.25; }
.news-excerpt{ margin: 0 0 10px; color: var(--muted); font-size:.95rem; }
.news-meta{ color: var(--muted); font-size:.85rem; }

/* Post */
.post{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.post-cat{
  display:inline-flex;
  background: rgba(255,61,87,.10);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:800;
}
.post-title{ margin: 12px 0 6px; font-weight: 900; letter-spacing:.01em; }
.post-meta{ color: var(--muted); font-size:.9rem; margin-bottom: 12px; }
.post-hero{
  width:100%; height: 420px; object-fit:cover;
  border-radius: 14px;
  margin: 10px 0 14px;
}
.post-content p{ line-height: 1.8; font-size: 1.04rem; color: #111827; }

/* Widgets */
.widget{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16,24,39,.06);
  padding: 14px;
}
.widget-title{ font-weight:900; margin-bottom:10px; }
.mini-item{
  display:flex; gap:10px;
  padding:10px; border-radius: 14px;
  text-decoration:none; color:inherit;
}
.mini-item:hover{ background: rgba(16,24,39,.04); }
.mini-item img{
  width: 78px; height: 58px; border-radius: 12px; object-fit:cover;
}
.mini-title{ font-weight:800; font-size:.95rem; line-height:1.2; }
.mini-meta{ color: var(--muted); font-size:.82rem; }

/* Ads */
.ad{
  background: #fff;
  border: 1px dashed rgba(16,24,39,.20);
  border-radius: var(--radius);
  padding: 10px;
  text-align:center;
}
.ad-sticky{
  position: sticky;
  top: 16px;
}

.site-footer{
  margin-top: 40px;
  background:#0b1220;
  color: rgba(255,255,255,.85);
  padding: 22px 0;
}
.footer-inner{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.footer-brand{ font-weight:900; letter-spacing:.08em; }
.footer-links a{ color: rgba(255,255,255,.80); text-decoration:none; margin-left: 12px; }
.footer-links a:hover{ color:#fff; }

@media (max-width: 992px){
  .hero-item img{ height: 320px; }
  .post-hero{ height: 320px; }
  .header-inner{ flex-direction:column; align-items:stretch; }
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.cookie-banner button {
  margin-left: 10px;
  padding: 8px 16px;
  background-color: #ff3d57;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.cookie-banner button:hover {
  background-color: #e32b45;
}
