/* ============================================================
   Northline Blog / Knowledge Hub — exact port of the live Shopify
   sections blog-hero.liquid + blog-filter.liquid (live settings).
   Scopes: #nl-resources-hero, #nl-resources-listing
   ============================================================ */
#nl-resources-hero {
    background-color: #151515;
    padding-top: 200px;
    padding-bottom: 120px;
    overflow: hidden;
    position: relative;
  }

  #nl-resources-hero .nlrh-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
  }

  #nl-resources-hero .nlrh-eyebrow {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
  }

  #nl-resources-hero .nlrh-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #e8553a;
    border-radius: 2px;
    flex-shrink: 0;
  }

  #nl-resources-hero .nlrh-eyebrow-text {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999999;
    line-height: 1.2;
  }

  #nl-resources-hero .nlrh-title {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 148px;
    font-weight: 400;
    line-height: 1.0;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
  }

  #nl-resources-hero .nlrh-subtitle {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    margin-bottom: 0; /* live base.css resets <p> margins; WP main.css does not */
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #999999;
    margin-top: 24px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
  }

  /* Animate in */
  #nl-resources-hero.nlrh-visible .nlrh-eyebrow {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  #nl-resources-hero.nlrh-visible .nlrh-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
  }

  #nl-resources-hero.nlrh-visible .nlrh-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s;
  }

  /* Gradient title word support */
  #nl-resources-hero .nlrh-title .nlrh-gradient {
    background: #e8553a;
    background: linear-gradient(90deg, #e8553a, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
  }

  @media (max-width: 768px) {
    #nl-resources-hero {
      padding-top: 140px;
      padding-bottom: 80px;
    }

    #nl-resources-hero .nlrh-inner {
      padding-left: 24px;
      padding-right: 24px;
    }

    #nl-resources-hero .nlrh-title {
      font-size: 64px;
    }

    #nl-resources-hero .nlrh-subtitle {
      font-size: 16px;
    }
  }

/* ===== ROOT ===== */
  #nl-resources-listing {
    background-color: #151515;
    padding-top: 0px;
    padding-bottom: 80px;
    position: relative;
  }
  #nl-resources-listing *,
  #nl-resources-listing *::before,
  #nl-resources-listing *::after {
    box-sizing: border-box;
  }
  #nl-resources-listing .nlrl-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
  }
  /* ===== FILTER BAR ===== */
  #nl-resources-listing .nlrl-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0px;
    flex-wrap: wrap;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 24px;
  }
  #nl-resources-listing .nlrl-filter-label {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-right: 60px;
    white-space: nowrap;
    line-height: 1;
  }
  #nl-resources-listing .nlrl-filter-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  #nl-resources-listing .nlrl-tab {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #888888;
    background: none;
    border: 1px solid transparent;
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    line-height: 1;
    text-transform: none;
  }
  #nl-resources-listing .nlrl-tab:hover {
    color: #cccccc;
  }
  #nl-resources-listing .nlrl-tab.nlrl-active {
    color: #ffffff;
    border-color: #ffffff;
  }
  /* ===== RESOURCE LIST ===== */
  #nl-resources-listing .nlrl-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  /* ===== RESOURCE CARD ===== */
  #nl-resources-listing .nlrl-card {
    display: grid;
    grid-template-columns: 180px 100px 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid #2a2a2a;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    cursor: pointer;
    position: relative;
  }
  #nl-resources-listing .nlrl-card:first-child {
    border-top: 1px solid #2a2a2a;
  }
  #nl-resources-listing .nlrl-card.nlrl-card-visible {
    opacity: 1;
    transform: translateY(0);
  }
  #nl-resources-listing .nlrl-card.nlrl-hidden {
    display: none;
  }
  /* Thumbnail */
  #nl-resources-listing .nlrl-thumb {
    width: 180px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
  }
  #nl-resources-listing .nlrl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  #nl-resources-listing .nlrl-card:hover .nlrl-thumb img {
    transform: scale(1.05);
  }
  /* Meta column (type + date) */
  #nl-resources-listing .nlrl-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  #nl-resources-listing .nlrl-type {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #cccccc;
    line-height: 1.3;
  }
  #nl-resources-listing .nlrl-date {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #777777;
    line-height: 1.3;
  }
  /* Content column (title + description) */
  #nl-resources-listing .nlrl-content {
    min-width: 0;
  }
  #nl-resources-listing .nlrl-title {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 10px 0;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.4s ease;
  }

  /* Gradient on hover — Path Robotics style */
  #nl-resources-listing .nlrl-card:hover .nlrl-title {
    background: linear-gradient(90deg, #e8553a, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  #nl-resources-listing .nlrl-desc {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #999999;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Arrow */
  #nl-resources-listing .nlrl-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
  }
  #nl-resources-listing .nlrl-card:hover .nlrl-arrow {
    transform: translate(3px, 3px);
    opacity: 1;
  }
  /* ===== EMPTY STATE ===== */
  #nl-resources-listing .nlrl-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: #999999;
    display: none;
  }
  #nl-resources-listing .nlrl-empty.nlrl-show {
    display: block;
  }
  /* ===== MOBILE ===== */
  @media (max-width: 768px) {
    #nl-resources-listing {
      padding-top: 0px;
      padding-bottom: 60px;
    }
    #nl-resources-listing .nlrl-inner {
      padding-left: 24px;
      padding-right: 24px;
    }
    #nl-resources-listing .nlrl-filter-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    #nl-resources-listing .nlrl-filter-label {
      margin-right: 0;
    }
    #nl-resources-listing .nlrl-filter-tabs {
      gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      flex-wrap: nowrap;
      padding-bottom: 4px;
    }
    #nl-resources-listing .nlrl-card {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    #nl-resources-listing .nlrl-thumb {
      width: 100%;
      height: 200px;
    }
    #nl-resources-listing .nlrl-arrow {
      position: absolute;
      top: 40px;
      right: 0;
    }
    #nl-resources-listing .nlrl-title {
      font-size: 20px;
    }
  }
