/* Custom Blog Design System - Mortar Tech Agency */

/* --- CLASSY MINIMAL HORIZONTAL CARD STYLE --- */
.blog-minimal-card {
  display: flex;
  align-items: flex-start; /* Aligns content items to the top naturally */
  gap: 30px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

body.dark .blog-minimal-card {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.blog-minimal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

body.dark .blog-minimal-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.blog-minimal-card .card-img-wrap {
  width: 290px; /* Landscape width */
  height: 220px; /* Landscape height */
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1e2025;
}

.blog-minimal-card .card-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-minimal-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-minimal-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.blog-minimal-card .card-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 222px; /* Match content column to image height exactly! */
  min-width: 0; /* Prevents flexbox content overflow, keeping text contained! */
}

.blog-minimal-card .card-text-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.blog-minimal-card .card-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
}

body.dark .blog-minimal-card .card-meta-line {
  color: #bbb;
}

.blog-minimal-card h4 {
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.45;
  margin: 0 0 12px 0; /* Space below the title */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.7rem; /* Fixes height to exactly 2 lines! */
}

.blog-minimal-card h4 a {
  color: #111215;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark .blog-minimal-card h4 a {
  color: #fff;
}

.blog-minimal-card h4 a:hover {
  color: var(--main-color, #0d6efd);
}

.blog-minimal-card .card-tags-list {
  display: flex;
  flex-wrap: nowrap; /* Force tags to be in a single line */
  gap: 6px;
  overflow-x: auto; /* Enable horizontal scrolling if tags exceed width */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  width: 100%;
}

.blog-minimal-card .card-tags-list::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.blog-minimal-card .card-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color1, #5841D8);
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  white-space: nowrap; /* Prevents text wrap inside badge */
}

body.dark .blog-minimal-card .card-tag-badge {
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.18);
  color: #a496f8;
}

.blog-minimal-card .read-more-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--main-color, #0d6efd);
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto; /* Push to bottom naturally */
}

.blog-minimal-card .read-more-link:hover {
  opacity: 0.85;
}

.blog-minimal-card .read-more-link svg {
  transition: transform 0.3s ease;
}

.blog-minimal-card .read-more-link:hover svg {
  transform: translate(3px, -3px);
}

@media (max-width: 768px) {
  .blog-minimal-card {
    gap: 20px;
    padding: 15px;
  }
  .blog-minimal-card .card-img-wrap {
    width: 230px;
    height: 180px;
  }

}

@media (max-width: 576px) {
  .blog-minimal-card {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    height: auto;
  }
  .blog-minimal-card .card-img-wrap {
    width: 100%;
    height: 220px;
  }

}

/* --- SIDEBAR WIDGETS --- */
.sidebar-widget {
  background: #f1f2f5;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

body.dark .sidebar-widget {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list li a {
  color: #555;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

body.dark .toc-list li a {
  color: #aaa;
}

.toc-list li a:hover {
  color: #000;
  padding-left: 4px;
}

body.dark .toc-list li a:hover {
  color: #fff;
}

.recent-article-item {
  display: flex;
  gap: 15px;
  align-items: center;
  text-decoration: none;
}

.recent-article-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.recent-article-item h6 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 5px;
  color: #111215;
  transition: color 0.3s ease;
}

body.dark .recent-article-item h6 {
  color: #fff;
}

.recent-article-item:hover h6 {
  color: #666;
}

body.dark .recent-article-item:hover h6 {
  color: #ccc;
}

.recent-article-item span {
  font-size: 0.78rem;
  color: #777;
}

body.dark .recent-article-item span {
  color: #999;
}

/* --- AUTHOR CARD --- */
.author-profile-card {
  background: #f1f2f5;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

@media (min-width: 576px) {
  .author-profile-card {
    flex-direction: row;
    align-items: center;
  }
}

body.dark .author-profile-card {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.author-profile-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body.dark .author-profile-card img {
  border-color: #1e2025;
}

.author-profile-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #111215;
}

body.dark .author-profile-card h5 {
  color: #fff;
}

.author-profile-card .author-deg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

body.dark .author-profile-card .author-deg {
  color: #999;
}

.author-profile-card p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 0 !important;
}
/* =============================================
   BLOG DETAIL PAGE — SPACINGS & TYPOGRAPHY
   Inherits .details-content-wrap from theme.
   Only add overrides for blog-specific needs.
   ============================================= */

/* Featured image — clean full-width hero */
.blog-featured-thumb {
  margin-bottom: 45px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

body.dark .blog-featured-thumb {
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.blog-featured-thumb img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Blog tags strip (shown in header meta bar above featured image) */
.blog-detail-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Global tag badge styling (matching blog list card) */
.card-tag-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color1, #5841D8);
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  white-space: nowrap;
}

body.dark .card-tag-badge {
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.18);
  color: #a496f8;
}

/* Headings — inherit theme SUSE font styles */
#blog-details-wrapper h2 {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--title-color);
}

#blog-details-wrapper h2.section-heading-border {
  border-top: 1px solid var(--borders-color, rgba(0, 0, 0, 0.08));
  padding-top: 40px;
  margin-top: 50px;
}

body.dark #blog-details-wrapper h2.section-heading-border {
  border-top-color: rgba(255, 255, 255, 0.08);
}

#blog-details-wrapper h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--title-color);
}

#blog-details-wrapper h4 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--title-color);
}

/* Paragraphs — match .details-content-wrap p with consistent 50px margin-bottom */
#blog-details-wrapper p {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-color);
  margin-bottom: 50px;
  font-weight: 500;
}

/* Info wrap styled exactly like case-study-details.html sidebar */
.case-study-details-info-wrap {
  background: #C1E8CF;
  padding: 50px 40px;
  border-radius: 20px;
  margin-bottom: 25px;
}

@media (max-width: 1399px) {
  .case-study-details-info-wrap {
    padding: 50px 30px;
  }
}

@media (max-width: 576px) {
  .case-study-details-info-wrap {
    padding: 40px 20px;
    border-radius: 15px;
  }
}

body.dark .case-study-details-info-wrap {
  background-color: #252525;
}

.case-study-details-info-wrap .row > div span {
  display: block;
}

/* Sidebar social share block design */
.social-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.social-area h6 {
  color: var(--title-color);
  font-family: var(--font-suse);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 0;
}

.social-area ul.social-link {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-area ul.social-link li a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #F0F0F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title-color);
  transition: 0.5s;
}

.social-area ul.social-link li a:hover {
  background-color: var(--primary-color3);
  color: var(--white-color);
}

body.dark .social-area ul.social-link li a {
  background-color: #2f2f2f;
  color: var(--white-color);
}

body.dark .social-area ul.social-link li a:hover {
  background-color: var(--primary-color3);
}

/* Image captions */
.img-caption {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* Premium metadata stats card styling (matching case study colors and rounded layout) */
.blog-meta-stats-card {
  background: var(--dark-white-color, #f9f9fb);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .blog-meta-stats-card {
  background: #111215;
  border-color: rgba(255, 255, 255, 0.04);
}

.blog-meta-stats-card .stat-item {
  position: relative;
}

@media (min-width: 768px) {
  .blog-meta-stats-card .stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--borders-color, rgba(0, 0, 0, 0.08));
  }
  body.dark .blog-meta-stats-card .stat-item:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.08);
  }
}

.blog-meta-stats-card .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  opacity: 0.7;
  display: block;
  margin-bottom: 6px;
}

.blog-meta-stats-card .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--title-color);
  display: block;
  font-family: var(--font-suse);
}

/* Image inside article */
#blog-details-wrapper .post-thumb {
  margin-top: 0;
  margin-bottom: 50px !important;
  border-radius: 20px;
  overflow: hidden;
}

#blog-details-wrapper .post-thumb img {
  border-radius: 20px;
  width: 100%;
}

/* Main featured image specific overrides */
#blog-details-wrapper .post-thumb.two {
  margin-bottom: 50px !important;
  border-radius: 20px 20px 0 0;
}

#blog-details-wrapper .post-thumb.two img {
  border-radius: 20px 20px 0 0 !important;
  height: 600px !important;
  object-fit: cover !important;
}

/* Image-Text Block */
#blog-details-wrapper .img-text-block {
  margin-top: 0;
  margin-bottom: 50px !important;
  padding: 32px;
  background: var(--dark-white-color, #f9f9fb);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04);
}

body.dark #blog-details-wrapper .img-text-block {
  background: #111215;
  border-color: rgba(255,255,255,0.04);
}

#blog-details-wrapper .img-text-block img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

/* YouTube embed — thumbnail cover with play button */
.blog-youtube-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 50px !important;
  background: #000;
}

.blog-youtube-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.blog-youtube-wrap:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Divider (horizontal section separator line) */
.blog-section-divider {
  border: none;
  border-top: 1px solid var(--borders-color, rgba(0, 0, 0, 0.08));
  margin-top: 50px;
  margin-bottom: 50px !important;
  opacity: 1;
}

body.dark .blog-section-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Spacer */
#blog-details-wrapper [style*="height"] {
  display: block;
  width: 100%;
}

/* Button */
#blog-details-wrapper .primary-btn3 {
  display: inline-flex;
  margin-top: 0;
  margin-bottom: 50px !important;
}

/* --- BULLET LIST --- */
#blog-details-wrapper ul.listing {
  list-style: none;
  padding-left: 0;
  margin-bottom: 50px !important;
  columns: unset;
  max-width: 100%;
}

#blog-details-wrapper ul.listing li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
  color: var(--text-color);
  font-weight: 500;
}

#blog-details-wrapper ul.listing li svg {
  flex-shrink: 0;
  margin-top: 5px;
  fill: var(--primary-color1, #5841D8);
}

/* --- NUMBER LIST --- */
#blog-details-wrapper ol.listing-numbers {
  list-style: none;
  padding-left: 0;
  margin-bottom: 50px !important;
  counter-reset: blog-counter;
}

#blog-details-wrapper ol.listing-numbers li {
  position: relative;
  padding-left: 48px;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text-color);
  font-weight: 500;
}

#blog-details-wrapper ol.listing-numbers li::before {
  counter-increment: blog-counter;
  content: counter(blog-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.08);
  color: var(--primary-color1, #5841D8);
  font-size: 0.78rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark #blog-details-wrapper ol.listing-numbers li::before {
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.18);
  color: #a496f8;
}

/* --- CLEAN BLOCKQUOTE (primary color accent, no left SVG) --- */
#blog-details-wrapper .blog-blockquote {
  position: relative;
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.04);
  border-left: 4px solid var(--primary-color1, #5841D8);
  padding: 36px 40px 36px 48px;
  border-radius: 0 20px 20px 0;
  margin: 0 0 50px 0 !important;
  overflow: hidden;
}

body.dark #blog-details-wrapper .blog-blockquote {
  background: rgba(var(--primary-color1-opc, 88, 65, 216), 0.1);
}

#blog-details-wrapper .blog-blockquote .content {
  position: relative;
  z-index: 1;
}

#blog-details-wrapper .blog-blockquote h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--title-color);
}

#blog-details-wrapper .blog-blockquote .author-area h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--title-color);
}

#blog-details-wrapper .blog-blockquote .author-area span {
  font-size: 0.82rem;
  color: var(--primary-color1, #5841D8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

body.dark #blog-details-wrapper .blog-blockquote .author-area span {
  color: #a496f8;
}

/* Decorative quote SVG — top-right subtle background watermark */
#blog-details-wrapper .blog-blockquote .quote {
  position: absolute !important;
  right: 30px !important;
  bottom: 20px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  opacity: 0.06 !important;
  fill: var(--primary-color1, #5841D8) !important;
  transform: rotate(178deg) !important;
  min-width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
  pointer-events: none;
}

body.dark #blog-details-wrapper .blog-blockquote .quote {
  opacity: 0.12 !important;
  fill: #a496f8 !important;
}

/* --- mt-80 UTILITY --- */
.mt-80 { margin-top: 80px; }

/* =============================================
   AUTHOR PROFILE CARD
   ============================================= */
.author-profile-card {
  background: var(--dark-white-color, #f1f2f5);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 35px;
}

@media (min-width: 576px) {
  .author-profile-card {
    flex-direction: row;
    align-items: center;
  }
}

body.dark .author-profile-card {
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.author-profile-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-profile-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--title-color);
}

.author-profile-card .author-deg {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color1, #5841D8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

body.dark .author-profile-card .author-deg {
  color: #a496f8;
}

.author-profile-card p {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: var(--text-color) !important;
  margin-bottom: 0 !important;
}

/* =============================================
   RELATED ARTICLES SECTION
   ============================================= */
.blog-related-section {
  border-top: 1px solid var(--borders-color, rgba(0,0,0,0.08));
  padding-top: 50px;
}

body.dark .blog-related-section {
  border-top-color: rgba(255,255,255,0.06);
}

.blog-related-section .section-title {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--title-color);
}

.mb-50 { margin-bottom: 40px; }

/* Section gap between article blocks */
.blog-section-gap { margin-top: 40px; }

/* mt-80 reduced */
.mt-80 { margin-top: 60px; }

/* Currently Reading label in prev/next */
.pagination-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color1, #5841D8);
  margin-bottom: 6px;
}

body.dark .pagination-label {
  color: #a496f8;
}

/* Prev/Next h6 when no link (currently reading) */
.details-pagination .single-pagination .content h6 {
  color: var(--title-color);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* =============================================
   BLOG FILTER & SEARCH BAR STYLING
   ============================================= */
.blog-filter-search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  width: 100%;
}

.blog-filter-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-grow: 1;
}

.blog-filter-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.blog-filter-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.blog-filter-btn {
  background: #f5f5f5;
  color: #555555;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 20px;
  border-radius: 50px;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-suse), sans-serif;
}

body.dark .blog-filter-btn {
  background: #1e2025;
  color: #bbbbbb;
  border-color: rgba(255, 255, 255, 0.08);
}

.blog-filter-btn:hover {
  background: #eeeeee;
  border-color: #d5d5d5;
  color: #222222;
}

body.dark .blog-filter-btn:hover {
  background: #252830;
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.blog-filter-btn.active {
  background: var(--primary-color1, #5841D8) !important;
  color: #ffffff !important;
  border-color: var(--primary-color1, #5841D8) !important;
  box-shadow: 0 4px 12px rgba(88, 65, 216, 0.2);
}

.blog-search-wrapper {
  flex-shrink: 0;
}

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search-box .search-icon {
  position: absolute;
  left: 20px;
  color: #888888;
  pointer-events: none;
  transition: color 0.3s ease;
}

body.dark .blog-search-box .search-icon {
  color: #aaaaaa;
}

.blog-search-box input {
  width: 280px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 50px;
  padding: 5px 20px 5px 48px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #222222;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-suse), sans-serif;
}

body.dark .blog-search-box input {
  background: #1e2025;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.blog-search-box input::placeholder {
  color: #999999;
}

.blog-search-box input:focus {
  border-color: var(--primary-color1, #5841D8);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(88, 65, 216, 0.15);
}

body.dark .blog-search-box input:focus {
  border-color: var(--primary-color1, #5841D8);
  background: #16181d;
  box-shadow: 0 0 0 3px rgba(88, 65, 216, 0.25);
}

.blog-filter-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  width: 100%;
}

body.dark .blog-filter-divider {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 991px) {
  .blog-filter-search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .blog-filter-scroll-wrapper {
    width: 100%;
  }

  .blog-search-box input {
    width: 100%;
  }
}

/* =============================================
   FILTER NAV BUTTONS (Left/Right scroll arrows)
   ============================================= */
.blog-filter-nav-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
}

.blog-filter-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #555;
  padding: 0;
}

.blog-filter-nav-btn svg {
  fill: none;
  stroke: currentColor;
  display: block;
}

.blog-filter-nav-btn:hover {
  border-color: var(--primary-color1, #5841D8);
  background: var(--primary-color1, #5841D8);
  color: #fff;
}

body.dark .blog-filter-nav-btn {
  border-color: rgba(255, 255, 255, 0.14);
  color: #bbb;
}

body.dark .blog-filter-nav-btn:hover {
  border-color: var(--primary-color1, #5841D8);
  background: var(--primary-color1, #5841D8);
  color: #fff;
}

/* Blog card hidden state for filtering */
.blog-card-item.blog-hidden {
  display: none !important;
}

/* =============================================
   RESPONSIVE PAGINATION AND IMAGES OVERRIDES
   ============================================= */

/* Featured Image Responsive Height */
@media (max-width: 991px) {
  #blog-details-wrapper .post-thumb.two img {
    height: 400px !important;
  }
}

@media (max-width: 767px) {
  #blog-details-wrapper .post-thumb.two img {
    height: 300px !important;
  }
  
  /* Stack pagination vertically on mobile */
  .details-pagination {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 30px 20px !important;
    gap: 30px !important;
  }
  
  .details-pagination .single-pagination {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .details-pagination .single-pagination.two {
    flex-direction: column !important;
  }
  
  .details-pagination .single-pagination .content {
    max-width: 100% !important;
    text-align: center !important;
  }
  
  .details-pagination .single-pagination .content h6 a {
    text-align: center !important;
    display: inline-block !important;
  }
}

@media (max-width: 576px) {
  #blog-details-wrapper .post-thumb.two img {
    height: 220px !important;
  }
  
  /* Fix circular button alignment and sizes */
  .details-pagination .single-pagination .pagination-btn {
    min-width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
    margin-top: 10px !important;
  }
  .details-pagination .single-pagination .pagination-btn img {
    min-width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
  }
  .details-pagination .single-pagination .pagination-btn .btn-content {
    min-width: 81px !important;
    max-width: 81px !important;
    height: 81px !important;
  }
}

