/*
Theme Name: NewzTodays Portal V2 (Kadence Child)
Theme URI: https://newztodays.com/
Description: Kadence child theme with a Pakistan news-portal homepage layout (hero + latest grid + dark tech block + multi-section rows) and image thumbnails throughout, plus custom single/page/archive styling.
Author: Zafar Bhutta
Template: kadence
Version: 1.0.1
Text Domain: newztodays-portal-v2
*/

/* ========= Tokens ========= */
:root{
  --nt-bg:#ffffff;
  --nt-surface:#ffffff;
  --nt-text:#0B1220;
  --nt-muted:#5B6475;
  --nt-border:#E6E8EE;
  --nt-primary:#0A66FF;
  --nt-dark:#0B1220;
  --nt-dark-2:#0F1A2E;
  --nt-radius:14px;
  --nt-max:1200px;
}

/* ========= Base ========= */
body{ background:var(--nt-bg); color:var(--nt-text); }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.nt-container{ max-width:var(--nt-max); margin:0 auto; padding:16px 14px 56px; }
.nt-rule{ border-top:1px solid var(--nt-border); margin:18px 0; }

/* ========= Blocks ========= */
.nt-card{
  background:var(--nt-surface);
  border:1px solid var(--nt-border);
  border-radius:var(--nt-radius);
  overflow:hidden;
}
.nt-card:hover{ box-shadow:0 10px 24px rgba(11,18,32,.08); }

.nt-section-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  margin: 22px 0 12px;
}
.nt-section-title{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:14px;
  padding-left:10px;
  border-left:3px solid var(--nt-primary);
}
.nt-more a{
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--nt-primary);
}

/* ========= Hero (ProPakistani-style overlay) ========= */
.nt-hero{
  display:grid;
  grid-template-columns: 1.55fr 1fr;
  gap:12px;
}
.nt-hero-right{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* ProPakistani-like: flatter tiles, tighter radius, clean edges */
.nt-hero .nt-card{
  border:0;
  border-radius:10px;
  box-shadow:none;
}
.nt-hero .nt-card:hover{ box-shadow:none; }

.nt-hero-tile{
  position:relative;
  overflow:hidden;
  display:block;
  aspect-ratio: 4/3;
}
.nt-hero-big{ aspect-ratio: 16/9; }

.nt-hero-img{
  position:absolute;
  inset:0;
  display:block;
  background:#cfd6e3;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition:transform .35s ease;
}
.nt-hero-tile:hover .nt-hero-img{ transform:scale(1.03); }

/* Dark overlay like ProPakistani */
.nt-hero-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.88) 100%);
}

.nt-hero-body{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:14px 14px 14px;
  background:transparent;
  z-index:2;
}

/* Category tag: simple text (no pill) */
.nt-kicker{
  display:inline-block;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:0;
  border-radius:0;
  background:transparent;
  color:rgba(255,255,255,.92);
  margin-bottom:8px;
}

.nt-hero-title{
  margin:0;
  font-weight:950;
  line-height:1.15;
  font-size:30px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.nt-hero-small-title{
  margin:0;
  font-weight:950;
  line-height:1.18;
  font-size:15px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.nt-hero-title a,
.nt-hero-small-title a{ color:#fff; text-decoration:none; }
.nt-hero-title a:hover,
.nt-hero-small-title a:hover{ text-decoration:underline; }

/* ProPakistani hero usually doesn't show dates in tiles */
.nt-hero .nt-meta{ display:none; }

/* ========= Latest (with thumbnails like portal) ========= */
.nt-latest-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.nt-latest-item{ padding:12px; }
.nt-latest-row{ display:flex; gap:10px; align-items:flex-start; }
.nt-thumb{
  width:78px; height:56px;
  flex:0 0 auto;
  background:#cfd6e3;
  background-size:cover; background-position:center;
  border-radius:10px;
}
.nt-latest-title{
  font-weight:900;
  font-size:13px;
  line-height:1.25;
  margin:0 0 8px 0;
}
.nt-latest-meta{ font-size:11px; color:var(--nt-muted); }

/* ========= Ad Slot ========= */
.nt-ad{
  border:1px solid var(--nt-border);
  border-radius:var(--nt-radius);
  background:#fbfcff;
  display:flex; align-items:center; justify-content:center;
  min-height:120px;
  color:var(--nt-muted);
  font-weight:800;
  letter-spacing:.04em;
}

/* ========= Dark Tech/Telecom section ========= */
.nt-dark-block{
  background: linear-gradient(180deg, var(--nt-dark), var(--nt-dark-2));
  border-radius: var(--nt-radius);
  padding:18px;
  color:#fff;
}
.nt-dark-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:14px;
}
.nt-dark-head .title{
  font-weight:900; text-transform:uppercase; letter-spacing:.04em; font-size:14px;
  border-left:3px solid #27D1FF; padding-left:10px;
}
.nt-dark-layout{
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap:18px;
}
.nt-dark-feature{
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
}
.nt-dark-feature .img{
  width:100%;
  aspect-ratio: 16/9;
  background:#2a3552;
  background-size:cover; background-position:center;
}
.nt-dark-feature .cap{ padding:12px; font-weight:900; line-height:1.25; }
.nt-dark-list .item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.14);
}
.nt-dark-list .item:first-child{ border-top:0; padding-top:0; }
.nt-dark-list .t{ font-weight:800; font-size:13px; line-height:1.3; }
.nt-dark-thumb{
  width:56px; height:44px;
  background:#2a3552;
  background-size:cover; background-position:center;
  border-radius:10px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.10);
}

/* ========= Multi section rows (with thumbs) ========= */
.nt-row-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.nt-col{ padding:14px; }
.nt-col .k{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  /* Bigger + responsive section headings (requested) */
  font-size: clamp(14px, 3.6vw, 18px);
  margin:0 0 12px;
}
.nt-col .k span{ border-bottom:2px solid var(--nt-primary); padding-bottom:6px; }
.nt-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 0;
  border-top:1px solid var(--nt-border);
}
.nt-item:first-of-type{ border-top:0; padding-top:0; }
.nt-item .txt{ min-width:0; }
.nt-item .t{ font-weight:900; font-size:13px; line-height:1.25; margin:0 0 6px; }
.nt-item .m{ font-size:11px; color:var(--nt-muted); }
.nt-item-thumb{
  width:56px; height:44px;
  background:#cfd6e3;
  background-size:cover; background-position:center;
  border-radius:10px;
  flex:0 0 auto;
}

/* ========= Single/Page ========= */
.nt-article-wrap{ max-width: var(--nt-max); margin:0 auto; padding: 18px 14px 56px; }
.nt-article-grid{ display:grid; grid-template-columns: minmax(0,760px) minmax(0,340px); gap:24px; align-items:start; }
.nt-article-header{ border-bottom:1px solid var(--nt-border); padding-bottom:14px; margin-bottom:16px; }
.nt-article-kicker{
  display:inline-block;
  font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase;
  color:var(--nt-primary);
  margin-bottom:10px;
}
.nt-article-title{ font-size:34px; line-height:1.1; margin:0 0 10px 0; font-weight:900; }
.nt-article-meta{ font-size:12px; color:var(--nt-muted); display:flex; gap:10px; flex-wrap:wrap; }
.nt-entry{ font-size:18px; line-height:1.75; }
.nt-entry p{ margin:0 0 1.1em; }
.nt-entry h2, .nt-entry h3{ margin:1.2em 0 .6em; line-height:1.2; }
.nt-entry blockquote{ margin:1.2em 0; padding:12px 14px; border-left:4px solid var(--nt-primary); background:#f4f8ff; }
.nt-featured img{ width:100%; height:auto; display:block; border-radius:12px; border:1px solid var(--nt-border); margin:0 0 18px; }
.nt-aside-card{ border:1px solid var(--nt-border); border-radius:var(--nt-radius); padding:16px; background:#fff; margin-bottom:16px; }
.nt-aside-card h3{ margin:0 0 12px; font-size:14px; font-weight:900; text-transform:uppercase; letter-spacing:.04em; }
.nt-list a{ display:block; font-weight:900; font-size:13px; line-height:1.3; margin-bottom:10px; }
.nt-muted{ color:var(--nt-muted); font-size:13px; line-height:1.5; }

/* ========= Archive/Search ========= */
.nt-archive-head{ max-width:var(--nt-max); margin:0 auto; padding:18px 14px 10px; border-bottom:2px solid var(--nt-text); }
.nt-archive-head h1{ margin:0 0 10px; font-size:28px; font-weight:900; }
.nt-archive-wrap{ max-width:var(--nt-max); margin:0 auto; padding: 16px 14px 56px; }
.nt-archive-item{
  display:grid; grid-template-columns: 1fr 240px; gap:16px;
  padding:16px 0; border-bottom:1px solid var(--nt-border);
}
.nt-archive-item h2{ margin:0 0 8px; font-size:20px; font-weight:900; line-height:1.15; }
.nt-archive-excerpt{ color:var(--nt-muted); font-size:14px; line-height:1.6; margin:0 0 8px; }
.nt-archive-thumb img{ width:100%; height:auto; display:block; border-radius:12px; border:1px solid var(--nt-border); }
.nt-archive-meta{ font-size:12px; color:var(--nt-muted); }

/* ========= Responsive ========= */
@media (max-width: 1024px){
  .nt-article-grid{ grid-template-columns: 1fr; }
  .nt-archive-item{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .nt-hero{ grid-template-columns: 1fr; }
  .nt-hero-right{ grid-template-columns: 1fr 1fr; }
  .nt-latest-grid{ grid-template-columns: repeat(2, 1fr); }
  .nt-row-3{ grid-template-columns: 1fr; }
  .nt-dark-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  /* Mobile hero like ProPakistani: 1 big story on top, then 2-up grid */
  .nt-hero{ gap:12px; }
  .nt-hero-right{ grid-template-columns: 1fr 1fr; gap:12px; }
  .nt-hero-big{ aspect-ratio: 16/10; }
  .nt-hero-right .nt-hero-tile{ aspect-ratio: 1/1; }
  .nt-hero-body{ padding:12px 12px 12px; }
  .nt-hero-title{ font-size: clamp(22px, 6.2vw, 30px); }
  .nt-hero-small-title{ font-size: clamp(13px, 3.6vw, 16px); }
  .nt-latest-grid{ grid-template-columns: 1fr; }
}

/* Very small screens: allow hero right tiles to stack if needed */
@media (max-width: 360px){
  .nt-hero-right{ grid-template-columns: 1fr; }
}
