/*
Theme Name: Times News
Theme URI: https://example.com/times-news
Author: Times News Theme
Author URI: https://example.com
Description: A professional news theme inspired by Times of India. Features breaking news ticker, featured posts grid on homepage, dynamic header, footer, and contact page.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: times-news
Tags: news, blog, magazine, responsive, custom-menu, featured-images, post-formats
*/

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

:root {
  --red: #c0392b;
  --red-dark: #96281b;
  --red-light: #e74c3c;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-dark: #333333;
  --gray: #555555;
  --gray-mid: #888888;
  --gray-light: #cccccc;
  --gray-pale: #f0f0f0;
  --white: #ffffff;
  --off-white: #fafafa;
  --gold: #d4a017;
  --blue: #1a5276;
  --border: #e0e0e0;
  --font-head: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Roboto', Arial, sans-serif;
  --shadow: 0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--black);
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

/* =============================================
   TOP BAR (Date + Social + Edition)
   ============================================= */
#top-bar {
  background: var(--black);
  color: var(--gray-light);
  font-family: var(--font-ui);
  font-size: .78rem;
  padding: 5px 0;
}
#top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-date { color: var(--gray-light); }
.edition-links a {
  color: var(--gray-light);
  margin-right: 10px;
  font-size: .75rem;
  transition: color .2s;
}
.edition-links a:hover { color: var(--red-light); }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar-right a {
  color: var(--gray-light);
  font-size: .78rem;
  transition: color .2s;
}
.top-bar-right a:hover { color: var(--white); }

/* =============================================
   SITE HEADER
   ============================================= */
#site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.site-branding { display: flex; flex-direction: column; }
.site-title a {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.site-title a:hover { color: var(--red-dark); }
.site-tagline {
  font-family: var(--font-ui);
  font-size: .72rem;
  color: var(--gray-mid);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-ad-slot {
  background: var(--gray-pale);
  border: 1px solid var(--border);
  min-width: 300px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-family: var(--font-ui);
  font-size: .75rem;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--gray);
  transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.header-search-btn:hover { border-color: var(--red); color: var(--red); }
.header-subscribe-btn {
  background: var(--red);
  color: var(--white) !important;
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
}
.header-subscribe-btn:hover { background: var(--red-dark); }

/* =============================================
   MAIN NAVIGATION
   ============================================= */
#main-navigation {
  background: var(--red);
  position: relative;
}
#main-navigation .container { position: relative; }
.nav-menu {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 11px 16px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: background .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  background: rgba(0,0,0,.25);
}
/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--red);
  z-index: 999;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--dark);
  font-family: var(--font-ui);
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.nav-menu .sub-menu li a:hover { background: var(--red); color: var(--white); }
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
#breaking-news {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
}
.breaking-label {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-content {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-content a {
  display: inline-block;
  padding: 0 40px;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--dark);
  transition: color .2s;
}
.ticker-content a:hover { color: var(--red); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-content { padding: 20px 0 40px; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}
.section-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.section-more {
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}
.section-more:hover { color: var(--red-dark); }

/* =============================================
   FEATURED / HERO GRID
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 30px;
}
.featured-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.featured-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .4s ease;
}
.featured-main:hover img { transform: scale(1.03); }
.featured-main .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  padding: 24px 20px 20px;
}
.featured-main .overlay .category {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
}
.featured-main .overlay h2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.28;
  margin-bottom: 8px;
}
.featured-main .overlay h2 a { color: var(--white); }
.featured-main .overlay h2 a:hover { color: var(--gray-light); }
.featured-main .overlay .meta {
  color: var(--gray-light);
  font-family: var(--font-ui);
  font-size: .75rem;
}

.featured-side { display: flex; flex-direction: column; gap: 14px; }
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  gap: 0;
  flex-direction: column;
  transition: box-shadow .2s;
}
.side-card:hover { box-shadow: var(--shadow-md); }
.side-card img { width: 100%; height: 140px; object-fit: cover; }
.side-card-body { padding: 12px 14px; }
.side-card-body .category {
  color: var(--red);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.side-card-body h3 { font-size: .95rem; line-height: 1.35; margin-bottom: 6px; }
.side-card-body h3 a:hover { color: var(--red); }
.side-card-body .meta {
  color: var(--gray-mid);
  font-family: var(--font-ui);
  font-size: .72rem;
}

/* =============================================
   NEWS GRID (3-column)
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-img { overflow: hidden; }
.news-card-img img { width: 100%; height: 185px; object-fit: cover; transition: transform .35s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-body .category {
  color: var(--red);
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 7px;
}
.news-card-body h3 { font-size: 1.0rem; line-height: 1.38; margin-bottom: 8px; }
.news-card-body h3 a:hover { color: var(--red); }
.news-card-body p { color: var(--gray); font-size: .85rem; line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-mid);
  font-family: var(--font-ui);
  font-size: .72rem;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.meta-author { font-weight: 600; color: var(--gray); }

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-bottom: 30px;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sidebar-widget-title {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
}
.sidebar-widget-body { padding: 14px; }

/* Popular posts widget */
.popular-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.popular-post-item:last-child { border-bottom: none; }
.popular-post-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  min-width: 28px;
}
.popular-post-item h4 { font-size: .85rem; line-height: 1.35; }
.popular-post-item h4 a:hover { color: var(--red); }
.popular-post-item .meta { color: var(--gray-mid); font-family: var(--font-ui); font-size: .7rem; margin-top: 3px; }

/* =============================================
   TRENDING TOPICS BAR
   ============================================= */
.trending-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.trending-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-right: 6px;
  white-space: nowrap;
}
.trending-tag {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--gray);
  background: var(--gray-pale);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all .2s;
}
.trending-tag:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* =============================================
   LIST-STYLE NEWS (Latest News)
   ============================================= */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-img { flex-shrink: 0; width: 110px; height: 80px; overflow: hidden; border-radius: 2px; }
.news-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-list-item:hover .news-list-img img { transform: scale(1.05); }
.news-list-body { flex: 1; }
.news-list-body .category { color: var(--red); font-family: var(--font-ui); font-size: .68rem; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.news-list-body h4 { font-size: .92rem; line-height: 1.35; margin-bottom: 5px; }
.news-list-body h4 a:hover { color: var(--red); }
.news-list-body .meta { color: var(--gray-mid); font-family: var(--font-ui); font-size: .7rem; }

/* =============================================
   SINGLE POST / BLOG PAGE
   ============================================= */
.single-post-wrap { max-width: 820px; }
.post-header { margin-bottom: 24px; }
.post-header .category-tag {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 12px;
}
.post-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.28; margin-bottom: 14px; }
.post-header .post-meta {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-ui);
  font-size: .78rem;
  color: var(--gray-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  flex-wrap: wrap;
}
.post-meta-author { font-weight: 700; color: var(--dark); }
.post-featured-image { margin-bottom: 24px; }
.post-featured-image img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 2px; }
.post-featured-image .caption {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--gray-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.post-content { font-size: 1.05rem; line-height: 1.75; color: var(--dark); }
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-size: 1.5rem; margin: 30px 0 14px; }
.post-content h3 { font-size: 1.25rem; margin: 24px 0 12px; }
.post-content blockquote {
  border-left: 4px solid var(--red);
  margin: 24px 0;
  padding: 14px 22px;
  background: var(--gray-pale);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gray-dark);
}
.post-content img { margin: 20px 0; border-radius: 2px; }
.post-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  background: var(--gray-pale);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: .75rem;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--gray);
  transition: all .2s;
}
.post-tag:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--dark);
  border-radius: 2px;
  transition: all .2s;
}
.pagination a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--black) 60%);
  opacity: .6;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.contact-hero p { color: var(--gray-light); font-size: 1.05rem; max-width: 600px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-bottom: 50px;
}
.contact-form-section h2 { font-size: 1.4rem; margin-bottom: 24px; color: var(--black); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
textarea.form-control { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 32px;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }

.contact-info-section { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 22px;
}
.contact-info-card h3 {
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--red);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.contact-info-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.5;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.contact-info-item strong { display: block; color: var(--dark); font-size: .82rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .3px; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--black);
  color: var(--gray-light);
  margin-top: 40px;
}
.footer-top {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 40px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .site-title-foot {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red-light);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { font-family: var(--font-ui); font-size: .82rem; color: var(--gray-mid); line-height: 1.65; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
  font-size: .82rem;
  transition: background .2s, color .2s;
  font-family: var(--font-ui);
  font-weight: 700;
}
.social-link:hover { background: var(--red); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--gray-mid);
  transition: color .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--red); font-size: 1rem; }
.footer-links a:hover { color: var(--white); }

.footer-newsletter h4 { /* same as footer-col h4 above */ }
.footer-newsletter p { font-family: var(--font-ui); font-size: .8rem; color: var(--gray-mid); margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: .82rem;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--gray-mid); }
.newsletter-form input:focus { border-color: var(--red); }
.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 14px;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--red-dark); }

.footer-mid {
  background: var(--black);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-mid .container { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-mid a {
  font-family: var(--font-ui);
  font-size: .75rem;
  color: var(--gray-mid);
  transition: color .2s;
}
.footer-mid a:hover { color: var(--white); }
.footer-mid span { color: rgba(255,255,255,.15); }

.footer-bottom {
  background: var(--black);
  padding: 14px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copyright { font-family: var(--font-ui); font-size: .76rem; color: var(--gray-mid); }
.footer-copy-links { display: flex; gap: 14px; }
.footer-copy-links a { font-family: var(--font-ui); font-size: .76rem; color: var(--gray-mid); transition: color .2s; }
.footer-copy-links a:hover { color: var(--white); }

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: flex-start;
  padding-top: 120px;
  justify-content: center;
}
.search-overlay.active { display: flex; }
.search-overlay-inner { width: 100%; max-width: 700px; padding: 0 20px; }
.search-overlay input {
  width: 100%;
  padding: 18px 22px;
  font-size: 1.4rem;
  font-family: var(--font-head);
  border: none;
  border-bottom: 3px solid var(--red);
  background: transparent;
  color: var(--white);
  outline: none;
}
.search-overlay input::placeholder { color: rgba(255,255,255,.35); }
.search-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main img { height: 340px; }
  .featured-side { flex-direction: row; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .featured-side { flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .header-ad-slot { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--red-dark); }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-menu .sub-menu { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,.25); }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
