/*
Theme Name: TheNews International
Theme URI: https://yoursite.com
Author: Your Name
Description: A news theme inspired by The News International (thenews.com.pk)
Version: 1.0
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-black:   #111111;
  --color-red:     #d0021b;
  --color-white:   #ffffff;
  --color-gray-bg: #f4f4f4;
  --color-gray-mid:#888888;
  --color-border:  #e0e0e0;
  --color-text:    #222222;
  --font-display:  'Georgia', 'Times New Roman', serif;
  --font-body:     'Arial', 'Helvetica Neue', sans-serif;
  --container:     1200px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--color-red); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--color-black);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--color-white); }

/* ========== HEADER ========== */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-black);
  padding: 14px 0 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.site-logo img { height: 48px; width: auto; }
.site-logo span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.5px;
}
.header-ad { display: flex; align-items: center; }

/* ========== MAIN NAV ========== */
.main-nav {
  background: var(--color-black);
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav ul li a {
  display: block;
  padding: 11px 16px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.15s;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  background: var(--color-red);
  color: var(--color-white);
}

/* ========== TICKER ========== */
.ticker-bar {
  background: var(--color-gray-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 7px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-label {
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  white-space: nowrap;
  border-radius: 2px;
}
.ticker-text {
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-text a:not(:last-child)::after { content: ' · '; color: var(--color-gray-mid); }

/* ========== SECTION HEADING ========== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-black);
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-heading .view-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-red);
  font-weight: 600;
  text-transform: uppercase;
}

/* ========== HERO SECTION ========== */
.hero-section { padding: 22px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  margin-bottom: 6px;
}

.hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
}
.hero-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-main .hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  padding: 48px 20px 20px;
}
.hero-main .hero-caption h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.hero-main .hero-caption h1 a { color: #fff; }
.hero-main .hero-caption h1 a:hover { color: #ffd0d0; }

.hero-side-item {
  position: relative;
  overflow: hidden;
}
.hero-side-item img {
  width: 100%;
  height: 206px;
  object-fit: cover;
}
.hero-side-item .side-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 30px 12px 12px;
}
.hero-side-item .side-caption h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.hero-side-item .side-caption h2 a { color: #fff; }
.hero-side-item .side-caption h2 a:hover { color: #ffd0d0; }

/* ========== TICKER STRIP (below hero) ========== */
.headline-strip {
  background: var(--color-black);
  padding: 0;
  margin-bottom: 22px;
}
.headline-strip ul {
  display: flex;
  flex-wrap: wrap;
  border-left: 4px solid var(--color-red);
}
.headline-strip ul li {
  border-right: 1px solid #333;
}
.headline-strip ul li a {
  display: block;
  padding: 9px 14px;
  color: #ddd;
  font-size: 12.5px;
  line-height: 1.4;
  transition: color 0.15s;
}
.headline-strip ul li a:hover { color: #fff; }

/* ========== CATEGORY SECTIONS ========== */
.category-sections { padding: 10px 0 30px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.news-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.news-grid-2 {
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Card */
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card .card-thumb {
  overflow: hidden;
}
.news-card .card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .card-thumb img { transform: scale(1.03); }
.news-card .card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
}
.news-card h3 a:hover { color: var(--color-red); }
.news-card .card-meta {
  font-size: 11.5px;
  color: var(--color-gray-mid);
}
.news-card .card-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured + list combo */
.news-featured-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.featured-card-large .card-thumb img { height: 260px; }
.featured-card-large h3 { font-size: 20px; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item .list-thumb img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
}
.list-item .list-content h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-black);
}
.list-item .list-content h4 a:hover { color: var(--color-red); }
.list-item .list-content .list-meta { font-size: 11px; color: var(--color-gray-mid); margin-top: 4px; }

/* ========== SIDEBAR ========== */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  padding: 20px 0 30px;
}
.sidebar { }
.sidebar-widget {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-black);
  border-left: 4px solid var(--color-red);
  padding-left: 10px;
  margin-bottom: 14px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-black);
  color: #bbb;
  padding: 36px 0 18px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-red);
  padding-bottom: 8px;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: #bbb; font-size: 13px; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #777;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: #aaa;
  font-size: 12.5px;
  font-weight: 600;
}
.footer-social a:hover { color: #fff; }

/* ========== BLOG / ARCHIVE PAGE ========== */
.page-banner {
  background: var(--color-black);
  padding: 22px 0;
  margin-bottom: 28px;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-banner h1 span {
  background: var(--color-red);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.blog-card { border-bottom: 1px solid var(--color-border); padding-bottom: 22px; }
.blog-card .card-thumb img { height: 200px; object-fit: cover; width: 100%; }
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 6px;
}
.blog-card h2 a:hover { color: var(--color-red); }
.blog-card .card-meta { font-size: 12px; color: var(--color-gray-mid); margin-bottom: 8px; }
.blog-card .card-cat { font-size: 11px; font-weight: 700; color: var(--color-red); text-transform: uppercase; margin-bottom: 4px; }
.blog-card p { font-size: 13.5px; color: #555; line-height: 1.55; }
.blog-card .read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0 32px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text);
  border-radius: 2px;
  transition: all 0.15s;
}
.pagination .page-numbers:hover,
.pagination .current {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-side-item img { height: 160px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .header-inner { flex-direction: column; gap: 10px; }
  .main-nav ul { overflow-x: auto; flex-wrap: nowrap; }
  .main-nav ul li a { padding: 10px 12px; font-size: 12px; }
  .hero-main img { height: 240px; }
  .hero-main .hero-caption h1 { font-size: 18px; }
  .news-grid, .news-grid-3, .news-featured-list, .blog-grid { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .headline-strip ul { flex-direction: column; }
}
