/* ==========================================================
   THE HINDUSTAN WIRES — Main Stylesheet v1.0
   ========================================================== */

/* ---- VARIABLES ---- */
:root {
  --orange:       #ff9c00;
  --orange-dark:  #e68900;
  --orange-light: #fff3dc;
  --navy:         #0a0f1e;
  --dark:         #12171f;
  --gray-900:     #1a1f2e;
  --gray-700:     #374151;
  --gray-500:     #6b7280;
  --gray-400:     #9ca3af;
  --gray-300:     #d1d5db;
  --gray-200:     #e5e7eb;
  --gray-100:     #f3f4f6;
  --white:        #ffffff;
  --bg:           #f8f9fb;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    16px;
  --shadow:       0 2px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.16);
  --transition:   all 0.22s ease;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--gray-700); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ---- LAYOUT ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========================================================
   TICKER BAR
   ======================================================== */
.ticker-bar {
  background: var(--navy);
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  position: relative;
  z-index: 200;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
}
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: hw-ticker 40s linear infinite;
  padding: 0 24px;
}
.ticker-track span { font-size: 12px; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.ticker-track span::before { content: "● "; color: var(--orange); }
.ticker-track a { color: inherit; transition: color 0.2s; }
.ticker-track a:hover { color: var(--orange); }
@keyframes hw-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 150;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Logo */
.site-logo a { display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 50px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--navy); }

/* Custom logo fix */
.site-logo .custom-logo { max-height: 52px; width: auto; object-fit: contain; }
.footer-logo .custom-logo { max-height: 44px; width: auto; object-fit: contain; }

/* Nav */
.primary-nav .nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--orange); background: var(--orange-light); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-search-toggle {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
  background: white;
}
.btn-search-toggle:hover { border-color: var(--orange); color: var(--orange); }
.btn-subscribe {
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-subscribe:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,156,0,0.4); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* Search Bar */
.search-bar {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 14px 0;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  background: white;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--orange); }
.search-submit {
  padding: 11px 16px;
  background: var(--orange);
  color: white;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.search-submit:hover { background: var(--orange-dark); }
.search-close {
  padding: 8px 12px;
  color: var(--gray-500);
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.search-close:hover { color: var(--orange); background: var(--orange-light); }

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero-section { background: var(--navy); padding: 44px 0 48px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }

/* Main Hero */
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.hero-main-link { display: block; width: 100%; height: 100%; }
.hero-main img,
.hero-main .hero-no-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.hero-no-img { background: var(--gray-900); }
.hero-main:hover img { transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.96) 0%, rgba(10,15,30,0.35) 55%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 24px;
  pointer-events: none;
}
.hero-content a { pointer-events: all; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1.22;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-title a { color: white; transition: opacity 0.2s; }
.hero-title a:hover { opacity: 0.85; }
.hero-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-author { display: flex; align-items: center; gap: 8px; }
.hero-author span { font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 500; }
.hero-date { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Side Hero */
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.hero-side-card:hover { background: rgba(255,255,255,0.09); border-color: var(--orange); transform: translateX(3px); }
.hero-side-card img,
.hero-side-no-img {
  width: 100px; height: 88px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-side-no-img { background: var(--gray-900); }
.hero-side-content { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.hero-side-cat { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.hero-side-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================
   STATS BAR
   ======================================================== */
.stats-bar { background: var(--orange); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,0.22);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-serif); font-size: 36px; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.82); margin-top: 4px; }

/* ========================================================
   MAIN CONTENT LAYOUT
   ======================================================== */
.main-content, .archive-main, .single-main, .blog-main, .page-main, .search-main { padding: 52px 0 64px; }
.content-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.content-primary { min-width: 0; }

/* ========================================================
   SECTION HEADER
   ======================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title-wrap { display: flex; align-items: center; gap: 12px; }
.section-bar { width: 4px; height: 28px; background: linear-gradient(to bottom, var(--orange), var(--orange-dark)); border-radius: 2px; flex-shrink: 0; }
.section-title { font-family: var(--font-serif); font-size: 24px; font-weight: 800; color: var(--navy); }
.section-title--light { color: white; }
.section-more { font-size: 13px; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; white-space: nowrap; }
.section-more:hover { gap: 8px; }

/* ========================================================
   ARTICLE CARDS
   ======================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

/* Base Card */
.hw-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.hw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; flex-shrink: 0; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hw-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-cat-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--orange); color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  transition: background 0.2s;
}
.card-cat-badge:hover { background: var(--orange-dark); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--navy); line-height: 1.38;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.hw-card:hover .card-title a { color: var(--orange); }
.card-title a { color: inherit; }
.card-excerpt {
  font-size: 13px; color: var(--gray-500);
  line-height: 1.6; margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100); padding-top: 12px;
  margin-top: auto;
}
.card-author-info { display: flex; align-items: center; gap: 7px; }
.card-author-name { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.card-read-time { font-size: 11px; color: var(--gray-500); background: var(--gray-100); padding: 3px 9px; border-radius: 20px; }

/* Featured Card */
.hw-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.hw-card--featured .card-img-wrap { width: 45%; aspect-ratio: auto; flex-shrink: 0; }
.hw-card--featured .card-img-wrap img { height: 100%; }
.hw-card--featured .card-body { padding: 28px 30px; justify-content: center; }
.card-title--lg {
  font-size: 22px; -webkit-line-clamp: 3;
  margin-bottom: 12px;
}
.card-excerpt--lg { font-size: 14px; -webkit-line-clamp: 4; }
.card-date { font-size: 11px; color: var(--gray-400); display: block; }

/* ========================================================
   AVATAR
   ======================================================== */
.hw-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange);
  color: white; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hw-avatar--md { width: 40px; height: 40px; font-size: 14px; }
.hw-avatar--lg { width: 56px; height: 56px; font-size: 18px; }

/* ========================================================
   LOAD MORE
   ======================================================== */
.load-more-wrap { text-align: center; padding: 8px 0 48px; }
.btn-load-more {
  padding: 13px 40px;
  background: white;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-load-more:hover { background: var(--orange); color: white; transform: translateY(-2px); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ========================================================
   LATEST GRID (6-article strip)
   ======================================================== */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.latest-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 12px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.latest-card:hover { background: var(--gray-100); }
.latest-card img {
  width: 76px; height: 76px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.latest-cat { font-size: 10px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; display: block; }
.latest-title {
  font-size: 13px; font-weight: 600; color: var(--navy);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.latest-card:hover .latest-title { color: var(--orange); }
.latest-date { font-size: 11px; color: var(--gray-400); margin-top: 5px; display: block; }

/* ========================================================
   SIDEBAR
   ======================================================== */
.sidebar { position: sticky; top: 82px; align-self: start; }
.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 6px;
}

/* Most Read */
.most-read-list { display: flex; flex-direction: column; }
.most-read-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}
.most-read-item:last-child { border-bottom: none; padding-bottom: 0; }
.most-read-num {
  font-family: var(--font-serif); font-size: 28px; font-weight: 800;
  color: var(--gray-300); line-height: 1; min-width: 34px;
  transition: color 0.2s;
}
.most-read-item:hover .most-read-num { color: var(--orange); }
.most-read-cat { font-size: 10px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; display: block; }
.most-read-title {
  font-size: 13px; font-weight: 600; color: var(--navy);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.most-read-item:hover .most-read-title a { color: var(--orange); }
.most-read-title a { color: inherit; }

/* Newsletter Widget */
.widget-newsletter { background: linear-gradient(135deg, var(--navy) 0%, #1a2540 100%); border-color: transparent; }
.newsletter-box { text-align: center; }
.nl-icon { font-size: 28px; margin-bottom: 12px; }
.nl-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: white; margin-bottom: 8px; }
.nl-desc { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; line-height: 1.55; }
.nl-input {
  width: 100%; padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white; font-size: 13px;
  margin-bottom: 10px; outline: none;
}
.nl-input::placeholder { color: rgba(255,255,255,0.35); }
.nl-input:focus { border-color: var(--orange); }
.nl-btn {
  width: 100%; padding: 12px;
  background: var(--orange); color: white;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.nl-btn:hover { background: var(--orange-dark); }

/* Recent Posts */
.sidebar-recent-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-recent-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
}
.sidebar-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent-img { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sidebar-recent-img img { width: 68px; height: 68px; object-fit: cover; }
.sidebar-recent-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.sidebar-recent-title a { color: inherit; }
.sidebar-recent-item:hover .sidebar-recent-title a { color: var(--orange); }
.sidebar-recent-date { font-size: 11px; color: var(--gray-400); margin-top: 4px; display: block; }

/* Tags Cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tag {
  font-size: 12px; font-weight: 500; color: var(--gray-700);
  background: var(--gray-100); padding: 5px 11px;
  border-radius: 20px; cursor: pointer; transition: var(--transition);
  border: 1px solid transparent;
}
.topic-tag:hover { background: var(--orange-light); color: var(--orange); border-color: var(--orange); }
.topic-tag sup { font-size: 9px; color: var(--gray-400); }

/* ========================================================
   CATEGORY SHOWCASE
   ======================================================== */
.cat-showcase { background: var(--navy); padding: 52px 0 60px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  border-radius: var(--radius); overflow: hidden;
  position: relative; aspect-ratio: 4/3; cursor: pointer;
}
.cat-card img,
.cat-card-no-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.cat-card-no-img { background: var(--gray-900); }
.cat-card:hover img { transform: scale(1.08); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.9) 0%, rgba(10,15,30,0.2) 100%);
  transition: all 0.3s;
}
.cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(255,156,0,0.88) 0%, rgba(255,156,0,0.1) 100%); }
.cat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.cat-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: white; display: block; }
.cat-count { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; display: block; }

/* ========================================================
   NEWSLETTER SECTION (Footer CTA)
   ======================================================== */
.newsletter-section { background: var(--orange); padding: 48px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-copy h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 800; color: white; margin-bottom: 6px; }
.newsletter-copy p { font-size: 14px; color: rgba(255,255,255,0.8); }
.newsletter-form { flex-shrink: 0; }
.newsletter-fields { display: flex; gap: 10px; margin-bottom: 8px; }
.nl-input { padding: 12px 16px; border-radius: var(--radius-sm); border: none; font-size: 14px; min-width: 280px; outline: none; }
.nl-btn-main {
  padding: 12px 24px; background: var(--navy);
  color: white; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.nl-btn-main:hover { background: #1a2540; }
.nl-note { font-size: 11px; color: rgba(255,255,255,0.7); text-align: right; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer { background: var(--dark); }
.footer-top { padding: 60px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-tagline { font-size: 12px; color: var(--orange); font-weight: 600; letter-spacing: 0.5px; margin: 8px 0 12px; text-transform: uppercase; }
.footer-about { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 10px; }
.social-links { display: flex; gap: 10px; list-style: none; }
.social-links a,
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.social-links a:hover,
.footer-socials a:hover { background: var(--orange); color: white; border-color: var(--orange); transform: translateY(-2px); }
.footer-col-title { font-size: 12px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a,
.footer-links li a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover,
.footer-links li a:hover { color: var(--orange); }
.footer-recent { display: flex; flex-direction: column; gap: 0; }
.footer-recent-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-recent-item:last-child { border-bottom: none; }
.footer-recent-img { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.footer-recent-img img { width: 52px; height: 52px; object-fit: cover; }
.footer-recent-text a { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); line-height: 1.4; display: block; transition: color 0.2s; }
.footer-recent-text a:hover { color: var(--orange); }
.footer-recent-text span { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 4px; display: block; }
.footer-logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 800; color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-copy a { color: var(--orange); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }

/* ========================================================
   SINGLE ARTICLE
   ======================================================== */
.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.single-article { min-width: 0; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); margin-bottom: 24px; }
.breadcrumb a { color: var(--orange); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.8; }

/* Article Header */
.article-header { margin-bottom: 24px; }
.article-cat-badge {
  display: inline-block;
  background: var(--orange-light); color: var(--orange);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 800;
  color: var(--navy); line-height: 1.2;
  margin-bottom: 20px;
}
.article-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author-name { font-size: 14px; font-weight: 600; color: var(--navy); display: block; }
.article-meta-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.article-date, .article-read-time, .article-views { font-size: 12px; color: var(--gray-400); }
.article-dot { color: var(--gray-300); }

/* Share Buttons */
.article-share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 12px; color: var(--gray-400); }
.share-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  transition: var(--transition);
}
.share-tw { background: #000; color: white; }
.share-tw:hover { opacity: 0.85; }
.share-li { background: #0077b5; color: white; }
.share-li:hover { opacity: 0.85; }
.share-wa { background: #25d366; color: white; }
.share-wa:hover { opacity: 0.85; }

/* Hero Image */
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.article-hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-img-caption { font-size: 12px; color: var(--gray-400); text-align: center; padding: 8px 0 16px; font-style: italic; }

/* Reading Progress */
.reading-progress {
  position: fixed; top: 68px; left: 0; right: 0; height: 3px;
  background: var(--gray-200); z-index: 149;
}
.reading-progress-bar { height: 100%; background: var(--orange); width: 0; transition: width 0.1s linear; }

/* Article Body */
.article-body { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin: 24px 0; }
.article-body h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--navy); margin: 32px 0 14px; }
.article-body h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 14px 20px;
  background: var(--orange-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0; font-style: italic; font-size: 18px;
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: var(--radius-sm); margin: 20px 0; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0; border-top: 1px solid var(--gray-200); margin-top: 24px; }
.tags-label { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.article-tag {
  font-size: 12px; color: var(--gray-700);
  background: var(--gray-100); padding: 4px 11px;
  border-radius: 20px; transition: var(--transition);
  border: 1px solid transparent;
}
.article-tag:hover { color: var(--orange); background: var(--orange-light); border-color: var(--orange); }

/* Share Footer */
.article-share-footer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 14px; color: var(--gray-500); margin-bottom: 24px;
}

/* Author Box */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--gray-100); border-radius: var(--radius);
  padding: 24px; margin-bottom: 32px;
}
.author-box-label { font-size: 10px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 3px; }
.author-box-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.author-box-bio { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* Post Nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.post-nav-item { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; transition: var(--transition); }
.post-nav-item:hover { border-color: var(--orange); }
.post-nav-label { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.post-nav-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.post-nav-item:hover .post-nav-title { color: var(--orange); }
.post-nav-next { text-align: right; }

/* Related Posts */
.related-section { background: var(--gray-100); padding: 52px 0 60px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ========================================================
   ARCHIVE HEADER
   ======================================================== */
.archive-header { background: var(--navy); padding: 44px 0 40px; margin-bottom: 0; }
.archive-type { font-size: 11px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 8px; }
.archive-title { font-family: var(--font-serif); font-size: 36px; font-weight: 800; color: white; margin-bottom: 10px; }
.archive-desc { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 10px; max-width: 600px; }
.archive-count { font-size: 13px; color: var(--orange); font-weight: 500; }
.archive-main .container { padding-top: 44px; }

/* ========================================================
   PAGINATION
   ======================================================== */
.pagination-wrap { padding: 32px 0 8px; }
.pagination-wrap .page-numbers { display: inline-flex; }
.pagination-wrap ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.pagination-wrap ul li a,
.pagination-wrap ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--gray-300); color: var(--gray-700);
  transition: var(--transition);
}
.pagination-wrap ul li a:hover { border-color: var(--orange); color: var(--orange); }
.pagination-wrap ul li .current { background: var(--orange); color: white; border-color: var(--orange); }
.pagination-wrap ul li .prev, .pagination-wrap ul li .next { width: auto; padding: 0 14px; }

/* ========================================================
   SEARCH PAGE
   ======================================================== */
.search-header { padding-bottom: 36px; border-bottom: 1px solid var(--gray-200); margin-bottom: 40px; }
.search-title { font-family: var(--font-serif); font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.search-title em { color: var(--orange); font-style: normal; }
.search-form-lg { display: flex; gap: 10px; }
.search-input-lg { flex: 1; padding: 13px 18px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 15px; outline: none; }
.search-input-lg:focus { border-color: var(--orange); }
.search-submit-lg { padding: 13px 24px; background: var(--orange); color: white; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); }
.search-submit-lg:hover { background: var(--orange-dark); }
.search-count { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

/* ========================================================
   404 PAGE
   ======================================================== */
.error-main { padding: 80px 0; }
.error-wrap { text-align: center; max-width: 540px; margin: 0 auto; }
.error-num { font-family: var(--font-serif); font-size: 120px; font-weight: 800; color: var(--gray-200); line-height: 1; }
.error-title { font-family: var(--font-serif); font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.error-desc { font-size: 15px; color: var(--gray-500); line-height: 1.65; margin-bottom: 32px; }
.error-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.btn-primary { padding: 12px 28px; background: var(--orange); color: white; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: var(--transition); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.error-search { display: flex; gap: 10px; }

/* ========================================================
   PAGE TEMPLATE
   ======================================================== */
.page-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.page-title { font-family: var(--font-serif); font-size: 34px; font-weight: 800; color: var(--navy); }
.page-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.page-content { font-size: 16px; line-height: 1.75; color: var(--gray-700); }
.page-content h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.page-content p { margin-bottom: 16px; }

/* ========================================================
   NO RESULTS
   ======================================================== */
.no-results { text-align: center; padding: 60px 20px; }
.no-results p { font-size: 16px; color: var(--gray-500); margin-bottom: 20px; }

/* ========================================================
   SCROLL TO TOP
   ======================================================== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--orange); color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,156,0,0.45);
  transition: var(--transition); z-index: 98;
}
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,156,0,0.55); }

/* ========================================================
   COMMENTS
   ======================================================== */
.comments-wrap { margin-top: 40px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--orange); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  padding: 12px 28px; background: var(--orange); color: white;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.comment-form .submit:hover { background: var(--orange-dark); }

/* ========================================================
   RESPONSIVE
   ======================================================== */

/* Tablet */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 16px; box-shadow: var(--shadow-md); }
  .primary-nav.open { display: block; }
  .primary-nav .nav-menu { flex-direction: column; align-items: flex-start; }
  .nav-link { padding: 10px 14px; width: 100%; }
  .hamburger { display: flex; }
  .btn-subscribe { display: none; }

  .articles-grid { grid-template-columns: 1fr; }
  .hw-card--featured { flex-direction: column; grid-column: span 1; }
  .hw-card--featured .card-img-wrap { width: 100%; aspect-ratio: 3/2; }

  .hero-title { font-size: 22px; }
  .hero-side { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .article-title { font-size: 26px; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }

  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-fields { flex-direction: column; }
  .nl-input { min-width: unset; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }

  .error-num { font-size: 80px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-section { padding: 28px 0 32px; }
  .article-title { font-size: 22px; }
  .archive-title { font-size: 26px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
