/*
Theme Name: News Express
Theme URI: https://example.com/news-express
Author: Michael Anderson
Author URI: https://example.com
Description: Ultra lightweight, Google Discover friendly news theme.
Version: 1.0.1
License: GPLv2 or later
Text Domain: news-express
*/

/* ================= ROOT ================= */
:root{
  --ne-primary:#18a957;
  --ne-text:#111;
  --ne-muted:#666;
  --ne-border:#e6e6e6;
  --ne-bg:#ffffff;
  --ne-footer:#1f2b36;
  --ne-radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--ne-bg);
  color:var(--ne-text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

/* ================= LAYOUT ================= */
.ne-container{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
}
.ne-main{padding:18px 0 30px}
.ne-grid{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:22px;
}
.ne-full{grid-template-columns:1fr}

/* ================= HEADER ================= */
.ne-header{
  background:#fff;
  border-bottom:1px solid var(--ne-border);
  position:sticky;
  top:0;
  z-index:99;
}
.ne-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.ne-logo{
  font-size:26px;
  font-weight:bold;
  color:var(--ne-primary);
}
.ne-nav{
  display:flex;
  gap:18px;
  font-weight:bold;
}
.ne-nav a{
  padding:6px 8px;
  border-radius:8px;
}
.ne-nav a:hover{background:#f3f3f3;text-decoration:none}

.ne-icon-btn{
  width:40px;
  height:40px;
  border:1px solid var(--ne-border);
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
}
.ne-mobile-toggle{display:none}
.ne-mobile-drawer{
  display:none;
  padding:12px 0;
}
.ne-mobile-drawer.is-open{display:block}
.ne-mobile-drawer a{
  display:block;
  padding:8px 0;
  font-weight:bold;
}

/* ================= HOMEPAGE LIST ================= */
.ne-post-list{display:flex;flex-direction:column}
.ne-item{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:18px;
  padding:18px 0;
  border-bottom:1px solid var(--ne-border);
}
.ne-thumb{
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:#eee;
}
.ne-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Category */
.ne-cat{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:bold;
  color:var(--ne-primary);
  text-transform:uppercase;
}
.ne-bolt{
  width:10px;
  height:10px;
  background:var(--ne-primary);
  clip-path:polygon(40% 0,100% 0,58% 45%,100% 45%,0 100%,40% 55%,0 55%);
}

/* TITLE SIZES (FIXED) */
.ne-title{
  font-size:20px;        /* homepage title */
  line-height:1.2;
  margin:6px 0 6px;
  font-weight:bold;
}

.ne-meta{
  font-size:14px;
  color:var(--ne-muted);
  font-weight:600;
}

/* ================= SIDEBAR ================= */
.ne-widget{
  border:1px solid var(--ne-border);
  border-radius:18px;
  padding:16px;
  margin-bottom:16px;
  background:#fff;
}
.ne-widget-title{
  display:inline-block;
  border:2px solid #111;
  border-radius:999px;
  padding:6px 14px;
  font-size:18px;     /* FIXED */
  font-weight:bold;
  margin-bottom:12px;
}

/* Follow buttons */
.ne-follow a{
  display:block;
  padding:10px 14px;
  border-radius:999px;
  color:#fff;
  font-weight:bold;
  margin-bottom:8px;
}
.ne-follow .fb{background:#1877F2}
.ne-follow .x{background:#111}
.ne-follow .ig{background:#E1306C}
.ne-follow .yt{background:#FF0000}

/* Recent posts */
.ne-mini{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:10px;
  align-items:center;
}
.ne-mini img{
  width:64px;
  height:46px;
  border-radius:10px;
  object-fit:cover;
}
.ne-mini .t{
  font-size:14px;
  font-weight:bold;
  line-height:1.2;
}
.ne-mini .d{
  font-size:13px;
  color:var(--ne-muted);
}

/* Tag cloud */
.ne-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ne-tags a{
  border:1px solid #111;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:bold;
}

/* ================= SINGLE POST ================= */
.ne-single-title{
  font-size:28px;       /* FIXED */
  font-weight:bold;
  line-height:1.15;
  margin:8px 0 10px;
}
.ne-byline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  border-top:1px solid var(--ne-border);
  border-bottom:1px solid var(--ne-border);
}
.ne-byleft{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:bold;
}
.ne-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid var(--ne-primary);
}

.ne-share a{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-weight:bold;
}
.ne-share .wa{background:#25D366;color:#fff}
.ne-share .sh{background:#111;color:#fff}

.ne-content{
  font-size:17px;
}
.ne-content img{
  max-width:100%;
  border-radius:14px;
}

/* Author box */
.ne-author-box{
  border:2px dashed var(--ne-primary);
  border-radius:18px;
  padding:18px;
  text-align:center;
  margin:24px 0;
}
.ne-author-box h3{
  font-size:28px;
  font-weight:bold;
}

/* Related posts */
.ne-related-title{
  background:var(--ne-primary);
  color:#fff;
  padding:12px;
  border-radius:12px;
  font-size:22px;
  font-weight:bold;
  text-align:center;
  margin:16px 0;
}
.ne-related-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.ne-related-card{
  border:1px solid var(--ne-border);
  border-radius:14px;
  overflow:hidden;
}
.ne-related-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.ne-related-card .pad{padding:12px}
.ne-related-card .rt{
  font-size:18px;
  font-weight:bold;
}

/* ================= FOOTER ================= */
.ne-footer{
  background:var(--ne-footer);
  color:#eaeaea;
  padding:30px 0;
}
.ne-footer-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1.2fr;
  gap:22px;
  border-bottom:1px solid rgba(255,255,255,.15);
  padding-bottom:18px;
}
.ne-footer h4{font-size:18px;font-weight:bold}
.ne-footer a{color:#fff}
.ne-footer-bottom{
  text-align:center;
  padding-top:14px;
  font-size:14px;
}

/* ================= FLOATING ================= */
.ne-float{
  position:fixed;
  right:16px;
  bottom:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:999;
}
.ne-float a{
  padding:12px 18px;
  border-radius:999px;
  font-weight:bold;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}
.ne-float .wa{background:#25D366;color:#fff}
.ne-float .latest{background:#111;color:#fff}

/* ================= RESPONSIVE ================= */
@media(max-width:980px){
  .ne-grid{grid-template-columns:1fr}
  .ne-item{grid-template-columns:1fr}
  .ne-title{font-size:18px}
  .ne-single-title{font-size:20px}
  .ne-related-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .ne-nav{display:none}
  .ne-mobile-toggle{display:inline-grid}
  .ne-footer-grid{grid-template-columns:1fr}
}
