/*
Theme Name: Update
Theme URI: http://localhost/thebizupdate
Author: Antigravity
Author URI: http://localhost/thebizupdate
Description: A high-performance, magazine-style metropolitan news theme for Update, inspired by Dawn and The Express Tribune.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thebizupdate
*/

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Barlow Condensed', 'Oswald', sans-serif;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0b1120;
  --bg-badge: #0f172a;
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --accent-orange: #ff6b00;
  --accent-orange-hover: #e05e00;
  --accent-yellow: #f59e0b;
  --accent-red: #dc2626;
  --accent-blue: #0284c7;
  --accent-green: #16a34a;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #1e293b;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- OFFCANVAS DRAWER (MUST BE FIXED OVERLAY) ---------------- */
.offcanvas-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 999999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.offcanvas-overlay.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.offcanvas-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 340px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background: #0b1120 !important;
  color: #cbd5e1 !important;
  z-index: 1000000 !important;
  overflow-y: auto !important;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.5) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
}

.offcanvas-overlay.is-active .offcanvas-menu {
  transform: translateX(0) !important;
}

.offcanvas-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.offcanvas-close-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.offcanvas-close-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.offcanvas-body {
  padding: 24px 20px;
  flex: 1;
}

.offcanvas-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.offcanvas-categories {
  list-style: none;
  margin-bottom: 25px;
}

.offcanvas-categories li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.offcanvas-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.offcanvas-categories li a:hover {
  color: var(--accent-orange);
  padding-left: 8px;
}

.offcanvas-footer {
  padding: 20px;
  border-top: 1px solid #1e293b;
  background: #080d19;
}

/* ---------------- Top Ticker Bar ---------------- */
.top-ticker-bar {
  background-color: #0b1120;
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid #1e293b;
  padding: 6px 0;
}

.top-ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.ticker-badge {
  background-color: var(--accent-red);
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e2e8f0;
}

.top-right-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.market-brief {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  font-weight: 700;
  font-size: 11px;
}

.lang-toggle-btn {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* ---------------- Main Masthead Header ---------------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 26px 0;
}

.masthead-left {
  display: none;
}

.masthead-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.masthead-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger-btn:hover .hamburger-icon span {
  background-color: var(--accent-orange);
}

/* Center Logo: "UPDATE" in bold condensed masthead style on dark badge */
.masthead-center {
  text-align: center;
}

.brand-badge-logo {
  display: inline-block;
  background-color: #0b1120;
  padding: 10px 32px;
  border-radius: 6px;
  border-top: 3px solid var(--accent-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.brand-badge-logo:hover {
  transform: translateY(-1px);
}

.logo-main-text {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
  display: block;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Masthead Right: Social Icons (Facebook, Instagram, Email) */
.masthead-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
}

/* ---------------- Category Navigation Bar ---------------- */
.category-nav-bar {
  background: #0f172a;
  border-top: 2px solid var(--accent-orange);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-categories-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-categories-list::-webkit-scrollbar {
  display: none;
}

.nav-categories-list li {
  flex-shrink: 0;
}

.nav-categories-list li a {
  display: block;
  padding: 13px 18px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  text-transform: uppercase;
  position: relative;
  transition: all 0.2s ease;
}

.nav-categories-list li a:hover,
.nav-categories-list li.current-cat a,
.nav-categories-list li.current-menu-item a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-categories-list li a:hover::after,
.nav-categories-list li.current-cat a::after,
.nav-categories-list li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-orange);
}

/* Nav Bar Right: Live Auto-updating Date + Time */
.nav-live-clock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.clock-live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ---------------- GOOGLE ADSENSE AD SECTIONS (Dawn/Tribune style) ---------------- */
.google-ad-section {
  margin: 18px auto;
  text-align: center;
}

.ad-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 700;
}

.ad-slot-leaderboard {
  max-width: 970px;
  min-height: 85px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
}

.ad-slot-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 15px;
}

.ad-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.ad-brand-icon {
  width: 44px;
  height: 44px;
  background: #0f172a;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ad-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.ad-brand-desc {
  font-size: 12px;
  color: #64748b;
}

.ad-cta-btn {
  background: var(--accent-orange);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ad-cta-btn:hover {
  background: var(--accent-orange-hover);
}

.ad-slot-rectangle {
  width: 100%;
  min-height: 250px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

/* ---------------- PSX / FINANCIAL TICKER BAR (Dawn/Tribune style) ---------------- */
.psx-market-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  padding: 8px 0;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.psx-market-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

.psx-market-inner::-webkit-scrollbar {
  display: none;
}

.market-label-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.market-indices-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.market-index-item {
  font-size: 12px;
  white-space: nowrap;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.market-index-item strong {
  color: var(--text-main);
  margin-right: 4px;
}

.index-up {
  color: var(--accent-green);
  font-weight: 700;
}

.index-down {
  color: var(--accent-red);
  font-weight: 700;
}

/* ---------------- 3-COLUMN HOMEPAGE HERO GRID ---------------- */
.hero-3column-grid {
  display: grid;
  grid-template-columns: 26% 48% 26%;
  gap: 24px;
  margin-bottom: 40px;
}

/* Section Headings with Orange Accent Bar */
.section-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
  position: relative;
}

.section-heading-bar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background-color: var(--accent-orange);
}

.section-heading-bar h2,
.section-heading-bar h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading-bar .accent-bar-icon {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-orange);
  border-radius: 2px;
}

/* Left Column: Latest News List (~26%) */
.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-list-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-list-thumb {
  width: 85px;
  height: 68px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-list-card:hover .news-list-thumb img {
  transform: scale(1.08);
}

.news-list-content {
  flex: 1;
  min-width: 0;
}

.news-list-category {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 2px;
}

.news-list-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-date {
  font-size: 11px;
  color: var(--text-light);
}

/* Center Column: Lead Featured Story (~48%) */
.featured-story-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.featured-story-wrapper:hover {
  box-shadow: var(--shadow-lg);
}

.featured-image-holder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-story-wrapper:hover .featured-image-holder img {
  transform: scale(1.03);
}

.featured-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.featured-content-inner {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.featured-cat-tag {
  color: var(--accent-orange);
  font-weight: 800;
  text-transform: uppercase;
}

.featured-headline {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 12px;
}

.featured-headline a:hover {
  color: var(--accent-orange);
}

.featured-excerpt {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.featured-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* Right Column: Trending News (~26%) */
.trending-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trending-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange);
}

.trending-rank-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #cbd5e1;
  width: 24px;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.trending-item-card:hover .trending-rank-number {
  color: var(--accent-orange);
}

.trending-item-thumb {
  width: 75px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.trending-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-item-details {
  flex: 1;
  min-width: 0;
}

.trending-item-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-item-date {
  font-size: 11px;
  color: var(--text-light);
}

/* ---------------- SPECIAL REPORT BANNER (Dawn In-Depth Style) ---------------- */
.special-report-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 45px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent-orange);
}

.special-report-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.special-report-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.special-report-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-report-content {
  padding: 36px 32px;
}

.special-kicker-tag {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.special-headline {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}

.special-headline a {
  color: #ffffff;
}

.special-headline a:hover {
  color: var(--accent-yellow);
}

.special-deck {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ---------------- MULTI-COLUMN CATEGORY GRIDS (Dawn/Tribune style) ---------------- */
.homepage-category-section {
  margin-bottom: 45px;
}

.magazine-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.magazine-grid-cards,
.magazine-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.magazine-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.magazine-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.magazine-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.magazine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.magazine-card:hover .magazine-card-image img {
  transform: scale(1.05);
}

.magazine-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-orange);
}

.magazine-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.magazine-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 8px;
}

.magazine-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.magazine-card-meta {
  font-size: 11px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

/* ---------------- 2-COLUMN SECTION: CRIME/JUSTICE + SIDEBAR AD (Dawn/Tribune style) ---------------- */
.two-column-news-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 6px;
  position: relative;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--accent-orange);
}

/* ---------------- SINGLE POST & PAGES ---------------- */
.article-container {
  max-width: 900px;
  margin: 30px auto;
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.post-header-badge {
  display: inline-block;
  background: #fff7ed;
  color: var(--accent-orange);
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.single-post-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.single-post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 52px;
  float: left;
  line-height: 0.8;
  margin-right: 10px;
  font-weight: 900;
  color: var(--accent-orange);
}

.post-tags-row {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: #475569;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.tag-badge:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

.related-posts-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  border-top: 4px solid var(--accent-orange);
  margin-top: 60px;
  padding-top: 48px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-blurb {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.footer-readmore-link {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-quicklinks {
  list-style: none;
}

.footer-quicklinks li {
  margin-bottom: 10px;
}

.footer-quicklinks li a {
  color: #cbd5e1;
  font-size: 14px;
  transition: padding-left 0.2s, color 0.2s;
  display: inline-block;
}

.footer-quicklinks li a:hover {
  color: var(--accent-orange);
  padding-left: 6px;
}

.footer-social-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.footer-social-btn:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* ---------------- PAGINATION (Dawn/Tribune style) ---------------- */
.navigation.pagination {
  margin: 40px auto 20px;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.navigation.pagination .page-numbers:hover {
  background: #f1f5f9;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.navigation.pagination .page-numbers.current {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

.navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* ---------------- RESPONSIVENESS ---------------- */
@media (max-width: 1024px) {
  .hero-3column-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-3column-grid > .center-column {
    grid-column: span 2;
    order: -1;
  }
  .special-report-inner {
    grid-template-columns: 1fr;
  }
  .magazine-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .magazine-grid-cards,
  .magazine-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .two-column-news-layout {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-3column-grid {
    grid-template-columns: 1fr;
  }
  .hero-3column-grid > .center-column {
    grid-column: span 1;
    order: -1;
  }
  .magazine-grid-4col {
    grid-template-columns: 1fr;
  }
  .magazine-grid-cards,
  .magazine-grid-3col {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .masthead-left {
    display: flex !important;
  }
  .masthead-center {
    position: static !important;
    transform: none !important;
    text-align: center;
  }
  .hamburger-btn.mobile-hamburger-only {
    display: flex !important;
    padding: 8px 10px;
  }
  .logo-main-text {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .brand-badge-logo {
    padding: 6px 14px;
  }
  .nav-live-clock {
    display: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 20px;
  }
  .single-post-title {
    font-size: 26px;
  }
  .ad-slot-content {
    flex-direction: column;
    text-align: center;
  }
  .ad-brand-col {
    flex-direction: column;
    text-align: center;
  }
}
