/* ============================================================
   CUBES STUDIO BLOG STYLES
   Additive stylesheet — loaded alongside css/style.css.
   Does not modify or duplicate anything in style.css.
   ============================================================ */

/* ===== MODERN BLOG STYLES ===== */

/* Blog Hero Section */
.blog-hero-modern {
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-subtle) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.blog-hero-inner {
  max-width: 90rem;
  margin: 0 auto;
}

.blog-hero-modern h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: var(--letter-spacing-tight);
  /* Added rise-up animation */
  animation: fadeInUp 0.8s ease-out both; 
}

.blog-hero-modern p {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--foreground-muted);
  max-width: 60rem;
  margin: 0 auto;
  /* Added rise-up animation with a slight delay */
  animation: fadeInUp 0.8s ease-out 0.2s both; 
}

/* Blog Section Container */
.blog-section-modern {
  padding: 4rem 2rem;
}

.blog-container-modern {
  max-width: 90rem;
  margin: 0 auto;
}

/* Filter Bar */
.blog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
  /* Staggered entrance animation */
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.category-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9375rem;
  color: var(--foreground);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: left 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(204, 34, 34, 0.15);
}

.tab-btn.active::before {
  left: 0;
}

/* Sort Dropdown */
.sort-dropdown {
  position: relative;
}

.sort-select {
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.sort-select:hover {
  border-color: var(--primary);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 34, 34, 0.1);
}

/* Blog Grid */
.blog-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: cardFadeIn 0.6s ease backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.15s; }
.blog-card:nth-child(5) { animation-delay: 0.25s; }
.blog-card:nth-child(6) { animation-delay: 0.35s; }
.blog-card:nth-child(7) { animation-delay: 0.2s; }
.blog-card:nth-child(8) { animation-delay: 0.3s; }
.blog-card:nth-child(9) { animation-delay: 0.4s; }

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

/* Card Image */
.card-image-wrapper {
  position: relative;
   width: 100%;
  height: 220px; /* Adjust height to match your desired card image height */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--background-subtle);
}

.card-image {
    
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop image cleanly without distortion */
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-image {
  transform: scale(1.08);
}

/* Gradient Placeholders */
.card-image.grad-1 {
  background: linear-gradient(135deg, #f5d5c8 0%, #e8c4b6 50%, #dbb3a4 100%);
}

.card-image.grad-2 {
  background: linear-gradient(135deg, #d4e4f7 0%, #c1d8f0 50%, #aecbe9 100%);
}

.card-image.grad-3 {
  background: linear-gradient(135deg, #f0e4d8 0%, #e3d2c6 50%, #d6c0b4 100%);
}

.card-image.grad-4 {
  background: linear-gradient(135deg, #e8d8f0 0%, #dbc6e3 50%, #ceb4d6 100%);
}

.card-image.grad-5 {
  background: linear-gradient(135deg, #d8f0e4 0%, #c6e3d6 50%, #b4d6c8 100%);
}

.card-image.grad-6 {
  background: linear-gradient(135deg, #f0d8d8 0%, #e3c6c6 50%, #d6b4b4 100%);
}

.card-image.grad-7 {
  background: linear-gradient(135deg, #f0e8d8 0%, #e3dcc6 50%, #d6d0b4 100%);
}

.card-image.grad-8 {
  background: linear-gradient(135deg, #d8e8f0 0%, #c6dce3 50%, #b4d0d6 100%);
}

.card-image.grad-9 {
  background: linear-gradient(135deg, #e4d8f0 0%, #d7c6e3 50%, #cab4d6 100%);
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  z-index: 10;
  animation: badgeSlideIn 0.4s ease 0.2s backwards;
}

@keyframes badgeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.category-badge.design {
  background: rgba(204, 34, 34, 0.9);
  color: white;
}

.category-badge.construction {
  background: rgba(100, 100, 100, 0.9);
  color: white;
}

.category-badge.sustainability {
  background: rgba(76, 175, 80, 0.9);
  color: white;
}

.category-badge.tips {
  background: rgba(33, 150, 243, 0.9);
  color: white;
}

/* Card Body */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.card-meta .author {
  font-weight: 500;
  color: var(--foreground);
}

.card-meta .dot {
  opacity: 0.5;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 0.875rem;
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-tight);
}

.card-excerpt {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  font-weight: 300;
}

.continue-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--foreground);
  color: white;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  width: fit-content;
}

.continue-btn:hover {
  background: var(--primary);
  transform: translateX(4px);
}

/* Newsletter Section */
.blog-newsletter-modern {
  background: var(--background-subtle);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.newsletter-inner {
  max-width: 90rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--foreground);
  margin-bottom: 1rem;
  letter-spacing: var(--letter-spacing-tight);
}

.newsletter-inner p {
  font-size: 1rem;
  color: var(--foreground-muted);
  margin-bottom: 2rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form-modern {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

.form-group input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: var(--foreground-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 34, 34, 0.1);
}

.newsletter-submit {
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: hsl(0, 90%, 28%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 34, 34, 0.2);
}

.privacy-note {
  font-size: 0.8125rem;
  color: var(--foreground-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .blog-hero-modern h1 {
    font-size: 2.25rem;
  }

  .newsletter-form-modern {
    flex-direction: column;
  }

  .form-group {
    flex-direction: column;
  }

  .newsletter-submit {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-section-modern {
    padding: 2rem 1rem;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .category-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sort-dropdown {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .blog-grid-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-modern h1 {
    font-size: 2rem;
  }

  .blog-hero-modern {
    padding: 4rem 1rem 3rem;
  }

  .newsletter-inner h2 {
    font-size: 1.75rem;
  }

  .form-group {
    flex-direction: column;
  }

  .newsletter-submit {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .blog-container-modern {
    padding: 0;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-body {
    padding: 1.5rem;
  }
}

/* ===== BLOG POST DETAIL PAGE STYLES ===== */

.blog-post-article {
  background: var(--background);
}

.post-container {
  max-width: 70rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Back Link */
.back-to-blog {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  color: var(--foreground);
  transform: translateX(-4px);
}

/* Post Header */
.post-header {
  margin-bottom: 3rem;
}

.post-category-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.post-category-tag.design {
  background: rgba(204, 34, 34, 0.1);
  color: var(--primary);
}

.post-category-tag.construction {
  background: rgba(100, 100, 100, 0.1);
  color: #666;
}

.post-category-tag.sustainability {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.post-category-tag.tips {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
}

.post-subtitle {
  font-size: 1.25rem;
  color: var(--foreground-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.post-info {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--foreground-muted);
  flex-wrap: wrap;
}

.post-meta .author-name {
  color: var(--foreground);
  font-weight: 500;
}

.post-meta .dot {
  opacity: 0.5;
}

/* Featured Image */
.post-featured-image {
  margin: 3rem 0 4rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  animation: imageSlideUp 0.8s ease;
}

@keyframes imageSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-placeholder {
  width: 100%;
  height: 100%;
}

.featured-grad-1 {
  background: linear-gradient(135deg, #f5d5c8 0%, #e8c4b6 50%, #dbb3a4 100%);
}

.featured-grad-2 {
  background: linear-gradient(135deg, #d4e4f7 0%, #c1d8f0 50%, #aecbe9 100%);
}

/* Post Content */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--foreground);
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 300;
  color: var(--foreground);
  margin: 2.5rem 0 1.5rem;
  letter-spacing: var(--letter-spacing-tight);
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--foreground);
  margin: 2rem 0 1rem;
  letter-spacing: var(--letter-spacing-tight);
}

.post-content h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin: 1.75rem 0 0.875rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.post-content strong {
  font-weight: 500;
  color: var(--foreground);
}

.post-content em {
  font-style: italic;
  color: var(--foreground-muted);
}

/* Content Table */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.9375rem;
}

.content-table th,
.content-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.content-table th {
  background: var(--background-subtle);
  font-weight: 500;
  color: var(--foreground);
  font-family: var(--font-serif);
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:hover {
  background: var(--background-subtle);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--background-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 4rem 0;
  animation: bioSlideUp 0.8s ease 0.2s backwards;
}

@keyframes bioSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-details h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: var(--foreground-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: 0.875rem;
  display: block;
}

.author-details p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--foreground);
  margin: 0;
}

/* Related Articles Section */
.related-articles-section {
  background: var(--background-subtle);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.related-articles-section .post-container {
  padding: 0;
}

.related-articles-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--foreground);
  margin-bottom: 3rem;
  letter-spacing: var(--letter-spacing-tight);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.related-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  animation: cardFadeIn 0.6s ease backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.related-card:nth-child(1) { animation-delay: 0.1s; }
.related-card:nth-child(2) { animation-delay: 0.2s; }
.related-card:nth-child(3) { animation-delay: 0.3s; }

.related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.related-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--background-subtle);
}

.related-image {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-image {
  transform: scale(1.08);
}

.grad-2 {
  background: linear-gradient(135deg, #d4e4f7 0%, #c1d8f0 50%, #aecbe9 100%);
}

.grad-5 {
  background: linear-gradient(135deg, #d8f0e4 0%, #c6e3d6 50%, #b4d6c8 100%);
}

.grad-6 {
  background: linear-gradient(135deg, #f0d8d8 0%, #e3c6c6 50%, #d6b4b4 100%);
}

/* Related Card Body */
.related-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.related-meta .author {
  font-weight: 500;
  color: var(--foreground);
}

.related-meta .dot {
  opacity: 0.5;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-excerpt {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  font-weight: 300;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  width: fit-content;
}

.related-link:hover {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
  .post-container {
    padding: 3rem 1.5rem;
  }

  .post-title {
    font-size: 2.25rem;
  }

  .post-featured-image {
    margin: 2rem 0 3rem;
  }

  .author-bio {
    gap: 1.5rem;
    padding: 2rem;
  }

  .author-avatar {
    width: 100px;
    height: 100px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .related-articles-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .post-container {
    padding: 2rem 1rem;
  }

  .post-title {
    font-size: 1.875rem;
  }

  .post-subtitle {
    font-size: 1.0625rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .post-content h3 {
    font-size: 1.1875rem;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .author-details {
    text-align: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-articles-section {
    padding: 2rem 1rem;
  }

  .related-articles-section .post-container {
    padding: 0;
  }
}

/* ===== ADDITIONAL GRADIENT CLASSES (Featured images, posts 1-9) ===== */

.featured-grad-1 { background: linear-gradient(135deg, #f5d5c8 0%, #e8c4b6 50%, #dbb3a4 100%); }
.featured-grad-2 { background: linear-gradient(135deg, #d4e4f7 0%, #c1d8f0 50%, #aecbe9 100%); }
.featured-grad-3 { background: linear-gradient(135deg, #f0e4d8 0%, #e3d2c6 50%, #d6c0b4 100%); }
.featured-grad-4 { background: linear-gradient(135deg, #e8d8f0 0%, #dbc6e3 50%, #ceb4d6 100%); }
.featured-grad-5 { background: linear-gradient(135deg, #d8f0e4 0%, #c6e3d6 50%, #b4d6c8 100%); }
.featured-grad-6 { background: linear-gradient(135deg, #f0d8d8 0%, #e3c6c6 50%, #d6b4b4 100%); }
.featured-grad-7 { background: linear-gradient(135deg, #f0e8d8 0%, #e3dcc6 50%, #d6d0b4 100%); }
.featured-grad-8 { background: linear-gradient(135deg, #d8e8f0 0%, #c6dce3 50%, #b4d0d6 100%); }
.featured-grad-9 { background: linear-gradient(135deg, #e4d8f0 0%, #d7c6e3 50%, #cab4d6 100%); }

/* Related card gradients (full set 1-9, matches main grid) */
.grad-1 { background: linear-gradient(135deg, #f5d5c8 0%, #e8c4b6 50%, #dbb3a4 100%); }
.grad-2 { background: linear-gradient(135deg, #d4e4f7 0%, #c1d8f0 50%, #aecbe9 100%); }
.grad-3 { background: linear-gradient(135deg, #f0e4d8 0%, #e3d2c6 50%, #d6c0b4 100%); }
.grad-4 { background: linear-gradient(135deg, #e8d8f0 0%, #dbc6e3 50%, #ceb4d6 100%); }
.grad-5 { background: linear-gradient(135deg, #d8f0e4 0%, #c6e3d6 50%, #b4d6c8 100%); }
.grad-6 { background: linear-gradient(135deg, #f0d8d8 0%, #e3c6c6 50%, #d6b4b4 100%); }
.grad-7 { background: linear-gradient(135deg, #f0e8d8 0%, #e3dcc6 50%, #d6d0b4 100%); }
.grad-8 { background: linear-gradient(135deg, #d8e8f0 0%, #c6dce3 50%, #b4d0d6 100%); }
.grad-9 { background: linear-gradient(135deg, #e4d8f0 0%, #d7c6e3 50%, #cab4d6 100%); }

/* ===== AUTHOR AVATAR (initials, no image dependency) ===== */

.author-avatar-initials {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(0, 90%, 24%) 100%);
}

@media (max-width: 768px) {
  .author-avatar-initials {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    font-size: 1.875rem;
  }
}

/* ===== SOURCE NOTE (small citation-style footer note on data-driven posts) ===== */

.source-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--foreground-muted);
  font-style: italic;
}

/* ============================================================
   COMPATIBILITY: older post content used slightly different
   list/table class names. Map them to the same styling so
   every post looks consistent regardless of which template
   generation it was written in.
   ============================================================ */

.post-content .blog-list,
.post-content ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.post-content .blog-list li,
.post-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 300;
  line-height: 1.7;
}

.post-content .blog-list li::before,
.post-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.post-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
}

.post-content ol li {
  margin-bottom: 0.75rem;
}

.post-content .blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.9375rem;
}

.post-content .blog-table th,
.post-content .blog-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.post-content .blog-table th {
  background: var(--background-subtle);
  font-weight: 500;
  color: var(--foreground);
  font-family: var(--font-serif);
}