/* TradesmanPass Blog Display v2.0 - Extracted from approved mockup */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');


  /* =============================================
     TRADESMANPASS BLOG — DESIGN SYSTEM
     ============================================= */
  :root {
    --yellow:       #F5C400;
    --yellow-dark:  #D4A900;
    --amber-warm:   #e8950a;
    --amber-hot:    #fbbf24;
    --amber-glow:   rgba(251, 191, 36, 0.12);
    --orange:       #C45200;
    --black:        #0D0D0D;
    --dark:         #141414;
    --card:         #1A1A1A;
    --border:       #2E2E2E;
    --mid:          #444444;
    --muted:        #888888;
    --light:        #BBBBBB;
    --white:        #F0EDE8;
    --off-white:    #F7F5F0;
    --bg:           #FFFFFF;
    --text-dark:    #1A1A1A;
    --text-body:    #333333;
    --text-muted:   #666666;
    --radius-sm:    3px;
    --radius-md:    6px;
    --radius-lg:    12px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; width: 100%; height: 100%; object-fit: cover; }
  a { text-decoration: none; color: inherit; }

  /* =============================================
     HEADER — Clean brand nav, no CTA selling
     ============================================= */
  .tp-header {
    background: var(--black);
    border-bottom: 2px solid var(--yellow);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .tp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .tp-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
  }
  .tp-logo span.yellow { color: var(--yellow); }
  .tp-logo span.white  { color: var(--white); }
  .tp-logo-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
    margin: 0 14px;
  }
  .tp-logo-insights {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    color: var(--light);
    letter-spacing: 0;
  }
  /* Topical nav links — these ARE SEO/GEO signals */
  .tp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .tp-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light);
    transition: color 0.2s;
  }
  .tp-nav a:hover { color: var(--yellow); }
  /* Subtle "main site" attribution — not a sales button */
  .tp-nav-home {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-left: 1px solid var(--border);
    padding-left: 20px;
    margin-left: 4px;
    transition: color 0.2s;
  }
  .tp-nav-home:hover { color: var(--light); }

  /* =============================================
     NEWSLETTER SIGNUP — kept for list building
     Repositioned: warmer tone, not salesy
     ============================================= */
  .tp-newsletter-banner {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
  }
  .tp-newsletter-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
  }
  .tp-newsletter-text { flex: 1; min-width: 220px; }
  .tp-newsletter-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 5px;
  }
  .tp-newsletter-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 3px;
  }
  .tp-newsletter-sub {
    font-size: 12px;
    color: var(--muted);
  }
  .tp-newsletter-form { display: flex; flex-shrink: 0; }
  .tp-newsletter-form input[type="email"] {
    width: 230px;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
  }
  .tp-newsletter-form input::placeholder { color: var(--mid); }
  .tp-newsletter-form input:focus { border-color: var(--yellow); }
  .tp-newsletter-form button {
    padding: 11px 20px;
    background: var(--yellow);
    color: var(--black);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .tp-newsletter-form button:hover { background: var(--amber-hot); }

  /* =============================================
     MAIN BLOG PAGE
     ============================================= */
  .tp-blog-page { background: var(--bg); }
  .tp-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* =============================================
     PAGE HEADER — Topically authoritative,
     keyword-rich, sets E-E-A-T signals for GEO
     ============================================= */
  .tp-page-header {
    padding: 44px 0 28px;
    border-bottom: 1px solid #E8E4DC;
  }
  .tp-page-eyebrow {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber-warm);
    margin-bottom: 10px;
    display: block;
  }
  .tp-page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }
  .tp-page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 620px;
    line-height: 1.65;
  }
  /* Topical authority chips — great GEO signals */
  .tp-topic-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  .tp-topic-chip {
    font-size: 11px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 2px;
    background: var(--off-white);
    color: var(--text-muted);
    border: 1px solid #E0DBD0;
  }

  /* =============================================
     CATEGORY FILTER BAR
     ============================================= */
  .tp-filter-bar {
    padding: 18px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #E8E4DC;
    margin-bottom: 40px;
  }
  .tp-filter-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 2px;
    border: 1px solid #D0CBC0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }
  .tp-filter-btn:hover {
    border-color: var(--amber-warm);
    color: var(--amber-warm);
  }
  .tp-filter-btn.active {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--yellow);
  }

  /* =============================================
     HERO / FEATURED POST
     ============================================= */
  .tp-hero-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 52px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .tp-hero-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  }
  .tp-hero-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
  }
  .tp-hero-image img { transition: transform 0.5s ease; }
  .tp-hero-post:hover .tp-hero-image img { transform: scale(1.04); }
  .tp-hero-content {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--text-dark);
  }
  .tp-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .tp-hero-eyebrow .tp-featured-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--black);
    padding: 3px 10px;
    border-radius: 2px;
  }
  .tp-hero-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
  }
  .tp-hero-content h2 a { color: inherit; }
  .tp-hero-content h2 a:hover { color: var(--yellow); }
  .tp-hero-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .tp-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tp-hero-date {
    font-size: 11px;
    color: var(--mid);
    font-family: 'Oswald', sans-serif;
  }
  .tp-hero-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-top: 16px;
    transition: gap 0.2s, color 0.2s;
  }
  .tp-hero-readmore:hover { gap: 14px; color: var(--amber-hot); }

  /* =============================================
     CATEGORY BADGES
     ============================================= */
  .tp-cat-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    background: var(--amber-glow);
    color: var(--yellow);
    border: 1px solid rgba(245,196,0,0.3);
  }
  .tp-cat-badge.electrical  { background: rgba(232,149,10,0.13); color: var(--amber-warm); border-color: rgba(232,149,10,0.3); }
  .tp-cat-badge.data-centers{ background: rgba(76,175,80,0.12); color: #4CAF50; border-color: rgba(76,175,80,0.3); }
  .tp-cat-badge.battery     { background: rgba(100,160,255,0.12); color: #64a0ff; border-color: rgba(100,160,255,0.3); }
  .tp-cat-badge.licensing   { background: rgba(196,82,0,0.12); color: #C45200; border-color: rgba(196,82,0,0.3); }
  .tp-cat-badge.ev          { background: rgba(160,100,255,0.12); color: #a064ff; border-color: rgba(160,100,255,0.3); }

  /* =============================================
     SECTION LABEL
     ============================================= */
  .tp-section-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8E4DC;
  }

  /* =============================================
     BLOG GRID
     ============================================= */
  .tp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }

  /* =============================================
     BLOG CARD
     ============================================= */
  .tp-blog-card {
    background: #fff;
    border: 1px solid #E8E4DC;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
  }
  .tp-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
    border-color: var(--yellow);
  }
  .tp-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
  }
  .tp-card-image img { transition: transform 0.4s ease; }
  .tp-blog-card:hover .tp-card-image img { transform: scale(1.06); }
  .tp-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: #555;
    background: linear-gradient(135deg, #141414, #1e1e1e);
    gap: 6px;
  }
  .tp-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .tp-card-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .tp-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    flex: 1;
  }
  .tp-card-title a { color: inherit; }
  .tp-card-title a:hover { color: var(--amber-warm); }
  .tp-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
  }
  .tp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #F0EDE8;
    margin-top: auto;
  }
  .tp-card-date {
    font-size: 11px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }
  .tp-card-read {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber-warm);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s, color 0.2s;
  }
  .tp-blog-card:hover .tp-card-read { gap: 9px; color: var(--yellow-dark); }

  /* =============================================
     PAGINATION
     ============================================= */
  .tp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 0 52px;
    border-top: 1px solid #E8E4DC;
  }
  .tp-page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid #E8E4DC;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
  }
  .tp-page-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
  .tp-page-btn.active { background: var(--text-dark); color: var(--yellow); border-color: var(--text-dark); }
  .tp-page-btn.prev-next {
    width: auto; padding: 0 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
  }

  /* =============================================
     FOOTER — Keyword-rich internal links
     This is where we give SEO credit back to
     tradesmanpass.com through anchor text
     ============================================= */
  .tp-footer {
    background: var(--black);
    padding: 40px 24px 32px;
    border-top: 2px solid var(--yellow);
  }
  .tp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
  }
  .tp-footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }
  .tp-footer-brand span { color: var(--yellow); }
  .tp-footer-tagline {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 380px;
    line-height: 1.6;
  }
  /* Keyword-rich anchor text links — passes SEO equity to main site */
  .tp-footer-seo-links a {
    font-size: 12px;
    color: var(--muted);
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
  }
  .tp-footer-seo-links a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
  .tp-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    padding-top: 2px;
  }
  .tp-footer-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
  }
  .tp-footer-nav a:hover { color: var(--yellow); }
  .tp-footer-copyright {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--mid);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* =============================================
     RESPONSIVE
     ============================================= */
  @media (max-width: 900px) {
    .tp-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-hero-post { grid-template-columns: 1fr; }
    .tp-hero-image { aspect-ratio: 16/9; width: 100%; }
    .tp-newsletter-inner { flex-direction: column; gap: 14px; }
    .tp-newsletter-form { width: 100%; }
    .tp-newsletter-form input[type="email"] { flex: 1; width: auto; }
    .tp-footer-inner { grid-template-columns: 1fr; }
    .tp-footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  }
  @media (max-width: 600px) {
    .tp-blog-grid { grid-template-columns: 1fr; }
    .tp-nav { display: none; }
    .tp-hero-content { padding: 24px 20px; }
    .tp-footer-copyright { flex-direction: column; gap: 6px; text-align: center; }
  }
