/* ============================================================
   LOADANDGO — blog.css
   Modern blog listing & detail pages
   Extends main.css variables: --ink, --red, --cream, --rule, etc.
   ============================================================ */

/* ════════════════════════════
   BLOG HERO
════════════════════════════ */
.blog-hero {
    position: relative;
    background: var(--ink);
    padding: 6rem var(--pad) 4rem;
    overflow: hidden;
    margin: 0 25px;
    border-radius: var(--rl);
    padding-top: 70px;
  }
  .blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(211,47,47,.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .blog-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  .blog-hero .eyebrow {
    color: var(--red);
    margin-bottom: 1rem;
  }
  .blog-hero h1 {
    font-family: var(--fd);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #fff;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 700px;
  }
  .blog-hero h1 em {
    font-style: normal;
    color: var(--red);
  }
  .blog-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.45);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 2rem;
  }
  .blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .blog-hero-meta span {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
  }
  .blog-hero-meta i {
    color: var(--red);
    font-size: .8rem;
  }
  
  /* ════════════════════════════
     BREADCRUMB
  ════════════════════════════ */
  .blog-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: .9rem var(--pad);
  }
  .blog-breadcrumb-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-family: var(--fb);
    color: var(--ink-m);
  }
  .blog-breadcrumb-inner a {
    color: var(--ink-m);
    transition: color .18s;
  }
  .blog-breadcrumb-inner a:hover {
    color: var(--red);
  }
  .blog-breadcrumb-inner i {
    font-size: .65rem;
    color: var(--ink-m);
    opacity: .5;
  }
  .blog-breadcrumb-inner span {
    color: var(--ink);
    font-weight: 600;
  }
  
  /* ════════════════════════════
     BLOG LAYOUT
  ════════════════════════════ */
  .blog-layout {
    max-width: calc(var(--max) + 2*var(--pad));
    margin: 0 auto;
    padding: 3rem var(--pad) 5rem;
    align-items: start;
  }
  
  /* ════════════════════════════
     FEATURED POST
  ════════════════════════════ */
  .featured-post {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--rl);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: box-shadow .3s, transform .3s;
  }
  .featured-post:hover {
    box-shadow: 0 20px 60px rgba(13,27,42,.10);
    transform: translateY(-3px);
  }
  .featured-post-img {
    position: relative;
    min-height: 380px;
    overflow: hidden;
  }
  .featured-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
  }
  .featured-post:hover .featured-post-img img {
    transform: scale(1.05);
  }
  .featured-post-img .cat-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem .9rem;
    border-radius: 50px;
    z-index: 2;
  }
  .featured-post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .featured-post-content .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: .78rem;
    color: var(--ink-m);
  }
  .featured-post-content .post-meta i {
    color: var(--red);
    font-size: .7rem;
  }
  .featured-post-content h2 {
    font-family: var(--fd);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: color .2s;
  }
  .featured-post:hover .featured-post-content h2 {
    color: var(--red);
  }
  .featured-post-content p {
    font-size: .92rem;
    color: var(--ink-m);
    line-height: 1.75;
    margin-bottom: 1.5rem;
  }
  .read-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--red);
    transition: gap .2s;
  }
  .read-more:hover {
    gap: .75rem;
  }
  
  /* ════════════════════════════
     POST GRID
  ════════════════════════════ */
  .posts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .posts-section-header h3 {
    font-family: var(--fd);
    font-size: 1.25rem;
    color: var(--ink);
  }
  .post-filter {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
  }
  .filter-btn {
    padding: .45rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid var(--rule);
    border-radius: 50px;
    background: var(--white);
    color: var(--ink-m);
    cursor: pointer;
    transition: all .18s;
    font-family: var(--fb);
  }
  .filter-btn:hover,
  .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .post-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--rl);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
    display: flex;
    flex-direction: column;
  }
  .post-card:hover {
    transform: translateY(-4px);
  }
  .post-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
  }
  .post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
  }
  .post-card:hover .post-card-img img {
    transform: scale(1.08);
  }
  .post-card-img .cat-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,.95);
    color: var(--ink);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .8rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
  }
  .post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .post-card-meta {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .75rem;
    font-size: .75rem;
    color: var(--ink-m);
  }
  .post-card-meta i {
    color: var(--red);
    font-size: .65rem;
  }
  .post-card h4 {
    font-family: var(--fd);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: .6rem;
    transition: color .2s;
  }
  .post-card:hover h4 {
    color: var(--red);
  }
  .post-card p {
    font-size: .85rem;
    color: var(--ink-m);
    line-height: 1.65;
    flex: 1;
  }
  
  /* ════════════════════════════
     PAGINATION
  ════════════════════════════ */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 3rem;
  }
  .pagination a,
  .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all .18s;
  }
  .pagination a {
    color: var(--ink-m);
    background: var(--white);
    border: 1px solid var(--rule);
  }
  .pagination a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  .pagination span.current {
    background: var(--ink);
    color: #fff;
  }
  .pagination .prev-next {
    width: auto;
    padding: 0 1rem;
    gap: .4rem;
  }
  
  /* ════════════════════════════
     BLOG DETAIL PAGE
  ════════════════════════════ */
  .blog-detail-hero {
    position: relative;
    padding: 5rem var(--pad) 0;
    overflow: hidden;
  }
  .blog-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(211,47,47,.10) 0%, transparent 60%);
    pointer-events: none;
  }
  .blog-detail-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 3rem;
  }
  .blog-detail-hero .post-cat {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
  }
  .blog-detail-hero h1 {
    font-family: var(--fd);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }
  .blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .blog-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(0, 0, 0, 0.45);
  }
  .blog-detail-meta .meta-item i {
    color: var(--red);
    font-size: .8rem;
  }
  .blog-detail-meta .meta-av {
    width: 32px;
    height: 32px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-size: .75rem;
    font-weight: 700;
  }
  
  /* Featured image */
  .blog-detail-featured {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--pad);
    transform: translateY(-40px);
    position: relative;
    z-index: 2;
  }
  .blog-detail-featured img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--rl);
    box-shadow: 0 20px 60px rgba(13,27,42,.15);
  }
  
  /* Article layout */
  .blog-article-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem var(--pad) 5rem;
  }
  
  .blog-article {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Article typography */
  .blog-article .lead {
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
  }
  .blog-article h2 {
    font-family: var(--fd);
    font-size: 1.6rem;
    color: var(--ink);
    margin: 2.5rem 0 1rem;
    line-height: 1.25;
  }
  .blog-article h3 {
    font-family: var(--fd);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 2rem 0 .75rem;
  }
  .blog-article p {
    font-size: 1rem;
    color: var(--ink-m);
    line-height: 1.85;
    margin-bottom: 1.25rem;
  }
  .blog-article ul,
  .blog-article ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--ink-m);
  }
  .blog-article ul li {
    padding: .4rem 0;
    line-height: 1.7;
    position: relative;
  }
  .blog-article ul li::marker {
    color: var(--red);
  }
  .blog-article blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--cream);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--r) var(--r) 0;
    font-style: italic;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .blog-article blockquote cite {
    display: block;
    margin-top: .75rem;
    font-size: .85rem;
    color: var(--ink-m);
    font-style: normal;
    font-weight: 600;
  }
  .blog-article img {
    width: 100%;
    border-radius: var(--r);
  }
  .blog-article .article-image-caption {
    text-align: center;
    font-size: .8rem;
    color: var(--ink-m);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Share bar */
  .share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    margin: 2.5rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .share-bar span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .share-bar a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 8px;
    color: var(--ink-m);
    font-size: .85rem;
    transition: all .18s;
  }
  .share-bar a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
  }
  
  /* Author box */
  .author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--rl);
    margin: 3rem 0;
  }
  .author-box-av {
    width: 70px;
    height: 70px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .author-box-info h4 {
    font-family: var(--fd);
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: .25rem;
  }
  .author-box-info span {
    font-size: .8rem;
    color: var(--red);
    font-weight: 600;
    display: block;
    margin-bottom: .75rem;
  }
  .author-box-info p {
    font-size: .9rem;
    color: var(--ink-m);
    line-height: 1.7;
    margin: 0;
  }
  
  /* Related posts */
  .related-posts {
    margin-top: 3rem;
    padding: 3rem;
    border-top: 1.5px solid var(--rule);
  }
  .related-posts h3 {
    font-family: var(--fd);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
  }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .related-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--rl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .3s, transform .3s;
  }
  .related-card:hover {
    box-shadow: 0 10px 30px rgba(13,27,42,.08);
    transform: translateY(-3px);
  }
  .related-card img {
    width: 100%;
    object-fit: cover;
  }
  .related-card-body {
    padding: 1.25rem;
  }
  .related-card-body .cat {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .5rem;
    display: block;
  }
  .related-card-body h4 {
    font-family: var(--fd);
    font-size: .95rem;
    color: var(--ink);
    line-height: 1.35;
    transition: color .2s;
  }
  .related-card:hover h4 {
    color: var(--red);
  }
  
  /* Reading progress bar */
  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    z-index: 1000;
    transition: width .1s;
    width: 0%;
  }
  
  /* ════════════════════════════
     RESPONSIVE
  ════════════════════════════ */
  @media (max-width: 1100px) {
    .blog-layout {
      grid-template-columns: 1fr;
    }
    .blog-sidebar {
      position: static;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .newsletter-widget {
      grid-column: 1 / -1;
    }
    .blog-article-layout {
      grid-template-columns: 1fr;
    }
    .related-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 960px) {
    .featured-post {
      grid-template-columns: 1fr;
    }
    .featured-post-img {
      min-height: 280px;
    }
    .posts-grid {
      grid-template-columns: 1fr;
    }
    .blog-sidebar {
      grid-template-columns: 1fr;
    }
    .blog-detail-featured img {
      height: 350px;
    }
  }
  
  @media (max-width: 768px) {
    .blog-hero {
      margin: 0 15px;
      padding-top: 120px;
    }
    .blog-detail-hero h1 {
      font-size: 1.6rem;
    }
    .blog-detail-featured img {
      height: 250px;
    }
    .author-box {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }
    .related-grid {
      grid-template-columns: 1fr;
    }
    .share-bar {
      flex-wrap: wrap;
    }
  }
  
  @media (max-width: 520px) {
    .post-filter {
      width: 100%;
    }
    .filter-btn {
      flex: 1;
      text-align: center;
    }
    .blog-article h2 {
      font-size: 1.3rem;
    }
    .blog-article blockquote {
      padding: 1rem 1.25rem;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .featured-post,
    .post-card,
    .related-card {
      transition: none;
    }
    .featured-post:hover,
    .post-card:hover,
    .related-card:hover {
      transform: none;
    }
  }