/* ============================================================
   shared/blog-index.css

   Page-specific styles for blog.html (the blog index page).
   Extracted from inline <style> on 2026-04-08 to remove the 760-line
   render-blocking inline block. Loaded via <link> in blog.html only.
   Other blog/post pages do NOT load this file.
   ============================================================ */

  

  

  

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 55%, var(--cta-gradient-dark) 100%);
    color: var(--white);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  /* Higher specificity to override core.css .use-case-page .hero::before */
  .use-case-page .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-inner {
    max-width: var(--container-max, 1080px);
    width: calc(100% - 2 * var(--container-pad, 24px));
    margin: 0 auto;

    position: relative;
    z-index: 2;
  }
  .hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  .hero .subhead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    line-height: 1.65;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ===== FEATURED POST ===== */
  .featured-post {
    padding: 72px 0;
    background: var(--white);
  }
  .featured-post-inner {
    max-width: var(--container-max, 1080px);
    width: calc(100% - 2 * var(--container-pad, 24px));
    margin: 0 auto;

  }
  .featured-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
    color: var(--white);
    position: relative;
    overflow: hidden;
  }
  .featured-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(192,211,48,0.1) 0%, transparent 60%);
    pointer-events: none;
  }
  .featured-card-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 48px;
  }
  .featured-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
  }
  .featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--trust-green-bg);
    color: var(--trust-green);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .featured-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--white);
  }
  .featured-card .excerpt {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    line-height: 1.65;
  }
  .featured-meta {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
  }

  /* ===== CATEGORY FILTER ===== */
  .category-filter {
    padding: 48px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
  }
  .category-filter-inner {
    max-width: var(--container-max, 1080px);
    width: calc(100% - 2 * var(--container-pad, 24px));
    margin: 0 auto;

  }
  .filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .filter-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
  }

  /* ===== BLOG CONTENT LAYOUT (sidebar + grid) ===== */
  .blog-content {
    padding: 72px 0;
    background: var(--white);
  }
  .blog-content-inner {
    max-width: var(--container-max, 1080px);
    width: calc(100% - 2 * var(--container-pad, 24px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
  }

  /* ===== BLOG GRID (main column) ===== */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .post-card {
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .post-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(59,130,246,0.08);
    transform: translateY(-2px);
  }
  .post-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
  }
  .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  .post-card:hover .post-card-image img {
    transform: scale(1.05);
  }
  .post-card-header {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .post-category {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #EBF5FF, #DBEAFE);
    color: #3B82F6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 16px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    width: fit-content;
  }
  .post-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.35;
  }
  .post-card .excerpt {
    font-size: 0.92rem;
    color: var(--slate-light);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
  }
  .posts-grid > a {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .post-card a {
    text-decoration: none;
    color: inherit;
  }
  .post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--slate-light);
    padding: 16px 28px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
  }
  .post-date-label {
    color: var(--slate-light);
  }
  .meta-separator {
    color: var(--light-gray);
  }
  .read-time {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Hidden posts (filtered or paginated out) */
  .post-link-hidden {
    display: none !important;
  }

  /* ===== ARCHIVE BAR (toggle + year pills) ===== */
  .archive-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .year-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .year-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--slate);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
  }
  .year-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .year-pill.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
  }
  .year-pill .pill-count {
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 5px;
    color: var(--slate-light);
  }
  .year-pill.active .pill-count {
    color: rgba(255,255,255,0.9);
  }

  /* ===== ARCHIVE TOGGLE ===== */
  .archive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--slate-light);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
  }
  .archive-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .archive-toggle-icon {
    flex-shrink: 0;
  }

  /* Collapsed state: hide sidebar column, expand grid to full width */
  .blog-content-inner.sidebar-hidden {
    grid-template-columns: 1fr;
  }
  .blog-content-inner.sidebar-hidden .archive-sidebar {
    display: none;
  }
  .blog-content-inner.sidebar-hidden .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ===== ARCHIVE SIDEBAR ===== */
  .archive-sidebar {
    position: sticky;
    top: 24px;
  }
  .archive-sidebar h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-light);
    margin-bottom: 20px;
  }
  .archive-year {
    margin-bottom: 8px;
  }
  .archive-year-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }
  .archive-year-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .archive-year-btn .chevron {
    transition: transform 0.2s;
    margin-left: auto;
    flex-shrink: 0;
  }
  .archive-year-btn .chevron.open {
    transform: rotate(90deg);
  }
  .archive-year-btn .year-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-light);
    margin-left: 4px;
  }
  .archive-months {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
  }
  .archive-months.open {
    max-height: 500px;
  }
  .archive-months ul {
    list-style: none;
    padding: 6px 0 6px 8px;
  }
  .archive-months li {
    margin: 0;
  }
  .archive-month-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
  }
  .archive-month-btn:hover {
    background: rgba(59,130,246,0.06);
    color: var(--accent-blue);
  }
  .archive-month-btn.active {
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    font-weight: 600;
  }
  .archive-month-btn .month-count {
    font-size: 0.8rem;
    color: var(--slate-light);
    font-weight: 400;
    background: var(--off-white);
    padding: 2px 8px;
    border-radius: 10px;
  }
  .archive-clear {
    display: none;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 14px;
    background: none;
    border: 1px dashed var(--light-gray);
    border-radius: 10px;
    color: var(--slate-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  .archive-clear:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .archive-clear.visible {
    display: flex;
  }

  /* ===== PAGINATION ===== */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--light-gray);
  }
  .pagination.hidden {
    display: none;
  }
  .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
  }
  .page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }
  .page-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
    font-weight: 600;
  }
  .page-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
  }
  .page-btn.nav-btn {
    font-size: 0.9rem;
    gap: 4px;
  }
  .no-results {
    text-align: center;
    padding: 64px 24px;
    color: var(--slate-light);
  }
  .no-results h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
  }
  .no-results p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ===== NEWSLETTER CTA ===== */
  .newsletter {
    padding: 72px 0;
    background: var(--off-white);
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
  }
  .newsletter-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--container-pad, 24px);
  }
  .newsletter h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .newsletter .sub-text {
    font-size: 1.05rem;
    color: var(--slate-light);
    margin-bottom: 32px;
    line-height: 1.65;
  }
  .newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .newsletter-input {
    flex: 1;
    min-width: 240px;
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
  }
  .newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  }
  .newsletter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  .newsletter-btn:hover {
    background: var(--accent-blue-dark);
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    padding: 72px 0;
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 55%, var(--cta-gradient-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(192,211,48,0.06) 0%, transparent 60%);
    pointer-events: none;
  }
  .cta-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--container-pad, 24px);
    position: relative;
    z-index: 2;
  }
  .cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
  }
  .cta-section .cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.6;
  }
  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  

  /* ===== RESPONSIVE: TABLET (768-1024px) ===== */
  @media (max-width: 1024px) {
    .hero h1 { font-size: 2rem; }
    .featured-card { grid-template-columns: 1fr 280px; }
    .featured-card-inner { padding: 36px; }
    .featured-card h2 { font-size: 1.65rem; }
    .blog-content-inner {
      grid-template-columns: 1fr 220px;
      gap: 32px;
    }
    .posts-grid { gap: 20px; }
    .blog-content-inner.sidebar-hidden .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-post,
    .blog-content,
    .newsletter,
    .cta-section { padding: 56px 0; }
  }

  /* ===== RESPONSIVE: MOBILE (<=768px) ===== */
  @media (max-width: 768px) {
    .hero { padding: 40px 0 36px; }
    .hero-inner { width: 100%; padding: 0 16px; }
    .hero h1 { font-size: 1.75rem; line-height: 1.2; }
    .hero .subhead { font-size: 1rem; }

    .featured-post { padding: 48px 0; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-inner { padding: 32px; }
    .featured-card-image { height: 200px; border-radius: 16px 16px 0 0; order: -1; }
    .featured-card h2 { font-size: 1.4rem; }
    .featured-card .excerpt { font-size: 1rem; }
    .featured-meta { flex-direction: column; align-items: flex-start; gap: 12px; }

    .category-filter { padding: 36px 0; }
    .category-filter-inner { width: 100%; padding: 0 16px; }
    .filter-buttons { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }

    /* Stack sidebar above grid on mobile */
    .blog-content { padding: 48px 0; }
    .blog-content-inner {
      width: 100%;
      padding: 0 16px;
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .archive-sidebar {
      position: static;
      order: -1;
    }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-content-inner.sidebar-hidden .posts-grid { grid-template-columns: 1fr; }
    .post-card-image { height: 200px; }

    .newsletter { padding: 48px 0; }
    .newsletter-inner { width: 100%; padding: 0 16px; }
    .newsletter h2 { font-size: 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-input { width: 100%; }
    .newsletter-btn { width: 100%; justify-content: center; }

    .cta-section { padding: 48px 0; }
    .cta-inner { padding: 0 16px; }
    .cta-section h2 { font-size: 1.75rem; }
    .cta-buttons { flex-direction: column; }
  }

  /* ===== RESPONSIVE: SMALL MOBILE (<=400px) ===== */
  @media (max-width: 400px) {
    .hero h1 { font-size: 1.4rem; }
    .featured-card h2 { font-size: 1.2rem; }
    .newsletter h2 { font-size: 1.3rem; }
    .cta-section h2 { font-size: 1.6rem; }
  }

  /* ===== TOUCH TARGET SIZING ===== */
  @media (pointer: coarse) {
    .btn-primary, .filter-btn, .newsletter-btn, .page-btn {
      min-height: 44px;
    }
  }

