/* Post title hover effect */
.post-title a {
    color: #000000; /* Default title color */
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease; /* Smooth transition */
}

.post-title a:hover {
    color: #8A2BE2; /* Royal Blue - or choose your preferred color */
    text-decoration: none;
}

/* Optional: Add an underline effect on hover */
.post-title a:hover {
    border-bottom: 1px solid #4169E1;
}

/* For featured/highlighted posts - different hover color */
.featured-post .post-title a:hover {
    color: #5d06af; /* Blue Violet */
}

/* Add this to your blog.css */
.container {
    max-width: 1200px; /* Increase from default (usually 960px or 1140px) */
}

/* SIDEBAR */
.blog-content {
    padding-right: 30px; /* Add padding to the right of blog content */
}

.sidebar {
    padding-left: 20px; /* Add padding to the left of sidebar */
    border-left: 1px solid #eee; /* Optional divider line */
}


/* FEATURED IMAGE STYLING */
.post-featured-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    /* box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);  */
}

/* For the list view (thumbnails) */
.post-card .post-featured-image {
    height: 200px;  /* Fixed height for thumbnails */
    width: 200px;    /* Full width of container */
    overflow: hidden;
}

/* For the detail view (full post) */
.post-detail .post-featured-image {
    max-height: 500px;  /* Maximum height for full post image */
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Image styling inside container */
.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This maintains aspect ratio while filling container */
    object-position: center top;  /* Focus on the top of the image */

    transition: transform 0.3s ease;
}

/* Optional hover effect */
.post-featured-image:hover img {
    transform: scale(1.03);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-card .post-featured-image {
        height: 180px;  /* Smaller height on mobile */
    }
    
    .post-detail .post-featured-image {
        max-height: 400px;  /* Smaller max height on mobile */
    }
}

/* POST META DETAILS STYLES */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.85rem;     /* Base font size for meta text */
    color: #6c757d;         /* Subtle gray color */
}

/* Individual meta items */
.post-meta span {
    margin-right: 1.25rem;  /* Space between meta items */
    margin-bottom: 0.5rem;  /* Space if wrapping to next line */
    display: inline-flex;   /* For better alignment with icons */
    align-items: center;    /* Vertically center icon and text */
}

/* Icons in meta items */
.post-meta i {
    font-size: 0.95rem;     /* Icon size slightly larger than text */
    margin-right: 0.4rem;   /* Space between icon and text */
    color: #000000;         /* Blue color for icons */
}

/* Links in post meta */
.post-meta a {
    color: #6c757d;         /* Blue for links */
    text-decoration: none;  /* No underline */
    transition: color 0.2s ease; /* Smooth transition on hover */
}

.post-meta a:hover {
    color: #2c4ba3;         /* Darker blue on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Specific meta items if needed */
.post-date i {
    color: #000000;         /* Custom color for date icon */
}

.post-reading-time i {
    color: #000000;         /* Custom color for reading time icon */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-meta {
        font-size: 0.8rem;  /* Slightly smaller on mobile */
    }
    
    .post-meta span {
        margin-right: 1rem; /* Less space between items on mobile */
    }
    
    .post-meta i {
        font-size: 0.9rem;  /* Slightly smaller icons on mobile */
    }
}

/* Optional: Different style for featured posts */
.featured-post .post-meta {
    font-weight: 500;       /* Slightly bolder text */
}

.featured-post .post-meta i {
    font-size: 1rem;        /* Larger icons for featured posts */
}

/* Related Posts Cards Styling */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
  }
  
  .related-posts .section-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .related-posts .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4169E1, #8A2BE2);
  }
  
  .related-posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
  }
  
  .related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
/* Updated styling for centered card images */
.related-posts .card-img-container {
    height: 160px;
    overflow: hidden;
    display: flex;          /* Add flex display */
    align-items: center;    /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    background-color: #f8f9fa; /* Light background for empty space */

  }
  
  .related-posts .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* This covers the area but might crop the image */
    transition: transform 0.5s ease;
    object-position: center top;  /* Focus on the top of the image */

  }
  
  .related-posts .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .related-posts .card:hover .card-img-top {
    transform: scale(1.05);
  }
  
  .related-posts .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .related-posts .card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
  }
  
  .related-posts .card-meta {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
  }
  
  .related-posts .card-footer {
    background-color: transparent;
    border-top: none;
    padding-top: 0;
    text-align: right;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .related-posts .row {
      margin-left: -8px;
      margin-right: -8px;
    }
    
    .related-posts .col {
      padding-left: 8px;
      padding-right: 8px;
    }
    
    .related-posts .card-img-container {
      height: 140px;
    }
  }

  /* Gradient divider for headings */
.heading-with-divider {
    position: relative;     /* Required for absolute positioning of the divider */
    padding-bottom: 0.3rem;  /* Space for the divider */
    margin-bottom: 1.25rem;   /* Space after the divider */
  }
  
  .heading-with-divider::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4169E1, #8A2BE2);
  }
  
  /* Center the divider if heading is centered */
  .heading-with-divider.text-center::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Make divider span full width if needed */
  .heading-with-divider.full-width::after {
    width: 100%;
  }

  /* HERO IMAGE */
  .post-featured-image {
    width: 100%;
    height: 400px;          /* Consistent height for all featured images */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* This is key for consistent sizing */
    object-position: center; /* Centers the image */
}   

/* IN CONTENT IMAGE */
.post-content img {
    max-width: 100%;        /* Responsive - won't overflow */
    height: auto;           /* Maintains aspect ratio */
    border-radius: 6px;     /* Subtle rounded corners */
    display: block;         /* Block display for proper margins */
    margin: 1.5rem auto;    /* Center images with spacing */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* Image size options */
.post-content img.img-small {
    max-width: 300px;
}

.post-content img.img-medium {
    max-width: 600px;
}

.post-content img.img-full {
    max-width: 100%;
}

.post-content img.img-left {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 40%;
}

.post-content img.img-right {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    max-width: 40%;
}

.post-content img.img-center {
    margin-left: auto;
    margin-right: auto;
}