/* Blog Listing Page Styles */
section {
  margin-top: 0;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

/* =========================================
   BLOG HERO
   ========================================= */
.hero-blog {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-blog-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1920&q=80') center/cover no-repeat;
  opacity: 0.08;
  filter: blur(3px);
}
.hero-blog-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(184,115,51,0.06) 0%, transparent 60%);
}
.hero-blog-content {
  position: relative;
  z-index: 2;
}
.hero-blog-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark-heading);
  margin-bottom: 20px;
  line-height: 1.05;
}
.hero-blog-content h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: letterReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-blog-content p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-dark-body);
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
}
.hero-copper-line {
  width: 60px;
  height: 3px;
  background: var(--copper-gradient);
  margin: 0 auto;
  border-radius: 2px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

/* Floating geometric shapes in hero */
.hero-shape {
  position: absolute;
  border: 1px solid rgba(184,115,51,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 350px; height: 350px;
  top: 10%; left: -8%;
  animation: floatA 15s ease-in-out infinite;
}
.hero-shape-2 {
  width: 180px; height: 180px;
  bottom: 10%; right: 8%;
  border-radius: 30%;
  animation: floatB 12s ease-in-out infinite;
  border-color: rgba(184,115,51,0.06);
}
.hero-shape-3 {
  width: 100px; height: 100px;
  top: 30%; right: 18%;
  animation: floatA 10s ease-in-out infinite reverse;
}

/* =========================================
   KEYFRAMES
   ========================================= */
@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CATEGORY FILTER BAR
   ========================================= */
.filter-bar {
  background: rgba(28,28,28,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(184,115,51,0.08);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 20px 0;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.filter-bar.stuck {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark-muted);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.filter-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--copper-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 100px;
  z-index: -1;
}
.filter-chip:hover {
  border-color: rgba(184,115,51,0.3);
  color: var(--text-dark-heading);
  box-shadow: 0 0 16px rgba(184,115,51,0.1);
}
.filter-chip:active {
  transform: scale(0.95);
}
.filter-chip.active {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(184,115,51,0.08);
  box-shadow: 0 0 20px rgba(184,115,51,0.15);
}

/* =========================================
   DARK-TO-LIGHT SVG DIVIDER
   ========================================= */
.curve-divider {
  position: relative;
  margin-top: -1px;
}
.curve-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* =========================================
   BLOG GRID SECTION
   ========================================= */
.blog-grid-section {
  background: var(--light-bg);
  padding: 80px 0 60px;
  position: relative;
}
.blog-grid-section .floater { opacity: 0.015; }

/* =========================================
   BLOG FEATURED CARD
   ========================================= */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--light-card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}
.blog-featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: var(--copper-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(12px);
}
.blog-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(184,115,51,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.blog-featured:hover::after {
  opacity: 0.3;
}
.blog-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-featured:hover .blog-featured-img img {
  transform: scale(1.03);
}
.blog-featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  background: rgba(184,115,51,0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.blog-featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-category {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--light-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
  width: fit-content;
  transition: all 0.3s ease;
}
.blog-featured:hover .blog-featured-category {
  border-color: var(--copper);
  background: rgba(184,115,51,0.05);
}
.blog-featured-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--text-light-heading);
  margin-bottom: 16px;
  line-height: 1.25;
}
.blog-featured-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-light-body);
  line-height: 1.7;
  margin-bottom: 28px;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light-muted);
}
.blog-featured-meta .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--copper-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.blog-featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light-muted);
}
.blog-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  transition: gap 0.3s ease;
}
.blog-featured:hover .blog-featured-read {
  gap: 14px;
}
.blog-featured-read svg {
  transition: transform 0.3s ease;
}
.blog-featured:hover .blog-featured-read svg {
  transform: translateX(4px);
}

/* =========================================
   BLOG CARDS
   ========================================= */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--light-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}
.blog-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: var(--copper-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(10px);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184,115,51,0.1), 0 2px 12px rgba(0,0,0,0.06);
}
.blog-card:hover::after {
  opacity: 0.25;
}
.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}
.blog-card-content {
  padding: 28px 24px;
}
.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--light-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
  transition: all 0.3s ease;
}
.blog-card:hover .blog-card-category {
  border-color: var(--copper);
  background: rgba(184,115,51,0.04);
}
.blog-card-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-light-heading);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.blog-card:hover .blog-card-content h3 {
  color: var(--copper);
}
.blog-card-content p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light-body);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-light-muted);
  padding-top: 16px;
  border-top: 1px solid var(--light-border);
}
.blog-card-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-card-meta .author-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
}
.blog-card-meta .read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination-section {
  background: var(--light-bg);
  padding: 20px 0 80px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--light-border);
  background: var(--light-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light-body);
  cursor: pointer;
  transition: all 0.3s ease;
}
.pagination-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  box-shadow: 0 0 16px rgba(184,115,51,0.1);
}
.pagination-btn.active {
  background: var(--copper-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(184,115,51,0.25);
}
.pagination-btn.arrow {
  color: var(--copper);
  border-color: rgba(184,115,51,0.3);
}
.pagination-btn.arrow:hover {
  background: rgba(184,115,51,0.08);
}

/* =========================================
   LIGHT-TO-DARK DIVIDER
   ========================================= */
.curve-divider-inv {
  position: relative;
  margin-bottom: -1px;
}
.curve-divider-inv svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter {
  background: var(--dark-bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.newsletter .floater { opacity: 0.03; }
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.newsletter-glass {
  position: absolute;
  inset: -60px -80px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px;
  z-index: 0;
}
.newsletter-inner > *:not(.newsletter-glass) {
  position: relative;
  z-index: 1;
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  color: var(--text-dark-heading);
  margin-bottom: 16px;
}
.newsletter p {
  margin-bottom: 36px;
  color: var(--text-dark-body);
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-radius: 2px 0 0 2px;
  color: var(--text-dark-heading);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}
.newsletter-form input::placeholder { color: var(--text-dark-muted); }
.newsletter-form input:focus {
  border-color: var(--copper);
  box-shadow: 0 0 20px rgba(184,115,51,0.1);
}
.newsletter-form .btn-primary {
  border-radius: 0 2px 2px 0;
  padding: 16px 28px;
  white-space: nowrap;
}

/* =========================================
   MOBILE RESPONSIVE — 767px
   ========================================= */
@media (max-width: 767px) {

  /* -----------------------------------------
     BLOG LISTING — HERO
     ----------------------------------------- */
  .hero-blog {
    padding: 56px 0 24px;
    min-height: auto;
  }
  .hero-blog-content h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }
  .hero-blog-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-copper-line {
    width: 40px;
  }
  .hero-shape {
    display: none;
  }

  /* -----------------------------------------
     BLOG LISTING — FILTER BAR
     ----------------------------------------- */
  .filter-bar {
    padding: 12px 0;
    top: 50px;
  }
  .filter-bar .container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }
  .filter-bar .container::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    padding: 8px 16px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* -----------------------------------------
     BLOG LISTING — GRID SECTION
     ----------------------------------------- */
  .blog-grid-section {
    padding: 32px 0 24px;
  }

  /* -----------------------------------------
     BLOG LISTING — FEATURED CARD
     ----------------------------------------- */
  .blog-featured {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
  .blog-featured-img {
    min-height: 200px;
    max-height: 220px;
  }
  .blog-featured-img img {
    height: 220px;
  }
  .blog-featured-content {
    padding: 24px 20px;
  }
  .blog-featured-category {
    margin-bottom: 12px;
  }
  .blog-featured-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .blog-featured-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .blog-featured-read {
    margin-top: 12px;
    font-size: 13px;
  }

  /* -----------------------------------------
     BLOG LISTING — CARDS GRID
     ----------------------------------------- */
  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .blog-card-img {
    height: 180px;
  }
  .blog-card-img img {
    height: 180px;
  }
  .blog-card-content {
    padding: 18px 16px;
  }
  .blog-card-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .blog-card-content p {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .blog-card-meta {
    font-size: 11px;
  }

  /* -----------------------------------------
     BLOG LISTING — PAGINATION
     ----------------------------------------- */
  .pagination-section {
    padding: 16px 0 40px;
  }
  .pagination {
    gap: 6px;
  }
  .pagination-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  /* -----------------------------------------
     BLOG LISTING — DIVIDERS
     ----------------------------------------- */
  .curve-divider svg,
  .curve-divider-inv svg {
    height: 30px;
  }

  /* -----------------------------------------
     BLOG POST — ARTICLE HEADER
     ----------------------------------------- */
  .article-header {
    padding: 100px 0 40px;
  }
  .article-header-content {
    padding: 0 16px;
  }
  .article-header-content h1 {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .category-pill {
    font-size: 10px;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  /* -----------------------------------------
     BLOG POST — AUTHOR CARD
     ----------------------------------------- */
  .author-card {
    padding: 10px 18px;
    gap: 10px;
  }
  .author-card img {
    width: 34px;
    height: 34px;
  }
  .author-meta .name {
    font-size: 13px;
  }
  .author-meta .date {
    font-size: 12px;
  }
  .reading-time {
    display: none;
  }

  /* -----------------------------------------
     BLOG POST — FEATURED IMAGE
     ----------------------------------------- */
  .featured-image {
    max-height: 260px;
  }
  .featured-image img {
    height: 260px;
  }

  /* -----------------------------------------
     BLOG POST — ARTICLE CONTENT
     ----------------------------------------- */
  .article-body {
    padding: 32px 0 40px;
  }
  .article-content {
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.65;
  }
  .article-content p {
    margin-bottom: 20px;
  }
  .article-content h2 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 16px;
  }
  .article-content blockquote {
    margin: 24px 0;
    padding: 20px 20px;
    font-size: 15px;
    border-radius: 0 10px 10px 0;
  }
  .article-content ul {
    margin: 20px 0;
  }
  .article-content ul li {
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .article-content .drop-cap::first-letter {
    font-size: 52px;
    margin-right: 8px;
  }

  /* -----------------------------------------
     BLOG POST — POST NAVIGATION
     ----------------------------------------- */
  .post-nav {
    padding: 0 0 40px;
  }
  .post-nav-inner {
    grid-template-columns: 1fr;
    padding: 24px 16px 0;
    gap: 12px;
  }
  .post-nav-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .post-nav-card .direction {
    font-size: 11px;
    gap: 6px;
  }
  .post-nav-card .nav-title {
    font-size: 15px;
  }
  .post-nav-card.next {
    text-align: left;
  }
  .post-nav-card.next .direction {
    justify-content: flex-start;
  }

  /* -----------------------------------------
     BLOG POST — RELATED POSTS
     ----------------------------------------- */
  .related-posts {
    padding: 0 0 48px;
  }
  .related-posts-inner {
    padding: 0 16px;
  }
  .related-posts-heading {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .related-card-img {
    height: 120px;
  }
  .related-card-img img {
    height: 120px;
  }
  .related-card-body {
    padding: 14px;
  }
  .related-card-body .cat-pill {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .related-card-body h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .related-card-body p {
    font-size: 12px;
  }

}
