/* ============================= */
/* BLOG-SPECIFIC STYLES */
/* Theme-aware blog styles that work with light and dark modes */
/* ============================= */

/* Blog List Page Styles */
/* ============================= */

/* Hero Section */
.blog-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  padding: 3rem 0;
  margin-bottom: 0;
}

.blog-hero-content {
  text-align: center;
  color: var(--white-color);
}

.blog-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white-color);
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Blog Listing Section */
.blog-listing-section {
  background-color: var(--bg-secondary);
  min-height: 60vh;
}

/* Blog Sidebar */
.blog-sidebar-wrapper {
  position: sticky;
  top: 120px;
}

.blog-sidebar-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-align: start;
  direction: inherit;
}

.blog-sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.blog-sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  text-align: start;
}

.blog-sidebar-title i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-sidebar-title {
  border-bottom-color: var(--secondary-color);
}

[data-theme='dark'] .blog-sidebar-title i {
  color: var(--secondary-color);
}

/* Blog Author Card */
.blog-author-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.blog-author-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.blog-author-card .card-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: 16px 16px 0 0;
}

.blog-author-card .card-title-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
}

.blog-author-card .card-title-main i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-author-card .card-title-main i {
  color: var(--secondary-color);
}

.blog-author-card .card-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blog-author-card .card-body img {
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(75, 49, 94, 0.2);
  transition: all 0.3s ease;
}

.blog-author-card .card-body img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(75, 49, 94, 0.3);
}

[data-theme='dark'] .blog-author-card .card-body img {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(255, 96, 1, 0.2);
}

[data-theme='dark'] .blog-author-card .card-body img:hover {
  box-shadow: 0 6px 20px rgba(255, 96, 1, 0.3);
}

.blog-author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--white-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

[data-theme='dark'] .badge-verified {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
}

/* Blog Categories List */
.blog-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: start;
  direction: inherit;
}

.blog-category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-align: start;
}

.blog-category-item:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

[dir="ltr"] .blog-category-item:hover {
  transform: translateX(-5px);
}

.blog-category-item i {
  font-size: 1.1rem;
  min-width: 20px;
}

.blog-category-item span:first-of-type {
  flex-grow: 1;
  text-align: start;
}

.blog-category-item .badge {
  margin-inline-start: auto;
}

/* Blog Tag Cloud */
.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: start;
  direction: inherit;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: start;
  direction: inherit;
}

.blog-tag i {
  font-size: 0.75rem;
}

.blog-tag:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--white-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(75, 49, 94, 0.3);
}

.blog-tag.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--white-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(75, 49, 94, 0.3);
}

[data-theme='dark'] .blog-tag:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
  border-color: var(--secondary-color);
}

[data-theme='dark'] .blog-tag.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
  border-color: var(--secondary-color);
  color: var(--white-color);
}

/* Blog Categories List */
.blog-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: rgba(102, 126, 234, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  text-align: start;
  direction: inherit;
}

.blog-category-item:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--white-color);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.blog-category-item .category-count {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 600;
}

[data-theme='dark'] .blog-category-item {
  background-color: rgba(255, 96, 1, 0.05);
  border-color: rgba(255, 96, 1, 0.1);
}

[data-theme='dark'] .blog-category-item:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
}

/* Blog Post Card */
.blog-post-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.blog-post-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  background-color: var(--bg-secondary);
}

.blog-post-card .card-img-top {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-post-card:hover .card-img-top {
  transform: scale(1.1);
}

.blog-post-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.blog-post-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3em;
}

.blog-post-card .card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-card .card-title a:hover {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-post-card .card-title a:hover {
  color: var(--secondary-color);
}

.blog-post-card .card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.blog-post-card .card-footer {
  padding: 1rem 1.25rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

.blog-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.blog-post-card .blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.blog-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-author-details small {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-author-details small i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

[data-theme='dark'] .blog-author-details small i {
  color: var(--secondary-color);
}

.blog-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.blog-stats small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-stats small i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Read More Button */
.read-more-btn {
  margin-top: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.read-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(75, 49, 94, 0.2);
}

[data-theme='dark'] .read-more-btn {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

[data-theme='dark'] .read-more-btn:hover {
  background-color: var(--secondary-color);
  color: var(--bg-primary);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(-3px);
}

[data-theme='dark'] .blog-stats small i {
  color: var(--secondary-color);
}

.blog-stats small:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Clickable Card Styles */
.clickable-card {
  transition: all 0.3s ease;
  position: relative;
}

.clickable-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.clickable-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 220px;
  display: block;
}

.clickable-card:hover .card-img-top {
  transform: scale(1.15);
}

/* Prevent nested links from interfering */
.clickable-card a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.clickable-card .card-title a,
.clickable-card .blog-tag {
  pointer-events: auto;
  z-index: 2;
}

/* Blog Category Badge */
.blog-category-badge {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.blog-category-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Blog Tags Container (for home.html) */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

[dir="rtl"] .blog-tags {
  direction: rtl;
}

[dir="ltr"] .blog-tags {
  direction: ltr;
}

/* RTL/LTR Text Alignment */
[dir="rtl"] .blog-post-card {
  text-align: right;
  direction: rtl;
}

[dir="ltr"] .blog-post-card {
  text-align: left;
  direction: ltr;
}

[dir="rtl"] .blog-post-card .card-body,
[dir="rtl"] .blog-post-card .card-title,
[dir="rtl"] .blog-post-card .card-text {
  text-align: right;
}

[dir="ltr"] .blog-post-card .card-body,
[dir="ltr"] .blog-post-card .card-title,
[dir="ltr"] .blog-post-card .card-text {
  text-align: left;
}

[dir="rtl"] .blog-footer-info {
  direction: rtl;
}

[dir="ltr"] .blog-footer-info {
  direction: ltr;
}

[dir="rtl"] .blog-author-details small {
  flex-direction: row;
}

[dir="ltr"] .blog-author-details small {
  flex-direction: row;
}

[dir="rtl"] .blog-stats {
  flex-direction: row;
}

[dir="ltr"] .blog-stats {
  flex-direction: row;
}

/* Section Titles */
.blog-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.blog-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

[data-theme='dark'] .blog-section-title::after {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-orange));
}

/* Blog Detail Page Styles */
/* ============================= */

.blog-detail-section {
  background-color: var(--bg-secondary);
  animation: fadeInUp 0.6s ease-out;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Blog Title Header */
.blog-title-header {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.blog-title-main {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-meta-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta-info i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-meta-info i {
  color: var(--secondary-color);
}

/* Blog Image Gallery Container with Swiper */
.blog-image-gallery-container {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Main Gallery Swiper */
.blog-gallery-swiper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--bg-primary);
}

.blog-gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  min-height: 400px;
}

.blog-gallery-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

/* Responsive image fixes for mobile */
@media (max-width: 767px) {
  .blog-gallery-swiper .swiper-slide {
    min-height: 250px;
  }

  .blog-gallery-swiper .swiper-slide img {
    max-height: 400px;
  }
}

.blog-gallery-swiper .swiper-button-next,
.blog-gallery-swiper .swiper-button-prev {
  color: var(--white-color);
  background-color: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.blog-gallery-swiper .swiper-button-next:hover,
.blog-gallery-swiper .swiper-button-prev:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

[data-theme='dark'] .blog-gallery-swiper .swiper-button-next:hover,
[data-theme='dark'] .blog-gallery-swiper .swiper-button-prev:hover {
  background-color: var(--secondary-color);
}

.blog-gallery-swiper .swiper-button-next::after,
.blog-gallery-swiper .swiper-button-prev::after {
  font-size: 20px;
}

/* Thumbnail Swiper */
.blog-thumbnails-swiper {
  padding: 0;
}

.blog-thumbnails-swiper .swiper-slide {
  height: 80px;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.blog-thumbnails-swiper .swiper-slide:hover {
  opacity: 0.8;
}

.blog-thumbnails-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

[data-theme='dark'] .blog-thumbnails-swiper .swiper-slide-thumb-active {
  border-color: var(--secondary-color);
}

.blog-thumbnails-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legacy Single Image Container (kept for backward compatibility) */
.blog-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.blog-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog Content Card */
.blog-content-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.blog-content-card .card-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 16px 16px 0 0;
}

.blog-content-card .card-title-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
}

.blog-content-card .card-title-main i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-content-card .card-title-main i {
  color: var(--secondary-color);
}

.blog-content-card .card-body {
  padding: 1.5rem;
  overflow-x: auto;
  max-width: 100%;
}

.blog-content-card .card-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 0 0 16px 16px;
}

/* Blog Content Text */
.blog-content-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
}

.blog-content-text p {
  margin-bottom: 1rem;
}

/* Force all images to be responsive regardless of inline styles */
.blog-content-text img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

/* Wrapper divs around images */
.blog-content-text div img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* CKEditor 5 Figure with Image and Caption */
.blog-content-text figure {
  max-width: 100% !important;
  width: auto !important;
  margin: 1.5rem auto !important;
  padding: 0 !important;
  display: table;
  text-align: center;
}

.blog-content-text figure img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.blog-content-text figure figcaption {
  display: table-caption;
  caption-side: bottom;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 0 0 8px 8px;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* CKEditor 5 image alignment classes */
.blog-content-text .image-style-align-left,
.blog-content-text figure.image-style-align-left,
.blog-content-text img[style*="float: left"],
.blog-content-text img[style*="float:left"] {
  float: left !important;
  margin: 0.5rem 1rem 1rem 0 !important;
  max-width: 50% !important;
}

.blog-content-text .image-style-align-right,
.blog-content-text figure.image-style-align-right,
.blog-content-text img[style*="float: right"],
.blog-content-text img[style*="float:right"] {
  float: right !important;
  margin: 0.5rem 0 1rem 1rem !important;
  max-width: 50% !important;
}

.blog-content-text .image-style-align-center,
.blog-content-text figure.image-style-align-center {
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both;
}

/* Clear floats after images */
.blog-content-text::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive iframes - YouTube, Vimeo, etc. */
.blog-content-text iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: 1.5rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

/* Specific handling for video iframes */
.blog-content-text iframe[src*="youtube"],
.blog-content-text iframe[src*="vimeo"],
.blog-content-text iframe[src*="dailymotion"] {
  min-height: 315px;
}

/* Wrapper for iframes in divs */
.blog-content-text div iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* Responsive media in blog content */
.blog-content-text video,
.blog-content-text embed,
.blog-content-text object {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

/* Tables in blog content */
.blog-content-text table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Mobile-specific content fixes */
@media (max-width: 767px) {
  .blog-content-card .card-body {
    padding: 1rem;
    overflow-x: auto;
  }

  .blog-content-text {
    font-size: 0.95rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Fixed size images in mobile for better control */
  .blog-content-text img {
    margin: 0.75rem auto !important;
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  /* Images inside divs - constrain size */
  .blog-content-text div img,
  .blog-content-text p img {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  .blog-content-text figure {
    margin: 1rem auto !important;
    max-width: 100% !important;
  }

  .blog-content-text figure img {
    max-height: 400px !important;
    width: auto !important;
    object-fit: contain;
  }

  .blog-content-text figure figcaption {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  /* On mobile, don't float images */
  .blog-content-text .image-style-align-left,
  .blog-content-text .image-style-align-right,
  .blog-content-text figure.image-style-align-left,
  .blog-content-text figure.image-style-align-right,
  .blog-content-text img[style*="float"] {
    float: none !important;
    margin: 1rem auto !important;
    max-width: 100% !important;
    display: block;
  }

  /* Smaller iframes on mobile */
  .blog-content-text iframe {
    max-height: 250px !important;
  }

  .blog-content-text iframe[src*="youtube"],
  .blog-content-text iframe[src*="vimeo"],
  .blog-content-text iframe[src*="dailymotion"] {
    min-height: 200px;
  }

  /* Prevent horizontal scroll from wide content */
  .blog-content-text * {
    max-width: 100% !important;
  }

  .blog-content-text table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tablet adjustments */
@media (max-width: 991px) {
  .blog-content-text .image-style-align-left,
  .blog-content-text .image-style-align-right,
  .blog-content-text figure.image-style-align-left,
  .blog-content-text figure.image-style-align-right,
  .blog-content-text img[style*="float"] {
    max-width: 60% !important;
  }

  .blog-content-text iframe[src*="youtube"],
  .blog-content-text iframe[src*="vimeo"],
  .blog-content-text iframe[src*="dailymotion"] {
    min-height: 250px;
  }
}
  .blog-content-text figure.image-style-align-left,
  .blog-content-text figure.image-style-align-right {
    max-width: 60%;
  }
}

/* Blog Actions (Like & Share) */
.blog-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-actions-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.blog-like-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-like-btn {
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-like-btn:hover {
  transform: scale(1.05);
}

.blog-like-btn.active {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.blog-like-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Blog Share Actions */
.blog-share-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-share-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.blog-share-label i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-share-label i {
  color: var(--secondary-color);
}

.blog-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.blog-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-share-btn.facebook:hover {
  background-color: #1877f2;
  color: white;
  border-color: #1877f2;
}

.blog-share-btn.twitter:hover {
  background-color: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.blog-share-btn.linkedin:hover {
  background-color: #0a66c2;
  color: white;
  border-color: #0a66c2;
}

.blog-share-btn.whatsapp:hover {
  background-color: #25d366;
  color: white;
  border-color: #25d366;
}

.blog-share-btn.copy-link:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

[data-theme='dark'] .blog-share-btn.copy-link:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.blog-copy-success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #3a2449;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.blog-copy-success-message.show {
  opacity: 1;
  visibility: visible;
}

/* Blog Comments Section */
/* ============================= */

.blog-comments-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.blog-comments-card .card-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 16px 16px 0 0;
}

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

/* Alert Link Styling */
.blog-comments-card .alert-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  background-color: transparent;
}

.blog-comments-card .alert-link:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 49, 94, 0.3);
  text-decoration: none;
}

[data-theme='dark'] .blog-comments-card .alert-link {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-comments-card .alert-link:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
  color: var(--white-color);
  box-shadow: 0 4px 12px rgba(255, 96, 1, 0.4);
}

.blog-comments-card .alert-link i {
  transition: transform 0.3s ease;
}

.blog-comments-card .alert-link:hover i {
  transform: translateX(-3px);
}

/* Comment Form */
.blog-comment-form {
  margin-bottom: 2rem;
}

.blog-comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: all 0.3s ease;
}

.blog-comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(75, 49, 94, 0.1);
}

[data-theme='dark'] .blog-comment-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 96, 1, 0.1);
}

.blog-comment-reply-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-comment-reply-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-comment-cancel-reply {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-comment-cancel-reply:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Comment List */
.blog-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-comment-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.blog-comment-item:hover {
  background-color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blog-comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-comment-author img {
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.blog-comment-author img:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

[data-theme='dark'] .blog-comment-author img:hover {
  border-color: var(--secondary-color);
}

.blog-comment-author > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-comment-author strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.blog-comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-comment-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.blog-comment-reply-btn {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-comment-replies {
  margin-top: 1rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
}

.blog-comment-replies .blog-comment-item {
  background-color: var(--bg-primary);
}

[data-theme='dark'] .blog-comment-replies .blog-comment-item {
  background-color: var(--bg-secondary-light);
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.blog-empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.blog-empty-state p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Related Posts Section */
.blog-related-posts-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.blog-related-posts-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
}

.blog-related-posts-title i {
  color: var(--primary-color);
}

[data-theme='dark'] .blog-related-posts-title i {
  color: var(--secondary-color);
}

/* Related Blogs Swiper Navigation */
.related-swiper-navigation {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.related-swiper-button-prev,
.related-swiper-button-next {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(75, 49, 94, 0.3);
}

.related-swiper-button-prev:hover,
.related-swiper-button-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(75, 49, 94, 0.4);
}

.related-swiper-button-prev:active,
.related-swiper-button-next:active {
  transform: translateY(-1px);
}

[data-theme='dark'] .related-swiper-button-prev,
[data-theme='dark'] .related-swiper-button-next {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
  box-shadow: 0 4px 12px rgba(255, 96, 1, 0.3);
}

[data-theme='dark'] .related-swiper-button-prev:hover,
[data-theme='dark'] .related-swiper-button-next:hover {
  box-shadow: 0 6px 20px rgba(255, 96, 1, 0.4);
}

/* Related Blogs Swiper */
.related-blogs-swiper {
  padding: 1rem 0 2rem;
  overflow: visible;
}

.related-blogs-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.related-blogs-swiper .blog-post-card {
  transition: all 0.3s ease;
}

.related-blogs-swiper .blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
  position: relative;
  padding-bottom: 0.75rem;
}

.blog-related-posts-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* HOME PAGE BLOGS SWIPER */
/* ============================= */

.latest-blogs-section {
  background-color: var(--bg-secondary);
}

.home-blogs-swiper {
  position: relative;
  padding: 0;
  margin-bottom: 2rem;
  overflow: hidden;
}

.home-blogs-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.home-blogs-swiper .blog-post-card {
  width: 100%;
}

/* Swiper Navigation Buttons */
.home-blogs-next,
.home-blogs-prev {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.home-blogs-next:hover,
.home-blogs-prev:hover {
  background: #ff6001;
  color: var(--white-color);
  border-color: #ff6001;
  transform: scale(1.1);
  box-shadow: var(--shadow-card-hover);
}

[data-theme='dark'] .home-blogs-next:hover,
[data-theme='dark'] .home-blogs-prev:hover {
  background: #ff6001;
  border-color: #ff6001;
}

.home-blogs-next::after,
.home-blogs-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Swiper Pagination */
.home-blogs-pagination {
  position: relative;
  margin-top: 2rem;
}

.home-blogs-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--border-color);
  opacity: 1;
  transition: all 0.3s ease;
}

.home-blogs-pagination .swiper-pagination-bullet-active {
  background: #ff6001;
  width: 30px;
  border-radius: 6px;
}

[data-theme='dark'] .home-blogs-pagination .swiper-pagination-bullet-active {
  background: #ff6001;
}

/* Section Header */
.section-header .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .blog-sidebar-wrapper {
    position: static;
    margin-top: 2rem;
  }

  .blog-title-main {
    font-size: 1.8rem;
  }

  .blog-section-title {
    font-size: 1.5rem;
  }

  .blog-comment-replies {
    padding-left: 1rem;
  }

  .home-blogs-swiper {
    padding: 0;
  }

  .section-header .section-title {
    font-size: 2rem;
  }

  .blog-author-card .card-body {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 767px) {
  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .blog-title-main {
    font-size: 1.5rem;
  }

  .blog-section-title {
    font-size: 1.3rem;
  }

  .blog-share-action {
    justify-content: center;
  }

  .blog-comment-replies {
    padding-left: 0.5rem;
    border-left-width: 1px;
  }

  .home-blogs-swiper {
    padding: 0;
  }

  .home-blogs-swiper .blog-post-card .card-img-container {
    height: 150px;
  }

  .home-blogs-swiper .blog-post-card .card-body {
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .home-blogs-swiper .blog-post-card .card-title {
    font-size: 0.6rem;
    min-height: unset;
    -webkit-line-clamp: 2;
  }

  .home-blogs-swiper .blog-post-card .card-title a {
    font-size: 0.6rem;
  }

  .home-blogs-swiper .blog-post-card .card-text {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .home-blogs-swiper .blog-post-card .blog-tag {
    font-size: 0.56rem;
    padding: 0.2rem 0.5rem;
  }

  .home-blogs-swiper .blog-post-card .card-footer {
    padding: 0.5rem 0.6rem;
  }

  .home-blogs-swiper .blog-author-details small {
    font-size: 0.65rem;
    max-width: 90px;
  }

  .home-blogs-swiper .blog-stats small {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
  }

  .home-blogs-swiper .blog-author-details small i,
  .home-blogs-swiper .blog-stats small i {
    font-size: 0.6rem;
  }

  .home-blogs-next,
  .home-blogs-prev {
    width: 35px;
    height: 35px;
  }

  .section-header .section-title {
    font-size: 1.8rem;
  }

  .section-header .section-subtitle {
    font-size: 1rem;
  }

  .blog-content-card .card-header,
  .blog-comments-card .card-header,
  .blog-author-card .card-header {
    padding: 0.85rem 1rem;
  }

  .blog-content-card .card-title-main,
  .blog-comments-card .card-title-main,
  .blog-author-card .card-title-main {
    font-size: 1.1rem;
  }

  .blog-meta-info {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .blog-author-card .card-body {
    padding: 1.25rem 0.75rem;
  }

  .blog-author-name {
    font-size: 1.1rem;
  }

  .blog-comment-item {
    padding: 1rem;
  }

  .blog-comment-author {
    gap: 0.5rem;
  }

  .blog-like-action {
    justify-content: center;
  }

  .blog-post-card .card-footer {
    padding: 0.65rem 0.9rem;
  }

  .blog-footer-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .blog-author-details {
    min-width: 0;
    flex: 1;
    gap: 0.2rem;
  }

  .blog-author-details small {
    font-size: 0.73rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }

  .blog-stats {
    gap: 0.35rem;
    width: auto;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
  }

  .blog-stats small {
    font-size: 0.72rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.15rem 0.5rem;
    gap: 0.25rem;
  }

  .blog-related-posts-title {
    font-size: 1.5rem;
  }  .related-swiper-button-prev,
  .related-swiper-button-next {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .related-swiper-navigation {
    gap: 0.5rem;
  }
}/* ============================= */
/* BLOG PAGINATION STYLES */
/* ============================= */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.blog-pagination .page-item {
  margin: 0;
}

.blog-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.blog-pagination .page-link:hover {
  background-color: var(--bg-secondary);
  color: #4b315e; /* --primary-color */
  border-color: #4b315e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.blog-pagination .page-item.active .page-link {
  background-color: #4b315e;
  border-color: #4b315e;
  color: var(--white-color);
  box-shadow: 0 4px 12px rgba(75, 49, 94, 0.3);
  transform: translateY(-2px);
}

.blog-pagination .page-item.disabled .page-link {
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  opacity: 0.6;
  pointer-events: none;
  box-shadow: none;
}

.blog-pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(75, 49, 94, 0.2);
}

/* ============================= */
/* DARK MODE - BOOTSTRAP OVERRIDES */
/* ============================= */

/* Buttons */
[data-theme='dark'] .btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background-color: transparent;
}

[data-theme='dark'] .btn-outline-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #1e293b;
}

[data-theme='dark'] .btn-outline-secondary {
  color: #94a3b8;
  border-color: #475569;
  background-color: transparent;
}

[data-theme='dark'] .btn-outline-secondary:hover {
  background-color: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

[data-theme='dark'] .btn-outline-danger {
  color: #f87171;
  border-color: #f87171;
}

[data-theme='dark'] .btn-outline-danger:hover,
[data-theme='dark'] .btn-outline-danger.active {
  background-color: #dc2626;
  border-color: #dc2626;
  color: white;
}

/* Alerts */
[data-theme='dark'] .alert-info {
  background-color: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

[data-theme='dark'] .alert-info .alert-link {
  color: var(--secondary-color);
}

/* Badges */
[data-theme='dark'] .badge.bg-secondary {
  background-color: #475569 !important;
  color: #e2e8f0;
}

/* Form Controls */
[data-theme='dark'] .form-control,
[data-theme='dark'] textarea.form-control {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme='dark'] .form-control:focus,
[data-theme='dark'] textarea.form-control:focus {
  background-color: #0f172a;
  border-color: var(--secondary-color);
  color: #f1f5f9;
  box-shadow: 0 0 0 3px rgba(255, 96, 1, 0.15);
}

[data-theme='dark'] .form-control::placeholder,
[data-theme='dark'] textarea.form-control::placeholder {
  color: #64748b;
}

/* Blog Pagination Dark Mode */
[data-theme='dark'] .blog-pagination .page-link {
  background-color: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme='dark'] .blog-pagination .page-link:hover {
  background-color: #334155;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-pagination .page-item.active .page-link {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(255, 96, 1, 0.3);
}

[data-theme='dark'] .blog-pagination .page-item.disabled .page-link {
  background-color: #0f172a;
  color: #475569;
}

/* Blog Section Title */
[data-theme='dark'] .blog-section-title {
  color: var(--text-primary);
}

[data-theme='dark'] .blog-section-title::after {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-orange));
}

/* Blog Hero Section */
[data-theme='dark'] .blog-hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid #334155;
}

[data-theme='dark'] .blog-hero-title {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme='dark'] .blog-hero-subtitle {
  color: #94a3b8;
}

/* Empty State */
[data-theme='dark'] .blog-empty-state i {
  color: #475569;
}

[data-theme='dark'] .blog-empty-state p {
  color: #64748b;
}

/* Text Muted Override */
[data-theme='dark'] .text-muted {
  color: #94a3b8 !important;
}

/* Card Footer */
[data-theme='dark'] .blog-post-card .card-footer {
  background-color: rgba(15, 23, 42, 0.5);
  border-top-color: #334155;
}

/* Copy Success Message */
[data-theme='dark'] .blog-copy-success-message {
  background-color: var(--secondary-color);
  color: #1e293b;
}

/* Back to Blogs Button */
[data-theme='dark'] .btn-outline-primary i {
  color: inherit;
}

/* ============================= */
/* BLOG CARD DARK MODE STYLES */
/* ============================= */

/* Blog Post Card */
[data-theme='dark'] .blog-post-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-post-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .blog-post-card .card-img-container {
  background-color: #0f172a;
}

[data-theme='dark'] .blog-post-card .card-body {
  background-color: #1e293b;
}

[data-theme='dark'] .blog-post-card .card-title {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-post-card .card-title a {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-post-card .card-text {
  color: #94a3b8;
}

/* Blog Tags */
[data-theme='dark'] .blog-tag {
  background-color: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

[data-theme='dark'] .blog-tag i {
  color: var(--secondary-color);
}

/* Blog Footer */
[data-theme='dark'] .blog-footer-info {
  color: #94a3b8;
}

[data-theme='dark'] .blog-author-details small,
[data-theme='dark'] .blog-stats small {
  color: #94a3b8 !important;
}

[data-theme='dark'] .blog-author-details small i,
[data-theme='dark'] .blog-stats small i {
  color: var(--secondary-color) !important;
}

/* Clickable Card Hover */
[data-theme='dark'] .clickable-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Blog Category Badge */
[data-theme='dark'] .blog-category-badge .badge {
  opacity: 0.9;
}

/* Section Subtitle */
[data-theme='dark'] .section-subtitle {
  color: #94a3b8;
}

/* Latest Blogs Section */
[data-theme='dark'] .latest-blogs-section {
  background-color: #0f172a;
}

[data-theme='dark'] .latest-blogs-section .section-title {
  color: #f1f5f9;
}

/* ============================= */
/* BLOG DETAIL PAGE DARK MODE */
/* ============================= */

/* Blog Detail Section */
[data-theme='dark'] .blog-detail-section {
  background-color: #0f172a;
}

/* Blog Title Header */
[data-theme='dark'] .blog-title-header {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-title-main {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-meta-info {
  color: #94a3b8;
}

[data-theme='dark'] .blog-meta-info i {
  color: var(--secondary-color);
}

/* Blog Content Card */
[data-theme='dark'] .blog-content-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-content-card .card-header {
  background-color: #0f172a;
  border-bottom-color: #334155;
}

[data-theme='dark'] .blog-content-card .card-title-main {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-content-card .card-title-main i {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-content-card .card-body {
  background-color: #1e293b;
}

[data-theme='dark'] .blog-content-card .card-footer {
  background-color: #0f172a;
  border-top-color: #334155;
}

[data-theme='dark'] .blog-content-text {
  color: #e2e8f0;
}

[data-theme='dark'] .blog-content-text h1,
[data-theme='dark'] .blog-content-text h2,
[data-theme='dark'] .blog-content-text h3,
[data-theme='dark'] .blog-content-text h4,
[data-theme='dark'] .blog-content-text h5,
[data-theme='dark'] .blog-content-text h6 {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-content-text a {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-content-text a:hover {
  color: #fb923c;
}

[data-theme='dark'] .blog-content-text blockquote {
  border-left-color: var(--secondary-color);
  background-color: #334155;
  color: #cbd5e1;
}

[data-theme='dark'] .blog-content-text code {
  background-color: #334155;
  color: #fbbf24;
}

[data-theme='dark'] .blog-content-text pre {
  background-color: #0f172a;
  border-color: #334155;
}

/* Blog Like Action */
[data-theme='dark'] .blog-like-count {
  color: #94a3b8;
}

/* Blog Share Buttons */
[data-theme='dark'] .blog-share-label {
  color: #94a3b8;
}

[data-theme='dark'] .blog-share-label i {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-share-btn {
  background-color: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

/* Blog Comments Card */
[data-theme='dark'] .blog-comments-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-comments-card .card-header {
  background-color: #0f172a;
  border-bottom-color: #334155;
}

[data-theme='dark'] .blog-comments-card .card-title-main {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-comments-card .card-title-main i {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-comments-card .card-body {
  background-color: #1e293b;
}

/* Blog Comment Form */
[data-theme='dark'] .blog-comment-form textarea {
  background-color: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme='dark'] .blog-comment-form textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 96, 1, 0.15);
}

[data-theme='dark'] .blog-comment-reply-info {
  color: #94a3b8;
}

[data-theme='dark'] .blog-comment-reply-info strong {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-comment-cancel-reply {
  color: var(--secondary-color);
}

/* Blog Comment Item */
[data-theme='dark'] .blog-comment-item {
  background-color: #0f172a;
  border-color: #334155;
}

[data-theme='dark'] .blog-comment-item:hover {
  background-color: #1e293b;
}

[data-theme='dark'] .blog-comment-author strong {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-comment-date {
  color: #64748b;
}

[data-theme='dark'] .blog-comment-body {
  color: #cbd5e1;
}

[data-theme='dark'] .blog-comment-replies {
  border-left-color: #475569;
}

[data-theme='dark'] .blog-comment-replies .blog-comment-item {
  background-color: #1e293b;
}

/* Blog Author Card */
[data-theme='dark'] .blog-author-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-author-card .card-header {
  background-color: #0f172a;
  border-bottom-color: #334155;
}

[data-theme='dark'] .blog-author-card .card-title-main {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-author-card .card-title-main i {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-author-card .card-body {
  background-color: #1e293b;
}

[data-theme='dark'] .blog-author-card .card-body img {
  border-color: var(--secondary-color);
}

[data-theme='dark'] .blog-author-name {
  color: #f1f5f9;
}

/* Blog Sidebar Card */
[data-theme='dark'] .blog-sidebar-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .blog-sidebar-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .blog-sidebar-title {
  color: #f1f5f9;
  border-bottom-color: var(--secondary-color);
}

[data-theme='dark'] .blog-sidebar-title i {
  color: var(--secondary-color);
}

/* Blog Category Item */
[data-theme='dark'] .blog-category-item {
  background-color: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

[data-theme='dark'] .blog-category-item:hover {
  background-color: var(--secondary-color);
  color: #1e293b;
}

/* Blog Related Posts Section */
[data-theme='dark'] .blog-related-posts-section {
  border-top-color: #334155;
}

[data-theme='dark'] .blog-related-posts-title {
  color: #f1f5f9;
}

[data-theme='dark'] .blog-related-posts-title i {
  color: var(--secondary-color);
}

[data-theme='dark'] .blog-related-posts-title::after {
  background: linear-gradient(90deg, var(--secondary-color), #fb923c);
}

/* Blog Image Gallery */
[data-theme='dark'] .blog-gallery-swiper {
  background-color: #1e293b;
}

[data-theme='dark'] .blog-thumbnails-swiper .swiper-slide-thumb-active {
  border-color: var(--secondary-color);
}

/* Custom Button */
[data-theme='dark'] .btn-custom.btn-primary-custom {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fb923c 100%);
  border-color: var(--secondary-color);
  color: #1e293b;
}

[data-theme='dark'] .btn-custom.btn-primary-custom:hover {
  background: linear-gradient(135deg, #fb923c 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 15px rgba(255, 96, 1, 0.4);
}
