/* Blog Page Custom Styles */

.blog-hero {
  margin-bottom: 2.5rem;
  background: #f8fafc;
  padding-bottom: 0;
}

.featured-post-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(99, 102, 241, 0.07),
    0 1.5px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 2.5rem;
  min-height: 320px;
  gap: 0;
}

.featured-post-image {
  flex: 0 0 340px;
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.featured-post-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  border-radius: 16px;
}

.featured-post-content {
  flex: 1 1 0%;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.featured-post-badges {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35em 0.9em;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6366f1;
  margin-right: 0.25em;
}

.badge-featured {
  background: #ede9fe;
  color: #7c3aed;
}

.badge-category {
  background: #d1fae5;
  color: #059669;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.badge-category:hover {
  background: #6ee7b7;
  color: #065f46;
}

.featured-post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #18181b;
  line-height: 1.2;
}

.featured-post-excerpt {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1.25rem;
  max-width: 600px;
}

.featured-post-meta {
  font-size: 0.98rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.featured-read-article {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.85em 2em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
  max-width: 220px;
  width: auto;
  white-space: nowrap;
  text-align: center;
}

.featured-read-article:hover {
  background: #5855eb;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.13);
}

.blog-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}

.category-pill {
  display: inline-block;
  padding: 0.5em 1.4em;
  border-radius: 999px;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.category-pill.active,
.category-pill:hover {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

@media (max-width: 900px) {
  .featured-post-card {
    flex-direction: column;
    min-height: unset;
  }
  .featured-post-image {
    flex: none;
    min-height: 180px;
    width: 100%;
  }
  .featured-post-content {
    padding: 2rem 1.2rem 2rem 1.2rem;
  }
  .featured-read-article {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .featured-post-title {
    font-size: 1.3rem;
  }
  .featured-post-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .blog-category-bar {
    gap: 0.4rem;
    margin-bottom: 1.2rem;
  }
}

/* --- Single Post Page Enhancements --- */

.post-share {
  margin: 2.5rem 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.2em;
  font-size: 1rem;
}
.post-share span {
  font-weight: 500;
  color: #6366f1;
}
.post-share a {
  display: inline-block;
  background: #f3f4f6;
  color: #6366f1;
  border-radius: 6px;
  padding: 0.4em 1.1em;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  margin-right: 0.2em;
}
.post-share a:hover {
  background: #6366f1;
  color: #fff;
}

/* --- Rose Ann's Custom Author Bio Card --- */
.author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f0f9ff 100%);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.12);
  padding: 3rem;
  margin: 3rem auto 2.5rem auto;
  max-width: 750px;
  justify-content: flex-start;
  flex-wrap: wrap;
  border: 2px solid #e0e7ff;
  position: relative;
  overflow: hidden;
}

.author-bio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  border-radius: 24px 24px 0 0;
}

.author-bio-image {
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.rose-ann-profile-img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: hidden;
}

.rose-ann-profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
}

.rose-ann-profile-placeholder {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  max-width: 100%;
  max-height: 100%;
}
.author-bio-content {
  flex: 1 1 0%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.author-bio-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.1em;
  color: #18181b;
}
.author-bio-role {
  font-size: 1.05rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.author-bio-desc {
  color: #4b5563;
  margin-bottom: 0.7em;
  font-size: 1.56rem;
  line-height: 1.6;
}
.author-bio-socials {
  display: flex;
  gap: 0.8em;
  margin-bottom: 1.2em;
  align-items: center;
  flex-wrap: wrap;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  color: #6366f1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.author-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.author-social-link svg {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.author-social-link:hover {
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.author-social-link:hover::before {
  opacity: 1;
}

.author-social-link:hover svg {
  transform: scale(1.1);
}
.author-bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.8em 2em;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  margin: 0.7em auto 0 auto;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 140px;
  max-width: 200px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.author-bio-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.author-bio-btn:hover {
  background: linear-gradient(90deg, #5855eb 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.16);
  transform: translateY(-2px);
}

.author-bio-btn:hover::before {
  left: 100%;
}
@media (max-width: 900px) {
  .author-bio-card {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }
  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
  }
  .author-bio-content {
    align-items: center;
  }
  .author-bio-socials {
    justify-content: center;
    gap: 0.6em;
  }
  .author-social-link {
    width: 38px;
    height: 38px;
  }
  .author-bio-btn {
    display: inline-flex;
    width: auto;
    min-width: 120px;
    max-width: 180px;
    text-align: center;
    margin-top: 1em;
    padding: 0.7em 1.5em;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .author-bio-card {
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }
  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 16px;
    height: 16px;
    max-width: 100%;
    max-height: 100%;
  }
  .author-bio-socials {
    gap: 0.5em;
  }
  .author-social-link {
    width: 36px;
    height: 36px;
  }
  .author-bio-btn {
    min-width: 100px;
    max-width: 160px;
    padding: 0.6em 1.2em;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .author-bio-card {
    padding: 1.25rem 0.75rem;
    gap: 1rem;
  }
  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 80px;
    height: 80px;
    max-width: 100%;
    max-height: 100%;
  }
  .author-bio-socials {
    gap: 0.4em;
  }
  .author-social-link {
    width: 32px;
    height: 32px;
  }
  .author-bio-btn {
    min-width: 90px;
    max-width: 140px;
    padding: 0.5em 1em;
    font-size: 0.85rem;
  }
}

/* --- Related Articles Section --- */
.related-articles-section {
  margin: 4rem 0 2.5rem 0;
  text-align: center;
}
.related-articles-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #18181b;
}
.related-articles-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.related-article-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.07);
  padding: 2rem 2rem 1.5rem 2rem;
  width: 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.related-article-card:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.13);
  transform: translateY(-6px) scale(1.03);
}
.related-article-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}
.related-article-meta {
  margin-bottom: 0.5em;
}
.related-article-cat {
  display: inline-block;
  background: #d1fae5;
  color: #059669;
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.2em 0.9em;
  margin-bottom: 0.2em;
}
.related-article-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 0.7em;
  min-height: 2.5em;
}
.related-article-info {
  font-size: 0.98rem;
  color: #6b7280;
  margin-bottom: 1.2em;
}
.related-article-btn {
  display: inline-block;
  background: #fff;
  color: #6366f1;
  border: 2px solid #6366f1;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
}
.related-article-btn:hover {
  background: #6366f1;
  color: #fff;
}

@media (max-width: 1100px) {
  .related-articles-grid {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .related-article-card {
    width: 100%;
    max-width: 400px;
  }
}

/* --- Newsletter Signup Section --- */
.newsletter-signup-section {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem 4rem;
  margin-top: 2rem;
  border-radius: 0;
}
.newsletter-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7em;
}
.newsletter-desc {
  font-size: 1.1rem;
  margin-bottom: 2em;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  padding: 0.9em 1.2em;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 60%;
  max-width: 260px;
}
.newsletter-form button {
  background: #fbbf24;
  color: #18181b;
  border: none;
  border-radius: 8px;
  padding: 0.9em 2em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.newsletter-form button:hover {
  background: #f59e0b;
  color: #fff;
}

/* --- Single Post Page Modern Layout --- */

.single-container {
  max-width: 1200px;
  margin: 0 auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.single-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.2rem;
  color: #18181b;
  line-height: 1.15;
  margin-left: 0;
}

.single-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1em;
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.single-featured-image {
  margin: 0 auto 2.2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.09);
  max-width: 100%;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.single-body {
  font-size: 1.18rem;
  color: #23272f;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 1000px;
  margin-left: 0;
}

.single-taxonomy-pills {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: flex-start;
}

.taxonomy-pill {
  display: inline-block;
  padding: 0.4em 1.2em;
  border-radius: 999px;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.taxonomy-pill:hover {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.category-pill {
  background: #d1fae5;
  color: #059669;
}
.category-pill:hover {
  background: #6ee7b7;
  color: #065f46;
}
.tag-pill {
  background: #e0e7ff;
  color: #3730a3;
}
.tag-pill:hover {
  background: #6366f1;
  color: #fff;
}

@media (max-width: 1200px) {
  .single-body {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .single-title {
    font-size: 1.7rem;
  }
  .single-meta-row {
    flex-direction: column;
    gap: 0.5em;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .single-featured-image {
    margin-bottom: 1.2rem;
  }
  .single-taxonomy-pills {
    gap: 0.4em;
    margin-bottom: 1.2rem;
  }
  .single-body {
    padding: 0 0.5rem;
  }
}

/* --- Single Post Page Scan-ability & Structure --- */

.single-article-wrapper {
  max-width: 800px;
  margin: 2.5rem auto 2.5rem auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.07);
  padding: 2.5rem 2.2rem 2.5rem 2.2rem;
}

.breadcrumbs {
  max-width: 800px;
  margin: 2.5rem auto 1.5rem auto;
  font-size: 1rem;
  color: #6b7280;
  padding-left: 2.2rem;
  padding-right: 2.2rem;
  letter-spacing: 0.01em;
}
.breadcrumbs a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: #3730a3;
  text-decoration: underline;
}
.breadcrumbs span {
  color: #18181b;
  font-weight: 600;
}

.single-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.2rem;
  color: #18181b;
  line-height: 1.15;
}

.single-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1em;
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.single-featured-image {
  margin: 0 auto 2.2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.09);
  max-width: 100%;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.single-body {
  font-size: 1.18rem;
  color: #23272f;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

.single-taxonomy-pills {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .single-article-wrapper,
  .breadcrumbs {
    max-width: 100%;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .single-title {
    font-size: 1.3rem;
  }
  .single-meta-row {
    flex-direction: column;
    gap: 0.5em;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .single-featured-image {
    margin-bottom: 1.2rem;
  }
  .single-taxonomy-pills {
    gap: 0.4em;
    margin-bottom: 1.2rem;
  }
  .single-body {
    padding: 0 0.5rem;
  }
}

/* --- Related Articles Carousel: Only 3 visible at a time on desktop, 2 on tablet, 1 on mobile --- */
.related-articles-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-articles-grid.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 960px; /* 3 cards * 320px */
  max-width: 100vw;
  transition: width 0.2s;
}
.related-article-card {
  flex: 0 0 320px;
  max-width: 320px;
}
.related-articles-carousel.arrows-disabled .carousel-arrow {
  display: none !important;
}
@media (max-width: 1100px) {
  .related-articles-grid.carousel-track {
    width: 680px; /* 2 cards * 340px */
  }
  .related-article-card {
    flex: 0 0 340px;
    max-width: 340px;
  }
}
@media (max-width: 700px) {
  .related-articles-grid.carousel-track {
    width: 98vw;
  }
  .related-article-card {
    flex: 0 0 98vw;
    max-width: 98vw;
  }
}

/* --- Main Content Wrapper for Single Post --- */
.single-main-content-wrapper {
  max-width: 1100px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 1200px) {
  .single-main-content-wrapper {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Pagination Styles */
.pagination {
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.75em 1.2em;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #e5e7eb;
}

.pagination .page-numbers:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.pagination .page-numbers.current {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
  padding: 0.75em 0.5em;
}

/* --- Enhanced Breadcrumbs with better accessibility --- */
.breadcrumbs {
  max-width: 800px;
  margin: 2.5rem auto 1.5rem auto;
  font-size: 1rem;
  color: #6b7280;
  padding-left: 2.2rem;
  padding-right: 2.2rem;
  letter-spacing: 0.01em;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #d1d5db;
  font-weight: 300;
}

.breadcrumb-item a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: #3730a3;
  text-decoration: underline;
  background-color: rgba(99, 102, 241, 0.1);
}

.breadcrumb-item.current span {
  color: #18181b;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

/* --- Enhanced Single Article Structure --- */
.single-article-wrapper {
  max-width: 800px;
  margin: 2.5rem auto 2.5rem auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.07);
  padding: 2.5rem 2.2rem 2.5rem 2.2rem;
  position: relative;
  overflow: hidden;
}

.single-article-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
}

.single-article-header {
  margin-bottom: 2rem;
}

.single-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.2rem;
  color: #18181b;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.single-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1em;
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.meta-label {
  font-weight: 600;
  color: #374151;
}

.meta-reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.reading-time-icon {
  color: #6366f1;
  flex-shrink: 0;
}

.single-meta-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Enhanced Featured Image --- */
.project-image {
  margin: 0 auto 2.2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.09);
  max-width: 100%;
  position: relative;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-image:hover img {
  transform: scale(1.02);
}

/* --- Enhanced Content Section --- */
.project-description {
  font-size: 1.18rem;
  color: #23272f;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

.project-description h1,
.project-description h2,
.project-description h3,
.project-description h4,
.project-description h5,
.project-description h6 {
  color: #18181b;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-description h1 {
  font-size: 1.8rem;
}
.project-description h2 {
  font-size: 1.6rem;
}
.project-description h3 {
  font-size: 1.4rem;
}
.project-description h4 {
  font-size: 1.2rem;
}

.project-description p {
  margin-bottom: 1.5rem;
  color: #374151;
}

.project-description ul,
.project-description ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.project-description li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.project-description blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
  background: rgba(99, 102, 241, 0.05);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.project-description code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  color: #dc2626;
}

.project-description pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.project-description pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* --- Enhanced Article Footer --- */
.single-article-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  margin-top: 2rem;
}

.single-taxonomy-pills {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  justify-content: flex-start;
}

/* --- Enhanced Author Bio Card --- */
.author-bio-card {
  max-width: 800px;
  margin: 3rem auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.author-bio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
}

.author-bio-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rose-ann-profile-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  max-height: 100%;
}

.rose-ann-profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
}

.rose-ann-profile-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  max-width: 100%;
  max-height: 100%;
}

.author-bio-content {
  text-align: center;
}

.author-bio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.author-bio-role {
  font-size: 1.1rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-bio-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.author-bio-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.author-social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.author-social-link svg {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.author-social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.author-social-link:hover::before {
  opacity: 1;
}

.author-social-link:hover svg {
  color: white;
}

.author-bio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.author-bio-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.author-bio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.author-bio-btn:hover::before {
  left: 100%;
}

/* --- Enhanced Related Articles --- */
.related-articles-section {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.related-articles-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #18181b;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.related-articles-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  border-radius: 2px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.related-article-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.related-article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.related-article-icon {
  margin-bottom: 1rem;
}

.related-article-meta {
  margin-bottom: 0.75rem;
}

.related-article-cat {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.related-article-title {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.related-article-title a {
  color: #18181b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.related-article-title a:hover {
  color: #6366f1;
}

.related-article-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.related-article-info time {
  font-weight: 500;
}

.related-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.related-article-btn:hover {
  color: #3730a3;
  transform: translateX(4px);
}

/* --- Enhanced Newsletter Section --- */
.newsletter-signup-section {
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  padding: 4rem 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.newsletter-signup-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.newsletter-form input[type="email"] {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: transparent;
  color: #374151;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: #9ca3af;
}

.newsletter-form button {
  background: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.newsletter-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Screen Reader Only Class --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Enhanced Responsive Design --- */
@media (max-width: 900px) {
  .single-article-wrapper,
  .breadcrumbs {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .breadcrumb-list {
    gap: 0.25rem;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin-left: 0.25rem;
  }

  .single-title {
    font-size: 1.8rem;
  }

  .single-meta-row {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1rem;
    align-items: flex-start;
  }

  .project-image {
    margin-bottom: 1.5rem;
  }

  .single-taxonomy-pills {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .project-description {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .author-bio-card {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }

  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
  }

  .author-bio-content {
    text-align: left;
  }

  .author-bio-socials {
    justify-content: flex-start;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .newsletter-signup-section {
    padding: 3rem 1rem;
  }

  .newsletter-title {
    font-size: 1.6rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0;
  }

  .newsletter-form button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .single-article-wrapper {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0.5rem;
  }

  .breadcrumbs {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 1.5rem 0.5rem 1rem 0.5rem;
  }

  .single-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .single-meta-row {
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .meta-reading-time {
    font-size: 0.85rem;
  }

  .project-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .project-description h1 {
    font-size: 1.5rem;
  }
  .project-description h2 {
    font-size: 1.3rem;
  }
  .project-description h3 {
    font-size: 1.2rem;
  }

  .author-bio-card {
    margin: 1.5rem 0.5rem;
    padding: 1.5rem 1rem;
  }

  .author-bio-title {
    font-size: 1.3rem;
  }

  .author-bio-role {
    font-size: 1rem;
  }

  .author-bio-desc {
    font-size: 0.95rem;
  }

  .related-articles-section {
    padding: 0 0.5rem;
    margin: 2rem auto;
  }

  .related-articles-title {
    font-size: 1.5rem;
  }

  .related-article-card {
    padding: 1.25rem;
  }

  .newsletter-signup-section {
    padding: 2.5rem 1rem;
    margin-top: 3rem;
  }

  .newsletter-title {
    font-size: 1.4rem;
  }

  .newsletter-desc {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .single-article-wrapper {
    padding: 1.25rem 0.75rem;
    margin: 1rem 0.25rem;
  }

  .single-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .author-bio-card {
    margin: 1rem 0.25rem;
    padding: 1.25rem 0.75rem;
  }

  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 70px;
    height: 70px;
    max-width: 100%;
    max-height: 100%;
  }

  .author-bio-socials {
    gap: 0.75rem;
  }

  .author-social-link {
    width: 40px;
    height: 40px;
  }

  .related-article-card {
    padding: 1rem;
  }

  .newsletter-signup-section {
    padding: 2rem 0.75rem;
  }

  .newsletter-title {
    font-size: 1.2rem;
  }

  .newsletter-desc {
    font-size: 0.9rem;
  }
}

/* --- Focus States for Accessibility --- */
.breadcrumb-item a:focus,
.author-social-link:focus,
.related-article-title a:focus,
.related-article-btn:focus,
.author-bio-btn:focus,
.newsletter-form button:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced Motion Support --- */
@media (prefers-reduced-motion: reduce) {
  .project-image img,
  .rose-ann-profile-img,
  .author-social-link,
  .author-bio-btn,
  .related-article-card,
  .related-article-btn,
  .newsletter-form button {
    transition: none;
  }

  .author-bio-btn::before,
  .newsletter-form button::before {
    animation: none;
  }
}

/* --- High Contrast Mode Support --- */
@media (prefers-contrast: high) {
  .single-article-wrapper {
    border: 2px solid #000;
  }

  .author-bio-card {
    border: 2px solid #000;
  }

  .related-article-card {
    border: 2px solid #000;
  }

  .newsletter-signup-section {
    border: 2px solid #fff;
  }
}

/* Image fallback and error handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fallback for broken images */
img[src*=""]:not([src*="data:"]):not([src*="blob:"]) {
  min-height: 200px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

img[src*=""]:not([src*="data:"]):not([src*="blob:"])::after {
  content: "📷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #9ca3af;
}

/* Ensure all blog images are properly contained */
.featured-post-image,
.post-thumbnail,
.single-featured-image,
.project-image {
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

/* Mobile responsive image fixes for blog */
@media (max-width: 768px) {
  /* Ensure all blog images are responsive */
  .featured-post-image img,
  .post-thumbnail img,
  .single-featured-image img,
  .project-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block !important;
  }

  /* Fix featured post image container */
  .featured-post-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Fix single post images */
  .single-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Fix project images in content */
  .project-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Ensure content images don't overflow */
  .project-description img,
  .single-body img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 1rem 0;
    float: none !important;
    display: block !important;
  }

  /* Fix for any images that might not be loading properly */
  img[src*=""] {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  /* Additional mobile optimizations for very small screens */
  .featured-post-image img,
  .post-thumbnail img,
  .single-featured-image img,
  .project-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Force all image containers to be responsive */
  .featured-post-image,
  .post-thumbnail,
  .single-featured-image,
  .project-image {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  /* Ensure text doesn't wrap around images */
  .project-description img,
  .single-body img {
    float: none !important;
    margin: 1rem 0 !important;
    width: 100% !important;
    height: auto !important;
  }
}

.author-bio-image {
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.rose-ann-profile-img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: hidden;
}

.rose-ann-profile-placeholder {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7ff 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 900px) {
  .author-bio-image,
  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 600px) {
  .author-bio-image,
  .rose-ann-profile-img,
  .rose-ann-profile-placeholder {
    width: 83px;
    height: 83px;
  }
}
