/* ============================================================================
   Blog Listing & Blog Detail Styles
   Follows the existing Dr. R. Anirudh Kumar design system in styles.css
   ============================================================================ */

/* Listing Section */
.blog-listing-section {
  padding: 60px 0 80px;
  background:
    radial-gradient(1100px 380px at 50% -10%, rgba(199, 164, 106, 0.10), transparent 60%),
    linear-gradient(180deg, var(--primary-bg) 0%, #f3ede2 100%);
}

.blog-controls {
  margin-bottom: 42px;
}

.blog-search-wrap {
  max-width: 560px;
  margin: 0 auto 28px;
}

.blog-filters {
  margin: 0 auto 18px;
}

.blog-results-meta {
  text-align: center;
  font-family: var(--alt-sans);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Blog Card (mirrors .t-card & .v-card luxury styling) */
.blog-card {
  background: var(--white-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--luxury-gold);
}

.blog-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: var(--secondary-bg);
}

.blog-card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-media img {
  opacity: 0.95;
}

.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(46, 58, 47, 0.86);
  backdrop-filter: blur(6px);
  color: #FAF7F2;
  border: 1px solid rgba(199, 164, 106, 0.45);
  font-family: var(--alt-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--alt-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-taupe);
  margin-bottom: 10px;
}

.blog-meta-dot {
  opacity: 0.6;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--primary-text);
  margin-bottom: 10px;
}

.blog-card-title a {
  color: inherit;
  transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title a {
  color: var(--luxury-gold);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-more {
  font-family: var(--alt-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--luxury-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.blog-card:hover .blog-read-more {
  color: var(--warm-taupe);
  gap: 12px;
}

/* Pagination */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-page-btn {
  font-family: var(--alt-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  min-width: 44px;
  border-radius: 999px;
  background: var(--white-card);
  color: var(--primary-text);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.blog-page-btn:hover:not(:disabled) {
  border-color: var(--luxury-gold);
  color: var(--luxury-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.blog-page-btn.is-active {
  background: linear-gradient(135deg, var(--luxury-gold), var(--warm-taupe));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.blog-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Loading Skeletons & State Boxes */
.blog-skeleton-card {
  background: var(--white-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
}

.skeleton-media,
.skeleton-line {
  background: linear-gradient(90deg, var(--secondary-bg) 25%, #ebe4d8 50%, var(--secondary-bg) 75%);
  background-size: 200% 100%;
  animation: blogShimmer 1.4s infinite linear;
}

.skeleton-media {
  aspect-ratio: 16 / 10;
  width: 100%;
}

.skeleton-media.large {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  margin: 24px 0 32px;
}

.skeleton-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  width: 100%;
}

.skeleton-line.short { width: 38%; height: 12px; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.title { height: 24px; width: 90%; }

@keyframes blogShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.blog-state-box {
  grid-column: 1 / -1;
  background: var(--white-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 56px 28px;
  text-align: center;
  max-width: 620px;
  margin: 10px auto;
  box-shadow: var(--shadow-sm);
}

.blog-state-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-bg);
  color: var(--luxury-gold);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.blog-state-box h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.blog-state-box p {
  font-size: 0.98rem;
  margin-bottom: 24px;
}

/* ============================================================================
   Blog Detail Page
   ============================================================================ */
.blog-detail-section {
  padding: 44px 0 70px;
  background: var(--primary-bg);
}

.blog-article-shell {
  max-width: 860px;
  margin: 0 auto;
}

.blog-detail-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.blog-back-link {
  font-family: var(--alt-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white-card);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.blog-back-link:hover {
  border-color: var(--luxury-gold);
  color: var(--luxury-gold);
  transform: translateX(-2px);
}

.blog-detail-breadcrumb {
  margin-bottom: 0;
}

.blog-article-header {
  margin-bottom: 30px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--alt-sans);
  font-size: 0.86rem;
  color: var(--muted);
}

.blog-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--secondary-bg);
  border: 1px solid rgba(199, 164, 106, 0.45);
  color: var(--warm-taupe);
  font-family: var(--alt-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-article-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--primary-text);
  margin-bottom: 16px;
}

.blog-article-lead {
  font-size: 1.12rem;
  line-height: 1.74;
  color: var(--muted);
  width: 100%;
  margin-bottom: 24px;
  text-align: justify;
  text-justify: inter-word;
}

.blog-featured-media {
  margin: 0 0 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: var(--secondary-bg);
  width: 100%;
}

.blog-featured-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Rich-text Article Content (.blog-prose) */
.blog-prose {
  color: var(--primary-text);
  font-size: 1.06rem;
  line-height: 1.82;
  width: 100%;
}

.blog-prose > *:first-child {
  margin-top: 0;
}

.blog-prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 500;
  margin: 44px 0 16px;
  color: var(--primary-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-prose h3 {
  font-family: var(--serif);
  font-size: 1.38rem;
  font-weight: 600;
  margin: 32px 0 14px;
  color: var(--primary-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-prose p {
  color: var(--ink);
  opacity: 0.94;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.82;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.blog-prose strong,
.blog-prose b {
  font-weight: 700;
  color: var(--primary-text);
}

.blog-prose ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.blog-prose ul li {
  position: relative;
  padding-left: 26px;
  margin: 0;
  color: var(--ink);
  opacity: 0.94;
  font-size: 1.05rem;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.blog-prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--luxury-gold);
  flex-shrink: 0;
}

.blog-prose ol {
  list-style: none;
  counter-reset: blog-ol-counter;
  padding: 0;
  margin: 18px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.blog-prose ol li {
  counter-increment: blog-ol-counter;
  position: relative;
  padding-left: 32px;
  margin: 0;
  color: var(--ink);
  opacity: 0.94;
  font-size: 1.05rem;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.blog-prose ol li::before {
  content: counter(blog-ol-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--luxury-gold);
  font-family: var(--alt-sans);
}

.blog-prose a {
  color: var(--accent-green);
  text-decoration: underline;
  text-decoration-color: rgba(199, 164, 106, 0.7);
  text-underline-offset: 3px;
  font-weight: 500;
}

.blog-prose a:hover {
  color: var(--luxury-gold);
}

.blog-prose blockquote {
  margin: 34px 0;
  padding: 24px 30px;
  background: var(--secondary-bg);
  border-left: 4px solid var(--luxury-gold);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.62;
  color: var(--primary-text);
  width: 100%;
  box-sizing: border-box;
}

.blog-prose img {
  border-radius: 14px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 100%;
  height: auto;
}

.blog-prose figure {
  margin: 28px 0;
  width: 100%;
}

.blog-prose figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* Infographic in Article */
.blog-infographic-wrap {
  margin: 40px auto;
  width: 100%;
  max-width: 760px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: var(--white-card);
}

.blog-infographic-wrap img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* In-Article CTA Box */
.blog-cta-box {
  margin: 44px 0 28px;
  padding: 34px 32px;
  border-radius: 18px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--luxury-gold);
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.blog-cta-box h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: var(--primary-text);
  text-align: left;
}

.blog-cta-box p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  text-align: left;
}

.breadcrumb-current {
  color: var(--primary-text);
  max-width: 48ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}

/* Social Share Bar */
.blog-share-bar {
  margin-top: 44px;
  padding: 22px 26px;
  background: var(--white-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.blog-share-label {
  font-family: var(--alt-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.blog-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--primary-bg);
  color: var(--primary-text);
  font-family: var(--alt-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-share-btn:hover {
  background: var(--luxury-gold);
  border-color: var(--luxury-gold);
  color: #fff;
  transform: translateY(-2px);
}

.blog-share-btn.is-copied {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.blog-detail-bottom-nav {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Related Articles Section */
.blog-related-section {
  background: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 80px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .blog-listing-section {
    padding: 44px 0 64px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-body {
    padding: 20px 20px 22px;
  }

  .blog-share-bar {
    padding: 18px 20px;
  }

  .blog-detail-bottom-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-detail-bottom-nav .btn {
    justify-content: center;
  }

  .blog-prose blockquote {
    padding: 18px 20px;
    font-size: 1.15rem;
  }

  .blog-article-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .blog-article-lead {
    font-size: 1.02rem;
    text-align: left;
    text-justify: auto;
  }

  .blog-prose {
    font-size: 1rem;
    line-height: 1.76;
  }

  .blog-prose p {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: left;
    text-justify: auto;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .blog-prose h2 {
    font-size: 1.45rem;
    margin: 34px 0 14px;
    text-align: left;
  }

  .blog-prose h3 {
    font-size: 1.25rem;
    margin: 26px 0 12px;
    text-align: left;
  }

  .blog-prose ul,
  .blog-prose ol {
    gap: 12px;
    margin: 14px 0 22px 0;
  }

  .blog-prose ul li {
    padding-left: 22px;
    font-size: 0.98rem;
    line-height: 1.72;
    text-align: left;
    text-justify: auto;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .blog-prose ul li::before {
    left: 4px;
    top: 0.65em;
    width: 5px;
    height: 5px;
  }

  .blog-prose ol li {
    padding-left: 26px;
    font-size: 0.98rem;
    line-height: 1.72;
    text-align: left;
    text-justify: auto;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .blog-cta-box {
    padding: 24px 20px;
  }
}

