/*
Theme Name: BollyFlix Theme
Theme URI: https://bollflix.org
Author: BollyFlix Dev Team
Description: Modern, tool-first entertainment website WordPress theme for BollyFlix.org — Your Entertainment Command Center.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bollflix-org
*/

:root {
  --color-primary: #f43f5e;
  --color-primary-hover: #e11d48;
  --color-primary-light: #fff1f2;
  --color-primary-glow: rgba(244, 63, 94, 0.3);
  --color-secondary: #a855f7;
  --color-secondary-hover: #9333ea;
  --color-accent: #ec4899;
  --color-gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
  --color-gradient-subtle: linear-gradient(135deg, #fdf4ff 0%, #fff1f2 100%);
  --color-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  
  --color-text: #0f172a;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  
  --color-bg: #fbfbfd;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-alt: #f1f5f9;
  
  --color-border: #f1f5f9;
  --color-border-hover: #e2e8f0;
  
  --color-header-bg: rgba(255, 255, 255, 0.95);
  --color-footer-bg: #0b0f19;
  --color-footer-text: #94a3b8;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 10px 25px rgba(244, 63, 94, 0.25);
  --shadow-glow-purple: 0 10px 25px rgba(168, 85, 247, 0.25);
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--color-primary-hover);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================================
   Custom Buttons & Inputs (MANDATORY AGENT.md RULES)
   ========================================================================= */
button, input[type="button"], input[type="submit"], .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gradient-primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.4);
  color: #ffffff;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-hover);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

.btn-purple {
  background: var(--color-gradient-purple);
  color: #ffffff !important;
  box-shadow: var(--shadow-glow-purple);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4);
}

/* Dropdown styling */
select, .custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding: 10px 40px 10px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  min-height: 44px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

input[type="text"], input[type="number"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  outline: none;
  min-height: 44px;
  transition: all 0.2s ease;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #0f172a;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 20px;
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gradient-primary);
}
.logo-text span {
  color: var(--color-primary);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}
.primary-nav li a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-nav li a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.primary-nav li.current-menu-item a, .primary-nav li.active a {
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
}
.primary-nav li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  position: relative;
  width: 220px;
}
.header-search input {
  padding: 8px 36px 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  min-height: 38px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
}
.header-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  min-height: auto;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  cursor: pointer;
}

.user-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.08) 0%, rgba(168, 85, 247, 0.08) 35%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.toolkit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1f2;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #0f172a;
  margin-bottom: 18px;
}
.hero-title .gradient-text {
  background: var(--color-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-avatars {
  display: flex;
}
.trust-avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background: #cbd5e1;
  display: inline-block;
}
.trust-avatars span:first-child { margin-left: 0; background: #f43f5e; }
.trust-avatars span:nth-child(2) { background: #a855f7; }
.trust-avatars span:nth-child(3) { background: #3b82f6; }
.trust-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.trust-text small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Floating Watch Overview Card in Hero */
.hero-visual-wrapper {
  position: relative;
}

.watch-overview-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.overview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.overview-card-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.overview-card-header .dropdown-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.total-time-val {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin: 6px 0;
}
.stat-trend-up {
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
}

.donut-chart-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0% 40%, #a855f7 40% 65%, #f43f5e 65% 76%, #f1f5f9 76% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}
.donut-chart-box::before {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #ffffff;
}
.donut-text {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #0f172a;
}
.donut-text small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-light);
}

.overview-pill-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.pill-stat-item {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.pill-stat-item .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text);
  display: block;
}
.pill-stat-item .lbl {
  font-size: 10px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Floating 3D graphics decoration around overview card */
.hero-floating-decor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.decor-popcorn {
  top: -30px;
  left: -20px;
  width: 65px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.12));
}
.decor-clapper {
  top: -35px;
  right: 60px;
  width: 55px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.15));
}
.decor-soda {
  bottom: 20px;
  right: -25px;
  width: 60px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.12));
}
.decor-reel {
  bottom: -25px;
  right: 15px;
  width: 45px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

/* =========================================================================
   Section Header (Common)
   ========================================================================= */
.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}
.section-header-center h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sparkle-icon {
  color: var(--color-secondary);
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header-flex h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-all-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover {
  color: var(--color-primary);
}

/* =========================================================================
   Action Grid Section (What do you want to do?)
   ========================================================================= */
.action-grid-section {
  padding: 40px 0 70px;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.action-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.action-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.action-card.pink .action-card-icon { background: #fff1f2; color: #f43f5e; }
.action-card.amber .action-card-icon { background: #fffbeb; color: #f59e0b; }
.action-card.purple .action-card-icon { background: #faf5ff; color: #a855f7; }
.action-card.blue .action-card-icon { background: #eff6ff; color: #3b82f6; }
.action-card.green .action-card-icon { background: #ecfdf5; color: #10b981; }
.action-card.yellow .action-card-icon { background: #fefce8; color: #eab308; }

.action-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.action-card-desc {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.4;
  margin-bottom: 16px;
}
.action-card-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
  transition: all 0.2s ease;
}
.action-card:hover .action-card-btn {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* =========================================================================
   Featured Watchlist & Calculator Section
   ========================================================================= */
.featured-watchlist-section {
  padding: 20px 0 70px;
}

.watchlist-feature-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.watchlist-left-cta .pill-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}
.watchlist-left-cta h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 14px;
}
.watchlist-left-cta p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.watchlist-center-table {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--color-border);
}
.table-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.table-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 30px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.watchlist-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 30px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  font-size: 13px;
}
.watchlist-title-col {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}
.watchlist-thumb {
  width: 28px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  background: #cbd5e1;
}
.watchlist-type-col {
  color: var(--color-text-light);
  font-size: 12px;
}
.watchlist-time-col {
  color: var(--color-text);
  font-weight: 600;
  font-size: 12px;
}
.btn-remove-item {
  background: none;
  border: none;
  color: #f43f5e;
  cursor: pointer;
  font-size: 16px;
  min-height: auto;
  padding: 0;
}

.btn-add-titles {
  width: 100%;
  margin-top: 12px;
  background: #ffffff;
  border: 1px dashed var(--color-border-hover);
  color: var(--color-primary);
  font-size: 13px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.watchlist-right-total {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.total-time-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}
.total-time-big {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0;
  position: relative;
}
.total-time-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.total-alarm-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  position: relative;
}

/* =========================================================================
   Category Explore Section
   ========================================================================= */
.category-explore-section {
  padding: 10px 0 60px;
}

.categories-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-pill-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}
.category-pill-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cat-info h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.cat-info span {
  font-size: 11px;
  color: var(--color-text-light);
}

/* =========================================================================
   Feature Stats & Banner Row
   ========================================================================= */
.stats-banner-section {
  padding: 0 0 70px;
}

.stats-banner-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.quick-stats-row {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.q-stat-icon {
  font-size: 24px;
  color: var(--color-secondary);
}
.q-stat-info strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: block;
}
.q-stat-info span {
  font-size: 11px;
  color: var(--color-text-light);
}

.promo-binge-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.promo-text h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.promo-text p {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.3;
}
.promo-icon-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

/* =========================================================================
   Trending This Week Section
   ========================================================================= */
.trending-section {
  padding: 0 0 80px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr) 1.2fr;
  gap: 16px;
}

.movie-poster-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
}
.movie-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.poster-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1e293b;
}
.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.movie-poster-card:hover .poster-img-wrap img {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.poster-meta {
  padding: 10px;
}
.poster-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.poster-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-light);
}
.poster-rating {
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Quiz CTA Card */
.quiz-cta-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.quiz-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.quiz-cta-card p {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* =========================================================================
   Value Props Pillars
   ========================================================================= */
.value-props-section {
  padding: 30px 0 80px;
  border-top: 1px solid var(--color-border);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pillar-icon {
  font-size: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}
.pillar-text h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.pillar-text p {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* =========================================================================
   Breadcrumbs Component (TASK 18)
   ========================================================================= */
.breadcrumbs-nav {
  padding: 16px 0;
  margin-bottom: 24px;
}
.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  font-family: var(--font-heading);
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item a {
  color: var(--color-text-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
}
.breadcrumb-item a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.breadcrumb-item.current {
  color: var(--color-primary);
  font-weight: 700;
  padding: 4px 12px;
  background: #fff1f2;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.breadcrumb-separator {
  color: var(--color-text-muted);
  font-size: 12px;
}

/* =========================================================================
   Tool Template Pages Styling
   ========================================================================= */
.tool-page-container {
  padding: 40px 0 80px;
}
.tool-header-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}
.tool-header-block h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.2;
}
.tool-header-block p {
  font-size: 17px;
  color: var(--color-text-light);
}

.tool-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.calculator-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calculator-result-box {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 28px;
}
.result-stat-val {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 8px 0;
}

.tool-sidebar-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.tool-sidebar-box h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* =========================================================================
   All Tools Dashboard Layout
   ========================================================================= */
.tools-filter-wrapper {
  max-width: 900px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.tools-search-box {
  position: relative;
  width: 100%;
  max-width: 640px;
}
.tools-search-box input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-hover);
  background: #ffffff;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.tools-search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}
.search-icon-hint {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.tools-category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.filter-tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 38px;
  transition: all 0.2s ease;
}
.filter-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-tab-btn.active {
  background: var(--color-gradient-primary);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.tools-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-dashboard-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.tool-dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tool-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.tool-card-icon-box.pink { background: #fff1f2; color: #f43f5e; }
.tool-card-icon-box.purple { background: #faf5ff; color: #a855f7; }
.tool-card-icon-box.amber { background: #fffbeb; color: #f59e0b; }
.tool-card-icon-box.yellow { background: #fefce8; color: #eab308; }
.tool-card-icon-box.green { background: #ecfdf5; color: #10b981; }
.tool-card-icon-box.blue { background: #eff6ff; color: #3b82f6; }

.tool-category-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tool-category-badge.pink { background: #fff1f2; color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.2); }
.tool-category-badge.purple { background: #faf5ff; color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.tool-category-badge.amber { background: #fffbeb; color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.tool-category-badge.yellow { background: #fefce8; color: #ca8a04; border: 1px solid rgba(202, 138, 4, 0.2); }
.tool-category-badge.green { background: #ecfdf5; color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.tool-category-badge.blue { background: #eff6ff; color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }

.tool-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-card-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.tool-card-features span {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.btn-tool-launch {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-hover);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
}
.btn-tool-launch:hover {
  background: var(--color-gradient-primary);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* =========================================================================
   Standard & Blog / Article Layouts
   ========================================================================= */
.blog-archive-container, .single-post-container {
  padding: 40px 0 80px;
}

.page-layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Featured Hero Card (First Post) */
.featured-blog-hero-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-blog-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.featured-hero-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
  min-height: 280px;
}
.featured-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-blog-hero-card:hover .featured-hero-thumb img {
  transform: scale(1.04);
}

.hero-cat-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.featured-hero-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.featured-hero-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}
.featured-hero-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.featured-hero-title a:hover {
  color: var(--color-primary);
}

.featured-hero-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.featured-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.btn-read-more {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.btn-read-more:hover {
  gap: 8px;
}

/* 2-Column Subgrid */
.blog-cards-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-grid-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.blog-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.grid-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.grid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-grid-card:hover .grid-card-thumb img {
  transform: scale(1.05);
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.grid-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.grid-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.grid-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.grid-card-title a:hover {
  color: var(--color-primary);
}

.grid-card-excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.grid-card-link {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Sidebar Widgets */
.sidebar-widget-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.widget-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.sidebar-tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.2s ease;
}
.sidebar-tool-item:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.sidebar-tool-item .tool-emoji {
  font-size: 20px;
}
.sidebar-tool-item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  font-family: var(--font-heading);
}
.sidebar-tool-item small {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
}

.topic-pill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}
.topic-pill:hover {
  background: #fff1f2;
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

/* =========================================================================
   Single Article Detail Page
   ========================================================================= */
.single-article-content {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.single-post-header {
  margin-bottom: 28px;
}
.single-cat-badge {
  display: inline-block;
  background: #fff1f2;
  color: #f43f5e;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 63, 94, 0.2);
  margin-bottom: 16px;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 20px;
}

.single-post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.author-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-name-text {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.post-date-text {
  font-size: 12px;
  color: var(--color-text-light);
}

.share-btn {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.single-featured-image-wrapper {
  margin: 32px 0 36px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0f172a;
  max-height: 480px;
}
.single-featured-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-rich-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}
.author-bio-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-gradient-primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-bio-text h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.author-bio-text p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.article-tools-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
}
.article-tools-cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.article-tools-cta-banner p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
  max-width: 440px;
}

.single-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.nav-prev-box, .nav-next-box {
  display: flex;
  flex-direction: column;
}
.nav-next-box {
  text-align: right;
}
.nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.nav-prev-box a, .nav-next-box a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-prev-box a:hover, .nav-next-box a:hover {
  color: var(--color-primary);
}

/* =========================================================================
   Footer (4-column)
   ========================================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 70px 0 30px;
  border-top: 1px solid #1e293b;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--color-primary); }
.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s ease;
}
.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
}

/* =========================================================================
   Mobile Breakpoints (1024px, 768px, 480px) - REQUIRED
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 42px;
  }
  .action-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .watchlist-feature-container {
    grid-template-columns: 1fr;
  }
  .categories-horizontal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trending-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .primary-nav {
    display: none;
  }
  .primary-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav.mobile-open ul {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .home-articles-grid {
    grid-template-columns: 1fr;
  }
  .categories-horizontal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-banner-grid {
    grid-template-columns: 1fr;
  }
  .quick-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-layout-grid, .page-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-cards-grid {
    grid-template-columns: 1fr;
  }
  .categories-horizontal-grid {
    grid-template-columns: 1fr;
  }
  .quick-stats-row {
    grid-template-columns: 1fr;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }
  .value-props-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
