:root {
  --primary-color: #B717DB;
  --secondary-color: #9B0FC1;
  --accent-color: #B717DB;
  --light-color: #f8f9fa;
  --dark-color: #333;
}

/* Blog Hero Section */
.blog-hero {
  padding: 120px 0 40px;
  background-color: var(--light-color);
}

.blog-hero .hero-content {
  padding: 30px 0;
}

.blog-hero .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.blog-hero .hero-content p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.blog-hero .hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.section-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-main-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
}

.section-main-title span {
  color: var(--accent-color);
}


/* Breadcrumb Styles */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1.5rem auto;
}

/* Blog Card Styles */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.date-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-content {
  padding: 2rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

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

.read-more:hover {
  color: var(--accent-color);
}

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

/* Pagination Styles */
.pagination .page-item .page-link {
  color: var(--primary-color);
  border: 1px solid #ddd;
  margin: 0 5px;
  border-radius: 5px;
}

.pagination .page-item.active .page-link {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.pagination .page-item .page-link:hover {
  background-color: var(--light-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .blog-hero .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .blog-image {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .blog-hero .row {
    flex-direction: column-reverse;
  }
  
  .blog-hero .hero-content {
    text-align: center;
    margin-top: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .blog-hero .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .blog-image {
    height: 180px;
  }
}

/* ======================================
   Single Blog Post Styles (blog-post.css)
   ====================================== */

/* Blog Post Hero */
.blog-post-hero {
  padding: 140px 0 60px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  position: relative;
  min-height: auto;
}

.blog-post-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 1rem;
  line-height: 1.3;
}

.blog-post-hero .breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.blog-post-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.blog-post-hero .breadcrumb-item a:hover {
  color: white;
}

.blog-post-hero .breadcrumb-item.active {
  color: white;
}

.blog-post-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.blog-post-hero .post-meta {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Blog Post Content */
.blog-post-content {
  padding: 60px 0;
}

.blog-post-content article {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-post-content article p {
  margin-bottom: 1.5rem;
  color: #555;
}

.blog-post-content article .lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #333;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.blog-post-content article h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.blog-post-content article h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.blog-post-content article img {
  margin: 1.5rem 0;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.blog-post-content article ul, 
.blog-post-content article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #555;
}

.blog-post-content article li {
  margin-bottom: 0.5rem;
}

.blog-post-content article blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.blog-post-content article blockquote p {
  margin-bottom: 0;
}

/* Image Placeholder */
.image-placeholder {
  border-radius: 8px;
  overflow: hidden;
}

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

/* Post Tags */
.post-tags {
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  color: var(--primary-color);
}

.post-tags a {
  color: var(--secondary-color);
  text-decoration: none;
}

.post-tags a:hover {
  color: var(--primary-color);
}

/* Social Share */
.social-share {
  padding: 1.5rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
}

.social-share h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-share .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Related Posts */
.related-posts {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #eee;
}

.related-posts h3 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.related-posts .blog-card {
  height: 100%;
}

.related-posts .blog-image {
  height: 150px;
}

.related-posts .blog-content {
  padding: 1rem;
}

.related-posts .blog-content h5 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Responsive for Single Post */
@media (max-width: 991.98px) {
  .blog-post-hero {
    padding: 120px 0 50px;
  }
  
  .blog-post-hero h1 {
    font-size: 2rem;
  }
  
  .blog-post-content {
    padding: 50px 0;
  }
}

@media (max-width: 767.98px) {
  .blog-post-hero {
    padding: 100px 0 40px;
  }
  
  .blog-post-hero h1 {
    font-size: 1.8rem;
  }
  
  .blog-post-content {
    padding: 40px 0;
  }
  
  .blog-post-content article .lead {
    font-size: 1.1rem;
  }
  
  .blog-post-content article h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .blog-post-hero h1 {
    font-size: 1.5rem;
  }
  
  .blog-post-hero .post-meta {
    font-size: 0.9rem;
  }
  
  .blog-post-hero .post-meta .author {
    display: block;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
  
  .blog-post-content {
    padding: 30px 0;
  }
}