/* Blog Specific Styles */

/* Blog Page Styles */
.blog-title {
  /*font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;*/
  /*text-align: center;*/
}

 h1 {
  /*font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;

  letter-spacing: -.1rem;*/

}
 h2 {font-size: 2.6rem; color: #f25; line-height: 3.4rem;}
 h3 { font-size: 1.8rem; margin: 2.3rem 0 1rem;line-height: 2.5rem;}
 h4 {font-size: 1.3rem; margin: 1rem 0 .5rem; font-weight: 500; color: #444;}
 h5 {}
 h6 {}
/* p {margin: 0 0 .3rem;}*/
 strong {font-weight: 600;}

 .full-header .container {
  padding: 0 5rem;
}

  .post-full-hero {
    /*top: -5rem;*/
    position: relative;
    z-index: 0;
  }
    
  .post-full-hero #breadcrumbs {

    overflow: auto;
    clear: both;
    display: block;
    z-index: 5;
    top: 0rem;
    background-color:initial;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
  }

  .post-full-hero #breadcrumbs .container {
    padding: 0;
  }



  .post-full-hero .info {
    max-width: 1120px;
    margin: auto;
    padding: 4rem 0rem 5rem;
    color: #fff;
    z-index: 5;
    position: relative;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  }

.full-header .info {
    
}


.article-content {
  flex: 1;
  min-width: 0; /* Prevents flex item from overflowing */
  padding: 1rem 3rem 0;
}



.fluid-fixed {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 3rem;
    gap: 2rem;
    padding:2rem 3rem;
    position: relative;
    /*border: 1px solid;*/
}

.post-full-hero .article-content{
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  position: relative;
}

/* TTS Controls positioning for post pages */
.fluid-fixed .article-content {
  position: relative;
}

.fluid-fixed .article-content .tts-controls {
  position: sticky;
  top: 10px;
  justify-self: right;
  clear: both;
  margin-top: -20px;
  margin-right: -70px;
  /* margin-bottom: 1rem; */
  margin-left: 1rem;
  z-index: 7;
}

.fluid-fixed .article-content .tts-controls.tts-nav-up {
  top: 12px !important;
}

.fluid-fixed .article-content .tts-controls.tts-nav-down {
  top: 90px !important;
}

.fluid-fixed aside{
  /*min-width: 25%;*/
  padding:0;
  border: initial;
  background: initial;
  /*border: 1px solid #00f;*/
}

@media screen and (max-width: 575px) {
  .fluid-fixed {
    padding:2rem 2rem;
}
}


@media (max-width: 1024px) {

  .full-header .container {
    padding: 0 3rem;
  }

  .fluid-fixed {
  flex-direction: column;
  }

  .fluid-fixed .article-content .tts-controls{margin-right: -30px;}

  .article-content {
    padding: 1rem;
  }

  
  .fluid-fixed aside{
    /*display: none;*/
    max-width: 100%;
  }

}

@media (max-width: 768px) {

   h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 3.4rem;}
   h2 {font-size: 1.9rem; color: #f25; line-height: 2.5rem;}
   h3 { font-size: 1.3rem; margin: 2.3rem 0 1rem; line-height: 1.8rem;}
   h4 {font-size: 1rem; margin: 1rem 0 .5rem; font-weight: 500; }
   h5 {}
   h6 {}
   p {margin: 0 0 .8rem;}


  .blog-title,
   .article-title {
    font-size: 2rem;
  }

} /* End Max 768 */


@media (max-width: 510px) {

  .article-content {
    padding: 0rem;
  }

}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  position: initial;
  height: auto;
}

.blog-filters {
  margin-bottom: 3rem;
  text-align: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.filter-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #6c757d;
  padding: 0.5rem 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0px;
  text-shadow: initial;
}

.filter-btn:hover,
.filter-btn.active {
  background: #f25;
  color: #fff;
  border-color: #f25;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #e0e0e0;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image-empty {
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.category-tag {
  color: #888;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  background: transparent !important;
  border-color: transparent !important;
  padding: .5rem .5rem .5rem .0rem;
  line-height: .3rem;
  margin: 0;
}




.category-tag:hover {
  background: #4e00f0;
  color: #f25;
  transform: translateY(-1px);
}

.category-tag.active {
  /*background: #f21;*/
  color: #f25;
}

.article-date {
  color: #6c757d;
  font-size: 0.85rem;
}

.card-title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: #f25;
}

.card-excerpt {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: .5rem;
  flex: 1;
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: auto;
  padding: 0;
}

.author {
  font-weight: 500;
}

.read-time {
  color: #6c757d;
}

/* Featured Content Styles */
.featured-content {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #f0f0f0;
}

.featured-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid #e9ecef;
}

.featured-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.featured-card h3 a {
  color: #4e00f0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-card h3 a:hover {
  color: #3a00c7;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.featured-tags .tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Blog Post Styles */
 .article-title {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.2;
}

 .article-single {
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #555;*/
}

.article-content .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

 .article-header {
  /*text-align: center;*/
  margin:1rem auto;
  /*border-bottom: 1px solid #f0f0f0;*/
  position: initial;
  height: auto;
  box-shadow: none;
  width: auto;
  /*border: 1px solid #f55;*/
  padding-top: 20px;
  max-width: 860px;
}

 .article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

 .article-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

 .article-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c757d;
}

 .article-featured-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

 .article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}


 .blog-post .article-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin: 2rem auto;
  max-width: 860px;
  /*border: 1px solid #5f5;*/
}

 .article-footer {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  background: initial;
}

 .article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
 .article-tags strong{margin-right: 0.3rem;}

 .tag {
  background: #fff;
  color: #555;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  /*margin-right: 0.5rem;*/
  margin-bottom: 0.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
      border: 1px solid #ddd;
}

 .tag:hover {
  background: #f25;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  border-color:#f25;
}

/* Related Articles */
 .related-articles {
  margin: 1rem 0 3rem 0;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

 .related-articles h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #333;
}

 .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

 .related-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

 .related-card:hover {
  transform: translateY(-2px);
}

 .related-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

 .related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 .related-content {
  padding: 1.5rem;
}

.related-card p {
    font-size: .95rem;
}

 .related-category {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

 .related-category .tag {
  font-size: 0.75rem;
    padding: 1px 17px;
    text-transform: capitalize;
}

 .related-title {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

 .related-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

 .related-title a:hover {
  color: #4e00f0;
}

 .related-date {
  font-size: 0.85rem;
  color: #6c757d;
}

/* CTA and Navigation Styles */
 .cta-section {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.cta-section h3,
.cta-section h4 {
  margin-top: 0;
}

.cta-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  margin-right: 0.3em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cta-icon-audit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H2v7l6.29 6.29c.94.94 2.48.94 3.42 0l3.58-3.58c.94-.94.94-2.48 0-3.42L9 5Z'/%3E%3Cpath d='M6 9.01V9'/%3E%3Cpath d='m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19'/%3E%3C/svg%3E");
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn.primary::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

 .cta-section .btn {
  margin: 0;
}

 .navigation-links {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
}

 .navigation-links .btn {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {

  
  .blog-grid,
   .related-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    justify-content: flex-start;
  }
  
   .cta-section {
    flex-direction: column;
  }



}

/* Blog List Layout Styles */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.blog-list-item {
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #f25;
  padding: 2rem;
  padding-left: 4.5rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

/* Parent Article Icon (Folder) */
.blog-list-item::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Sub Article (Child) Styling */
.blog-list-item.sub {
  margin-left: 2rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-left: 3px solid #ddd;
  padding-left: 2rem;
}

.blog-list-item.sub::before {
  display: none;
}

.blog-list-item.sub:hover {
  border-color: #ddd;
  border-left-color: #ccc;
  transform: translateX(2px);
  
}

.blog-list-item.sub .list-item-title {
  font-size: 1.4rem;
  color: #555;
  position: relative;
  padding-left: 2rem;
}

.blog-list-item.sub .list-item-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 10 20 15 15 20'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.blog-list-item.sub:hover .list-item-title {
  color: #f25;
}

.blog-list-item.sub:hover .list-item-title::before {
  opacity: 1;
}

/* Parent Category Link (for sub articles) */

.parent-category-link a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #777;
  text-decoration: none;
  font-weight: 500;
  /* transition: color 0.2s ease; */
  line-height: normal;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.parent-category-link a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.parent-category-link a:hover {
  color: #f25;
  text-decoration: none;
  border-color: #ff225566;
}

.list-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}

.list-item-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-item-title a:hover {
  color: #f25;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.sub .list-item-meta {
  border-bottom: 1px solid #e5e5e5;
}

.list-item-excerpt {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.list-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
  padding-top: 0.5rem;
}

.read-more {
  color: #f25;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #333;
  text-decoration: none;
}

.read-more:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .blog-list-item {
    padding: 1.5rem;
    padding-left: 3.5rem;
  }
  
  .blog-list-item::before {
    left: 1rem;
    width: 20px;
    height: 20px;
  }
  
  .blog-list-item.sub {
    margin-left: 1.5rem;
    padding-left: 3.5rem;
  }
  
  .list-item-title {
    font-size: 1.3rem;
  }
  
  .blog-list-item.sub .list-item-title {
    font-size: 1.2rem;
  }
  
  .list-item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Blog Layout with Sidebar - Matches fluid-fixed behavior */
.blog-layout-with-sidebar {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 2rem auto 0;
  align-items: flex-start;
  gap: 2rem;
  padding: 0 2rem;
  min-height: calc(100vh - 140px);
}

.blog-main-content {
  flex: 1;
  min-width: 0;
}

/* Blog Sidebar - Matches docs-toc behavior */
.blog-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 0;
  width: 330px;
  flex-shrink: 0;
  background: initial;
  border-left: initial;
}

.sidebar-sticky {
  padding: 0 10px 0 20px;
}

.sidebar-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #f25;
  padding-bottom: 10px;
}

/* Sidebar Accordion - Matches side-drawer-accordion */
.sidebar-accordion {
  margin-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-accordion .accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease-in-out;
  text-shadow: initial;
  margin: 0 0 10px;
}

.sidebar-accordion .accordion-trigger:hover {
  color: #fff;
}

.sidebar-accordion .accordion-title {
  flex: 1;
  text-align: left;
}

.sidebar-accordion .accordion-icon {
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
}

.sidebar-accordion .accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.sidebar-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0;
}

.sidebar-accordion .accordion-content.active {
  max-height: 1000px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.sidebar-filters {
  margin: 0;
  padding: 10px 0 20px;
}

.sidebar-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.sidebar-filters .filter-btn {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.sidebar-filters .filter-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-filters .filter-btn.active {
  background: #f25;
  color: #fff;
  border-color: #f25;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 34, 85, 0.3);
}

/* Sidebar Articles - Matches blog-articles-container */
.sidebar-articles {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}

.sidebar-articles-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  list-style: none;
  padding: 0;
  border-left: none;
}

.sidebar-article-link {
  display: block;
  padding: 12px 16px;
  background: transparent;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-left: none;
  transform: translateX(0);
}

.sidebar-article-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
  border-left: none;
  transform: translateX(4px);
}

.sidebar-article-link.active {
  background-color: rgba(255, 34, 85, 0.1);
  color: #f25;
  border-left: none;
  transform: translateX(0);
}

/* Mobile: Match fluid-fixed responsive behavior */
@media (max-width: 1024px) {
  .blog-layout-with-sidebar {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .blog-sidebar {
    display: none; /* Hidden on mobile, FAB provides access */
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    margin-top: 2rem;
  }
  
  .articles-fab {
    display: flex;
  }
}

/* Ensure drawer starts hidden */
.side-drawer {
  visibility: hidden !important;
  opacity: 0 !important;
}

.side-drawer.active {
  visibility: visible !important;
  opacity: 1 !important;
}

.cta-section.card {
  border: 1px solid #ccc;
  border-radius: .5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  gap: .5rem;
  margin: 1rem 0;
}



/* Article Series Navigation */
.article-series-nav {
  margin: 2rem 0;
  padding: 2rem;
  /* background: #f8f9fa;
  border-top: 3px solid #f25; */
  border-radius: 8px;
  width: 100%;
  border: 1px solid #ddd;
}

.series-nav-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.series-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.series-nav-grid > div {
  padding: 0.3rem 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
}


.series-nav-grid > div::before {
  content: "";
  position: relative;
  /* left: 0.3rem;
  top: 0.65rem; */
  margin-right: .5rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.series-nav-grid a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: .95rem;
  font-weight: 400;
}

.series-nav-grid a:hover {
  color: #f25;
  text-decoration: none;
}

.series-nav-grid > div:has(a:hover)::before {
  /* opacity: 1; */
}

.series-nav-current {
  color: #f25;
}

.series-nav-current span {
  font-size: .95rem;
  font-weight: 500;
}

.series-nav-grid a.active {
  color: #f25;
  font-weight: 500;
  cursor: default;
}

.series-nav-grid a.active:hover {
  color: #f25;
}

.series-nav-current::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E")!important;
  opacity: 1;
}

.series-nav-current::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .series-nav-grid {
    grid-template-columns: 1fr;
  }
}

.series-nav-back {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.series-nav-back a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: underline;
}

.series-nav-back a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5-7 7 7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.series-nav-back a:hover {
  color: #f25;
}

.series-nav-back a:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5-7 7 7 7'/%3E%3C/svg%3E");
  transform: translateX(-3px);
}

/* Desktop: Hide FAB and drawer only when sidebar is present (blog-minimal-list) */
@media (min-width: 1025px) {
  /* Only hide when there's a visible sidebar */
  .blog-sidebar:not([style*="display: none"]) ~ * .articles-fab,
  section:has(.blog-sidebar) .articles-fab,
  section:has(.blog-sidebar) #articles-side-drawer {
    display: none !important;
  }
}
