/*
Theme Name:   WeldFabWorld Child
Theme URI:    https://www.weldfabworld.com
Description:  Custom Astra Child Theme for WeldFabWorld — Industrial precision design for welding professionals
Author:       WeldFabWorld
Author URI:   https://www.weldfabworld.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  weldfabworld-child
Tags:         welding, technical, industrial
*/

/* =====================================================
   DESIGN SYSTEM — CSS VARIABLES
   Aesthetic: Refined Industrial Editorial
   Mixed: dark header/footer, light article body
   Fonts: Barlow Condensed (display) + Source Serif 4 (body)
   ===================================================== */

:root {
  /* Core Palette */
  --wfw-black:       #0d0f10;
  --wfw-steel-dark:  #141820;
  --wfw-steel-mid:   #1e2533;
  --wfw-steel-light: #2c3547;
  --wfw-border:      #2e3a4e;
  --wfw-smoke:       #4a5568;
  --wfw-muted:       #8892a4;
  --wfw-fog:         #b8c4d4;
  --wfw-white:       #f0f4f8;
  --wfw-pure:        #ffffff;

  /* Arc Orange — primary accent */
  --wfw-arc:         #f97316;
  --wfw-arc-dim:     #c45d0e;
  --wfw-arc-light:   #fde5cc;
  --wfw-arc-glow:    rgba(249,115,22,0.12);

  /* Weld Blue — secondary accent */
  --wfw-blue:        #3b9eff;
  --wfw-blue-dim:    #1a6fc4;
  --wfw-blue-light:  #dbeafe;

  /* Body / Article */
  --wfw-body-bg:     #f8fafc;
  --wfw-body-text:   #1a202c;
  --wfw-body-muted:  #4a5568;
  --wfw-card-bg:     #ffffff;
  --wfw-card-border: #e2e8f0;

  /* Typography */
  --font-display:    'Barlow Condensed', sans-serif;
  --font-body:       'Source Serif 4', Georgia, serif;
  --font-ui:         'Barlow', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Spacing */
  --header-h:        68px;
  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       12px;

  /* Transitions */
  --t-fast:          0.15s ease;
  --t-mid:           0.25s ease;
  --t-slow:          0.4s ease;

  /* Shadows */
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
  --shadow-lg:       0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.12);
  --shadow-arc:      0 4px 20px rgba(249,115,22,0.25);
}

/* =====================================================
   GOOGLE FONTS IMPORT
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--wfw-body-text);
  background: var(--wfw-body-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Offset fixed header */
body { padding-top: var(--header-h); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wfw-arc); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--wfw-arc-dim); }

/* =====================================================
   ASTRA OVERRIDES — Strip defaults we replace
   ===================================================== */
.ast-header-break-point .ast-mobile-header-wrap,
#ast-mobile-header { display: none !important; }

.ast-above-header-wrap,
.ast-below-header-wrap { display: none; }

/* Remove Astra's default header — we provide our own */
#masthead.site-header {
  display: none !important;
}

/* =====================================================
   SITE HEADER — STICKY MEGA MENU
   ===================================================== */
#wfw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--wfw-steel-dark);
  border-bottom: 1px solid var(--wfw-border);
  height: var(--header-h);
  transition: background var(--t-mid), box-shadow var(--t-mid);
}

#wfw-header.scrolled {
  background: rgba(20,24,32,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.wfw-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* LOGO */
.wfw-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}

.wfw-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--wfw-arc);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wfw-logo-mark svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.wfw-logo-text { line-height: 1; }

.wfw-logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--wfw-white);
  text-transform: uppercase;
}

.wfw-logo-tagline {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--wfw-muted);
  text-transform: uppercase;
  margin-top: 1px;
}

/* PRIMARY NAV */
.wfw-nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

.wfw-nav > ul {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.wfw-nav > ul > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.wfw-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--wfw-fog);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.wfw-nav > ul > li > a:hover,
.wfw-nav > ul > li.active > a {
  color: var(--wfw-white);
  border-bottom-color: var(--wfw-arc);
}

.wfw-nav > ul > li > a .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--t-fast);
  opacity: 0.6;
}

.wfw-nav > ul > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* MEGA MENU DROPDOWN */
.wfw-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--wfw-steel-dark);
  border: 1px solid var(--wfw-border);
  border-top: 2px solid var(--wfw-arc);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.wfw-nav > ul > li:hover .wfw-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.wfw-mega li a {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--wfw-fog);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
  white-space: nowrap;
}

.wfw-mega li a:hover {
  background: var(--wfw-arc-glow);
  color: var(--wfw-white);
  padding-left: 26px;
}

.wfw-mega .mega-section-label {
  display: block;
  padding: 10px 20px 4px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  border-top: 1px solid var(--wfw-border);
  margin-top: 4px;
}

.wfw-mega .mega-section-label:first-child {
  border-top: none;
  margin-top: 0;
}

/* HEADER RIGHT */
.wfw-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.wfw-search-btn {
  background: none;
  border: 1px solid var(--wfw-border);
  color: var(--wfw-fog);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
}

.wfw-search-btn:hover {
  border-color: var(--wfw-arc);
  color: var(--wfw-white);
  background: var(--wfw-arc-glow);
}

.wfw-quiz-btn {
  background: var(--wfw-arc);
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}

.wfw-quiz-btn:hover {
  background: var(--wfw-arc-dim);
  color: white;
  box-shadow: var(--shadow-arc);
}

/* MOBILE HAMBURGER */
.wfw-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--wfw-border);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: 12px;
}

.wfw-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wfw-fog);
  border-radius: 1px;
  transition: all var(--t-fast);
}

/* MOBILE MENU */
.wfw-mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--wfw-steel-dark);
  border-bottom: 1px solid var(--wfw-border);
  padding: 16px 0;
  z-index: 9998;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.wfw-mobile-menu.open { display: block; }

.wfw-mobile-menu a {
  display: block;
  padding: 11px 24px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--wfw-fog);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
}

.wfw-mobile-menu a:hover {
  color: var(--wfw-white);
  background: var(--wfw-arc-glow);
  border-left-color: var(--wfw-arc);
}

.wfw-mobile-menu .mobile-section {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  padding: 14px 24px 6px;
  border-top: 1px solid var(--wfw-border);
  margin-top: 8px;
}

.wfw-mobile-menu .mobile-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* =====================================================
   HOMEPAGE HERO
   ===================================================== */
.wfw-hero {
  background: var(--wfw-steel-dark);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 64px;
}

/* Subtle weld-arc texture overlay */
.wfw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(249,115,22,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(59,158,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Diagonal grid lines — subtle industrial texture */
.wfw-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.wfw-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.wfw-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wfw-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--wfw-arc);
  flex-shrink: 0;
}

.wfw-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--wfw-white);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.wfw-hero h1 span {
  color: var(--wfw-arc);
  display: block;
}

.wfw-hero-desc {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--wfw-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.wfw-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wfw-arc);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.btn-primary:hover {
  background: var(--wfw-arc-dim);
  color: white;
  box-shadow: var(--shadow-arc);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--wfw-fog);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--wfw-border);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--t-fast);
}

.btn-secondary:hover {
  border-color: var(--wfw-arc);
  color: var(--wfw-white);
  background: var(--wfw-arc-glow);
}

/* HERO STATS */
.wfw-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wfw-border);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: start;
  margin-top: 16px;
}

.hero-stat {
  background: var(--wfw-steel-mid);
  padding: 20px 16px;
  text-align: center;
  transition: background var(--t-fast);
}

.hero-stat:hover { background: var(--wfw-steel-light); }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--wfw-arc);
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--wfw-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* HERO FEATURED ARTICLE */
.wfw-hero-featured {
  background: var(--wfw-steel-mid);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.wfw-hero-featured::before {
  content: 'FEATURED';
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--wfw-arc);
  color: white;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 0 0 4px 4px;
}

.wfw-hero-featured .featured-cat {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--wfw-arc);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  margin-top: 8px;
}

.wfw-hero-featured h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--wfw-white);
  line-height: 1.2;
  margin: 0 0 10px;
}

.wfw-hero-featured p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.wfw-hero-featured a.read-more {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--wfw-arc);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wfw-hero-featured a.read-more:hover { color: var(--wfw-white); }

/* =====================================================
   CATEGORY GRID SECTION
   ===================================================== */
.wfw-section {
  padding: 56px 24px;
}

.wfw-section-dark {
  background: var(--wfw-steel-dark);
}

.wfw-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.wfw-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.wfw-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wfw-white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wfw-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 28px;
  background: var(--wfw-arc);
  border-radius: 2px;
  flex-shrink: 0;
}

.wfw-section-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--wfw-arc);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.wfw-section-link:hover { color: var(--wfw-white); }

/* CATEGORY CARDS */
.wfw-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.wfw-cat-card {
  background: var(--wfw-steel-mid);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-decoration: none;
  display: block;
  transition: border-color var(--t-mid), background var(--t-mid), transform var(--t-mid);
  position: relative;
  overflow: hidden;
}

.wfw-cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wfw-arc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}

.wfw-cat-card:hover {
  border-color: var(--wfw-arc);
  background: var(--wfw-steel-light);
  transform: translateY(-2px);
}

.wfw-cat-card:hover::after { transform: scaleX(1); }

.cat-icon {
  width: 40px;
  height: 40px;
  background: var(--wfw-arc-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}

.cat-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--wfw-white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cat-count {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--wfw-muted);
}

/* =====================================================
   TOOLS & CALCULATORS STRIP
   ===================================================== */
.wfw-tools-strip {
  background: var(--wfw-arc);
  padding: 20px 24px;
  overflow: hidden;
}

.wfw-tools-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tools-strip-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.tools-strip-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tools-strip-links a {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast);
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}

.tools-strip-links a:hover {
  background: rgba(255,255,255,0.28);
  color: white;
}

/* =====================================================
   LATEST ARTICLES GRID
   ===================================================== */
.wfw-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wfw-article-card {
  background: var(--wfw-card-bg);
  border: 1px solid var(--wfw-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
  display: flex;
  flex-direction: column;
}

.wfw-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--wfw-card-border);
  position: relative;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.wfw-article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

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

.article-cat-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--wfw-body-text);
  line-height: 1.4;
  margin: 0 0 10px;
  flex: 1;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover { color: var(--wfw-arc); }

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--wfw-body-muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--wfw-card-border);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   FEATURED QUIZZES SECTION
   ===================================================== */
.wfw-quiz-section {
  background: var(--wfw-steel-dark);
  padding: 56px 24px;
}

.wfw-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.wfw-quiz-card {
  background: var(--wfw-steel-mid);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  display: block;
  transition: all var(--t-mid);
  position: relative;
}

.wfw-quiz-card:hover {
  border-color: var(--wfw-arc);
  background: var(--wfw-steel-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.quiz-badge {
  display: inline-block;
  background: var(--wfw-arc-glow);
  color: var(--wfw-arc);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(249,115,22,0.2);
}

.quiz-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--wfw-white);
  line-height: 1.3;
  margin: 0 0 10px;
}

.quiz-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.quiz-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--wfw-arc);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   SINGLE POST / ARTICLE TEMPLATE
   ===================================================== */
.wfw-single-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ARTICLE */
.wfw-article {
  min-width: 0;
}

.wfw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-body-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wfw-breadcrumb a {
  color: var(--wfw-body-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.wfw-breadcrumb a:hover { color: var(--wfw-arc); }

.wfw-breadcrumb .sep {
  opacity: 0.4;
}

.wfw-article-header {
  margin-bottom: 32px;
}

.article-category-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 3px 10px;
  background: var(--wfw-arc-light);
  border-radius: 100px;
}

.wfw-article h1.entry-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--wfw-body-text);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-body-muted);
  padding: 14px 0;
  border-top: 1px solid var(--wfw-card-border);
  border-bottom: 1px solid var(--wfw-card-border);
  margin-bottom: 28px;
}

.article-meta-bar strong {
  color: var(--wfw-body-text);
  font-weight: 600;
}

.meta-reading-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--wfw-arc);
  font-weight: 600;
}

/* ARTICLE CONTENT TYPOGRAPHY */
.entry-content {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--wfw-body-text);
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--wfw-body-text);
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wfw-arc);
  line-height: 1.2;
}

.entry-content h3 {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 700;
  color: var(--wfw-body-text);
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-content h3::before {
  content: '';
  display: block;
  width: 3px;
  height: 20px;
  background: var(--wfw-arc);
  border-radius: 2px;
  flex-shrink: 0;
}

.entry-content h4 {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--wfw-body-text);
  margin: 24px 0 8px;
}

.entry-content p { margin: 0 0 20px; }

.entry-content ul,
.entry-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.entry-content li { margin-bottom: 8px; }

.entry-content strong { font-weight: 700; color: var(--wfw-body-text); }

.entry-content em { font-style: italic; }

.entry-content a {
  color: var(--wfw-arc);
  text-decoration: underline;
  text-decoration-color: rgba(249,115,22,0.3);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-color: var(--wfw-arc);
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.entry-content table th {
  background: var(--wfw-steel-dark);
  color: var(--wfw-white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.entry-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--wfw-card-border);
  vertical-align: top;
}

.entry-content table tr:nth-child(even) td {
  background: #f8fafc;
}

.entry-content table tr:last-child td { border-bottom: none; }

/* Code blocks */
.entry-content pre,
.entry-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: #1e2533;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
}

.entry-content code {
  padding: 2px 6px;
}

.entry-content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  border-left: 3px solid var(--wfw-arc);
}

/* Callout blocks */
.entry-content .wp-block-pullquote,
.entry-content blockquote {
  border-left: 4px solid var(--wfw-arc);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--wfw-arc-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* YouTube embed */
.entry-content .wp-block-embed {
  margin: 32px 0;
}

.entry-content .wp-block-embed figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-body-muted);
  text-align: center;
  margin-top: 8px;
}

/* Related Articles section */
.entry-content h3:has(+ ul a[href*="weldfabworld"]),
.entry-content h3.related-heading {
  font-family: var(--font-ui);
  background: var(--wfw-steel-dark);
  color: var(--wfw-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: 36px 0 0;
}

/* Images in content */
.entry-content img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.entry-content figure { margin: 24px 0; }

.entry-content figcaption {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-body-muted);
  text-align: center;
  margin-top: 6px;
}

/* ARTICLE TAGS */
.entry-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--wfw-card-border);
}

.entry-tags-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--wfw-body-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list a {
  background: var(--wfw-body-bg);
  border: 1px solid var(--wfw-card-border);
  color: var(--wfw-body-muted);
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: none;
  transition: all var(--t-fast);
}

.tag-list a:hover {
  border-color: var(--wfw-arc);
  color: var(--wfw-arc);
  background: var(--wfw-arc-light);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.wfw-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-widget {
  background: var(--wfw-card-bg);
  border: 1px solid var(--wfw-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  background: var(--wfw-steel-dark);
  color: var(--wfw-white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--wfw-arc);
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-widget-body { padding: 0; }

/* Categories widget */
.sidebar-widget .cat-item {
  list-style: none;
}

.sidebar-widget .cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-body-text);
  text-decoration: none;
  border-bottom: 1px solid var(--wfw-card-border);
  transition: all var(--t-fast);
}

.sidebar-widget .cat-item:last-child a { border-bottom: none; }

.sidebar-widget .cat-item a:hover {
  background: var(--wfw-arc-light);
  color: var(--wfw-arc);
  padding-left: 20px;
}

.sidebar-widget .cat-item a:hover { color: var(--wfw-arc); }

/* Sidebar post list */
.sidebar-post-list { list-style: none; padding: 0; margin: 0; }

.sidebar-post-list li {
  border-bottom: 1px solid var(--wfw-card-border);
}

.sidebar-post-list li:last-child { border-bottom: none; }

.sidebar-post-list a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--wfw-body-text);
  text-decoration: none;
  line-height: 1.4;
  transition: all var(--t-fast);
}

.sidebar-post-list a:hover {
  background: var(--wfw-arc-light);
  color: var(--wfw-arc);
  padding-left: 20px;
}

/* CTA Widget */
.sidebar-cta {
  background: var(--wfw-steel-dark);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--wfw-white);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.sidebar-cta p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.sidebar-cta a {
  display: block;
  background: var(--wfw-arc);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background var(--t-fast);
}

.sidebar-cta a:hover { background: var(--wfw-arc-dim); color: white; }

/* =====================================================
   CATEGORY ARCHIVE PAGE
   ===================================================== */
.wfw-archive-header {
  background: var(--wfw-steel-dark);
  padding: 40px 24px;
  border-bottom: 1px solid var(--wfw-border);
  margin-bottom: 0;
}

.wfw-archive-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.wfw-archive-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wfw-archive-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--wfw-white);
  margin: 0 0 10px;
}

.wfw-archive-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--wfw-muted);
  margin: 0;
  max-width: 600px;
}

.wfw-archive-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* =====================================================
   FOOTER
   ===================================================== */
#wfw-footer {
  background: var(--wfw-black);
  border-top: 1px solid var(--wfw-border);
  padding: 56px 24px 24px;
}

.wfw-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.wfw-footer-top {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--wfw-border);
  margin-bottom: 28px;
}

.footer-brand {}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--wfw-arc);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo .logo-mark svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--wfw-white);
  text-transform: uppercase;
}

.footer-brand-desc {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-smoke);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 32px;
  height: 32px;
  background: var(--wfw-steel-mid);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wfw-muted);
  font-size: 13px;
  text-decoration: none;
  transition: all var(--t-fast);
  font-family: var(--font-ui);
  font-weight: 700;
}

.footer-social a:hover {
  background: var(--wfw-arc);
  border-color: var(--wfw-arc);
  color: white;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--wfw-arc);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--wfw-smoke);
  text-decoration: none;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wfw-border);
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.footer-links a:hover {
  color: var(--wfw-white);
}

.footer-links a:hover::before {
  background: var(--wfw-arc);
}

.wfw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-smoke);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-smoke);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: var(--wfw-white); }

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.wfw-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,15,16,0.96);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
}

.wfw-search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.wfw-search-box {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}

.wfw-search-box form {
  display: flex;
  align-items: center;
  background: var(--wfw-steel-mid);
  border: 1px solid var(--wfw-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wfw-search-box input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--wfw-white);
  outline: none;
}

.wfw-search-box input::placeholder { color: var(--wfw-smoke); }

.wfw-search-box button[type="submit"] {
  background: var(--wfw-arc);
  border: none;
  padding: 0 20px;
  height: 54px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: background var(--t-fast);
}

.wfw-search-box button[type="submit"]:hover { background: var(--wfw-arc-dim); }

.search-close {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--wfw-smoke);
  cursor: pointer;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
.wfw-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--wfw-arc);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-arc);
  transition: background var(--t-fast), transform var(--t-fast);
  font-size: 16px;
}

.wfw-scroll-top.visible { display: flex; }
.wfw-scroll-top:hover {
  background: var(--wfw-arc-dim);
  transform: translateY(-2px);
}

/* =====================================================
   PROGRESS BAR (reading indicator)
   ===================================================== */
.wfw-reading-bar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  height: 3px;
  background: var(--wfw-arc);
  width: 0%;
  z-index: 9998;
  transition: width 0.1s linear;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */
@media (max-width: 1024px) {
  .wfw-hero-inner {
    grid-template-columns: 1fr;
  }

  .wfw-hero-featured { display: none; }

  .wfw-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wfw-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wfw-single-wrap,
  .wfw-archive-wrap {
    grid-template-columns: 1fr;
  }

  .wfw-sidebar { position: static; }

  .wfw-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .wfw-nav > ul > li > a { padding: 0 10px; font-size: 12px; }
}

/* =====================================================
   RESPONSIVE — MOBILE
   ===================================================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .wfw-nav { display: none; }

  .wfw-hamburger { display: flex; }

  .wfw-quiz-btn { display: none; }

  .wfw-hero { padding: 48px 20px 40px; }

  .wfw-hero h1 { font-size: 32px; }

  .wfw-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .wfw-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wfw-articles-grid {
    grid-template-columns: 1fr;
  }

  .wfw-quiz-grid {
    grid-template-columns: 1fr;
  }

  .wfw-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wfw-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .wfw-section { padding: 40px 20px; }

  .wfw-tools-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tools-strip-label {
    border-right: none;
    padding-right: 0;
  }
}

/* =====================================================
   SCHEMA / SEO HIDDEN
   ===================================================== */
.schema-hidden { display: none; }

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  #wfw-header, #wfw-footer, .wfw-sidebar,
  .wfw-scroll-top, .wfw-reading-bar { display: none !important; }
  body { padding-top: 0; }
}
