/* Modern Blog Theme - Enhanced Version */
.modern-theme {
    --card-radius: 4px;
    --card-shadow: 0 5px 30px 0 #00000026;
    --hover-transform: translateY(-8px);
    --transition-speed: 0.35s;
    --badge-radius: 50px;
    --section-spacing: 3rem;
    --card-padding: 1.75rem;
}

.dark-mode.modern-theme {
    --card-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ============== INDEX PAGE SPECIFIC STYLES ============== */

/* Hero section for featured post */
.modern-hero {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
}

.modern-hero .hero-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.modern-hero:hover .hero-image {
    transform: scale(1.03);
}

.modern-hero .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.modern-hero .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modern-hero .hero-title a {
    color: white;
    text-decoration: none;
}

.modern-hero .hero-meta {
    opacity: 0.8;
}

.modern-hero .hero-meta a {
    color: white;
}

/* Main blog cards */
.modern-blog-post .card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.modern-blog-post:hover {
    transform: var(--hover-transform);
}

.modern-blog-post .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.modern-blog-post .card:hover .card-img-top {
    transform: scale(1.08);
}

.modern-blog-post .card-body {
    padding: 1.5rem 30px;
}

.modern-blog-post .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    line-height: 1.4;
}

.modern-blog-post .card-title a {
    text-decoration: none;
    background: linear-gradient(to right, currentColor 0%, currentColor 100%);
    background-size: 0px 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.3s;
}

.modern-blog-post .card-title a:hover {
    background-size: 100% 1px;
}

.modern-blog-post .card-text {
    color: var(--text-muted, #6c757d);
    margin-bottom: 1.5rem;
}

.modern-blog-post .btn-primary {
    border-radius: var(--badge-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,123,255,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Modified layouts */
.modern-blog-posts.grid-style {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 576px) {
    .modern-blog-posts.grid-style[data-items-per-row="1"] { grid-template-columns: repeat(1, 1fr); }
    .modern-blog-posts.grid-style[data-items-per-row="2"] { grid-template-columns: repeat(2, 1fr); }
    .modern-blog-posts.grid-style[data-items-per-row="3"] { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .modern-blog-posts.grid-style[data-items-per-row="3"] { grid-template-columns: repeat(3, 1fr); }
    .modern-blog-posts.grid-style[data-items-per-row="4"] { grid-template-columns: repeat(3, 1fr); }
}

/* Enhanced Pagination */
.modern-pagination {
    margin-top: 3rem;
}

.modern-pagination .page-item {
    margin: 0 0.25rem;
}

.modern-pagination .page-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.modern-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.modern-pagination .page-link:hover:not(.active) {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ============== SIDEBAR SPECIFIC STYLES ============== */

/* Modern Blog Sidebar Enhancements */
.modern-blog-sidebar {
    font-family: var(--blog-body-font, inherit);
}

.sidebar-widget {
    background: var(--bg-color);
    border-radius: 16px;
    padding: calc(1.3rem + 5px) 1.3rem 0rem 1.3rem;
    box-shadow: 0 5px 30px 0 #00000026;;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: show;
background:white;
}

.widget-title {
    font-family: var(--blog-heading-font, inherit);
    font-size: 23px;
    font-weight: 700;
    color: #212529;
    position: relative;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
line-height:1;
}

/* Enhanced Search Form */
.search-form .input-group {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-radius: var(--badge-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form .input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.search-form .form-control {
    border: none;
    padding: 0.75rem 1.5rem;
    height: 54px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.search-form .form-control:focus {
    background: white;
    box-shadow: none;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2)) !important;
    border-color: transparent !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form .btn:hover {
    transform: translateX(2px);
    box-shadow: 0 5px 15px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.3);
}

/* Category Pills - Enhanced */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: var(--badge-radius);
    color: var(--blog-text-color, #495057);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: none;
}

.category-pill:hover {
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.25);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    color: white;
    box-shadow: 0 8px 20px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.25);
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
    padding: 0 0.3rem;
    font-weight: 600;
}

.category-pill:not(.active) .category-count {
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.15);
}

/* Add these styles after your existing category-pill styles */

/* Enhanced subcategory styling for hierarchy visualization */
.subcategory-pill {
    margin-left: 1rem;
    background: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.03);
    border-left: 3px solid rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.2);
    padding-left: 1.5rem;
    position: relative;
    width: calc(100% - 1rem);
}

.subcategory-pill .subcategory-indicator {
    position: absolute;
    left: 0.5rem;
    color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.6);
    font-size: 0.9rem;
}

.subcategory-pill.level-3 {
    margin-left: 2rem;
    width: calc(100% - 2rem);
    background: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.015);
    border-left: 3px solid rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.1);
}

.subcategory-pill.level-3 .subcategory-indicator {
    font-size: 0.85rem;
}

/* Adjust category pills container for better hierarchy display */
.category-pills {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Hover states for subcategories */
.subcategory-pill:hover {
    border-left-color: var(--blog-primary-color, #007bff);
}

.subcategory-pill.active {
    border-left-color: var(--blog-accent-color, #6610f2);
}

/* Dark mode adjustments */
body.dark-mode .subcategory-pill {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(var(--blog-dark-accent-color-rgb, 187, 134, 252), 0.2);
}

body.dark-mode .subcategory-pill.level-3 {
    background: rgba(255, 255, 255, 0.01);
    border-left-color: rgba(var(--blog-dark-accent-color-rgb, 187, 134, 252), 0.1);
}

body.dark-mode .subcategory-pill:hover {
    border-left-color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .subcategory-pill.active {
    border-left-color: #9f7aea;
}

body.dark-mode .subcategory-pill .subcategory-indicator {
    color: rgba(var(--blog-dark-accent-color-rgb, 187, 134, 252), 0.6);
}

/* Recent & Popular Posts - Enhanced */
.recent-posts,
.popular-posts {
    padding: 0;
}

.recent-post,
.popular-post {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: none;
    margin-bottom: 0rem;
    overflow: hidden;
}

.recent-post:last-child,
.popular-post:last-child {
    margin-bottom: 0;
}

.recent-post a,
.popular-post a {
    display: flex;
    text-decoration: none;
    color: #000000;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 5px;
    margin-top: 5px;
}

.recent-post-image,
.popular-post-image {
    flex: 0 0 80px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img,
.popular-post-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 60px;
    width: 80px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recent-post:hover img,
.popular-post:hover img {
    transform: scale(1.05);
}

.recent-post-info,
.popular-post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title,
.popular-post-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0rem;
    padding-top: calc(5px + 0.8rem);
    padding-bottom: 10px;
    font-size: 18px;
    transition: color 0.2s;
    color: var(--blog-text-color, #495057);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post a:hover .recent-post-title,
.popular-post a:hover .popular-post-title {
    color: var(--blog-primary-color, #007bff);
}

.recent-post-date,
.popular-post-views {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.popular-post-views i {
    margin-right: 0.3rem;
    color: var(--blog-primary-color, #007bff);
}

/* Tag Cloud - Enhanced */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: var(--badge-radius);
    color: var(--blog-text-color, #495057);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tag-link:hover,
.tag-link.active {
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.25);
}

/* Archives List - Enhanced */
.archives-list {
    margin: 0;
    padding: 0;
}

.archives-list li {
    margin-bottom: 0.75rem;
    list-style: none;
}

.archives-list li:last-child {
    margin-bottom: 0;
}

.archives-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    color: var(--blog-text-color, #495057);
    text-decoration: none;
    font-weight: 500;
}

.archives-list a:hover {
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.25);
}

.archives-list a:hover .badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: white;
}

.archives-list .badge {
    transition: all 0.3s ease;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.15) !important;
    color: var(--blog-text-color, #495057);
    font-weight: 600;
}

/* ============== SINGLE POST SPECIFIC STYLES ============== */

/* Reading Progress Bar */
.reading-progress-bar {
    height: 5px;
    background: linear-gradient(90deg, #007bff 0%,  #007bff 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Main post content styling */
.modern-blog-post {
    padding: 0px;
    line-height: 1.8;
    position: relative;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2.5rem;
    overflow: visible;
}

.modern-breadcrumb {
    background-color: transparent !important;
    padding: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modern-breadcrumb .breadcrumb-item a {
    color: var(--blog-primary-color, #007bff);
    text-decoration: none;
    transition: color 0.2s;
}

.modern-breadcrumb .breadcrumb-item a:hover {
    color: var(--blog-accent-color, #6610f2);
}

.modern-blog-post .blog-post-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-blog-post .blog-post-meta {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: var(--badge-radius);
    margin-bottom: 2rem;
}

.modern-blog-post .blog-post-meta a {
    color: var(--blog-primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modern-blog-post .blog-post-meta a:hover {
    color: var(--blog-accent-color, #6610f2);
}

.modern-blog-post .blog-post-featured-image {
    margin: -2.5rem -2.5rem 2rem;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modern-blog-post .blog-post-featured-image img {
    width: 100%;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.modern-blog-post .blog-post-featured-image img:hover {
    transform: scale(1.02);
}

.modern-blog-post .featured-image-caption {
    padding: 0.5rem 1rem;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: 6px;
    font-style: italic;
}

.modern-blog-post .blog-post-content {
    font-size: 1.15rem;
    line-height: 1.9;
}

.modern-blog-post .blog-post-content h2,.modern-blog-post .blog-post-content h3 {
    font-size: 25px;
    font-weight: 700;
    margin:0 0 1.5rem;
    color: var(--blog-primary-color, #007bff);
    position: relative;
    padding-bottom: 0rem;
}

.modern-blog-post .blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modern-blog-post .blog-post-content blockquote {
    border-left: 4px solid var(--blog-primary-color, #007bff);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
}

.modern-blog-post .blog-post-content blockquote:before {
    content: '“';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.2);
    font-family: Georgia, serif;
}

/* Blog post tags */
.blog-post-tags {
    margin: 2.5rem 0;
}

.blog-post-tags h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--blog-primary-color, #007bff);
}

.blog-post-tags .badge {
    padding: 0.5rem 1rem;
    border-radius: var(--badge-radius);
    font-weight: 500;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.3);
}

/* Related posts section */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.related-posts h3 {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--blog-primary-color, #007bff);
}

.related-posts h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 4px;
    background: linear-gradient(to right, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    border-radius: 2px;
}

.related-posts .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-posts .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-posts .card:hover .card-img-top {
    transform: scale(1.05);
}

.related-posts .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-posts .card-title a {
    color: var(--blog-text-color, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-posts .card-title a:hover {
    color: var(--blog-primary-color, #007bff);
}

/* Comments section styling */
.post-comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--blog-primary-color, #007bff);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 4px;
    background: linear-gradient(to right, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    border-radius: 2px;
}

.comments-scrollable {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.2) transparent;
}

.comments-scrollable::-webkit-scrollbar {
    width: 6px;
}

.comments-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.comments-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.2);
    border-radius: 6px;
}

.no-comments {
    padding: 3rem 1rem;
    text-align: center;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.03);
    border-radius: 12px;
}

.comment {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.02);
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--blog-primary-color, #007bff);
    position: relative;
}

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.comment.comment-pending {
    border-left-color: #ffc107;
}

.comment.comment-own {
    border-left-color: #28a745;
}

.comment .comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.comment .comment-author {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.comment .comment-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--blog-primary-color, #007bff), var(--blog-accent-color, #6610f2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.2);
}

.comment .comment-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.comment .comment-date i {
    margin-right: 5px;
}

.comment .comment-content {
    line-height: 1.6;
    color: var(--blog-text-color, #495057);
    margin-bottom: 0;
}

.comment .comment-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.comment .comment-footer .btn {
    border-radius: var(--badge-radius);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.comment .comment-footer .btn i {
    margin-right: 4px;
}

.comment .comment-replies {
    margin-top: 1.5rem;
    margin-left: 2.5rem;
    position: relative;
}

.comment .comment-replies:before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    bottom: 0;
    border-left: 2px dashed rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.3);
}

.reply-form {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    background-color: rgba(var(--blog-primary-color-rgb, 0, 123, 255), 0.03);
}

.comment-form {
    margin-top: 3rem;
}

.comment-form h4 {
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    color: #dc3545;
}

.comment-form h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #ff8a80 100%);
    border-radius: 2px;
}

.comment-form .card {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: none;
}

.comment-form .form-control {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    box-shadow: 0 0 0 4px rgba(220,53,69,0.1);
    border-color: #dc3545;
}

.comment-form .btn-danger {
    padding: 0.75rem 2rem;
    border-radius: var(--badge-radius);
    font-weight: 600;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220,53,69,0.25);
}

.comment-form .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220,53,69,0.35);
}

/* ============== DARK MODE STYLING ============== */

/* Dark Mode Modifications - Common */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/* Dark Mode - Blog Index Page */
body.dark-mode .modern-blog-post .card {
    background-color: #222;
}

body.dark-mode .modern-blog-post .card-title a {
    color: #f5f5f5;
}

body.dark-mode .modern-pagination .page-link {
    background: #2d2d2d;
    color: #e1e1e1;
}

body.dark-mode .modern-pagination .page-link:hover:not(.active) {
    background: #333;
}

/* Dark Mode - Sidebar */
body.dark-mode .sidebar-widget {
    background: #1e1e1e;    
    box-shadow: 0 5px 30px 0 #00000026;
}

body.dark-mode .widget-title {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .widget-title:after {
    background: linear-gradient(to right, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .search-form .form-control {
    background: #333;
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .search-form .form-control:focus {
    background: #444;
}

body.dark-mode .search-form .btn {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea) !important;
}

body.dark-mode .category-pill {
    background: rgba(255,255,255,0.05);
    color: #e0e0e0;
}

body.dark-mode .category-pill:hover,
body.dark-mode .category-pill.active {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
    color: #121212;
}

body.dark-mode .recent-post:hover,
body.dark-mode .popular-post:hover {
    background-color: rgba(255,255,255,0.05);
}

body.dark-mode .recent-post a,
body.dark-mode .popular-post a {
    color: #e0e0e0;
}

body.dark-mode .recent-post-title,
body.dark-mode .popular-post-title {
    color: #e0e0e0;
}

body.dark-mode .recent-post-date,
body.dark-mode .popular-post-views {
    color: #999;
}

body.dark-mode .recent-post a:hover .recent-post-title,
body.dark-mode .popular-post a:hover .popular-post-title {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .popular-post-views i {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .tag-link {
    background-color: rgba(255,255,255,0.05);
    color: #e0e0e0;
}

body.dark-mode .tag-link:hover,
body.dark-mode .tag-link.active {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
    color: #121212;
}

body.dark-mode .archives-list a {
    background-color: rgba(255,255,255,0.05);
    color: #e0e0e0;
}

body.dark-mode .archives-list a:hover {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
    color: #121212;
}

body.dark-mode .archives-list .badge {
    background-color: rgba(255,255,255,0.15) !important;
    color: #e0e0e0;
}

/* Dark Mode - Blog Post Page */
body.dark-mode .modern-blog-post {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-mode .modern-blog-post .blog-post-title {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .modern-blog-post .blog-post-meta {
    background-color: rgba(255,255,255,0.05);
}

body.dark-mode .modern-blog-post .blog-post-meta a {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .modern-blog-post .blog-post-content {
    color: #d0d0d0;
}

body.dark-mode .modern-blog-post .blog-post-content h2,
body.dark-mode .modern-blog-post .blog-post-content h3 {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .modern-blog-post .blog-post-content h2:after {
    background: linear-gradient(to right, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .modern-blog-post .blog-post-content blockquote {
    background-color: rgba(255,255,255,0.03);
    border-left-color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .modern-blog-post .blog-post-content blockquote:before {
    color: rgba(255,255,255,0.1);
}

body.dark-mode .related-posts {
    border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .related-posts h3 {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .related-posts h3:after,
body.dark-mode .section-title:after {
    background: linear-gradient(to right, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .related-posts .card {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body.dark-mode .related-posts .card-title a {
    color: #e0e0e0;
}

body.dark-mode .related-posts .card-title a:hover {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .blog-post-tags .badge {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .post-comments {
    border-top-color: rgba(255,255,255,0.1);
}

body.dark-mode .section-title {
    color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .no-comments {
    background-color: rgba(255,255,255,0.03);
}

body.dark-mode .comment {
    background: rgba(255,255,255,0.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left-color: var(--blog-dark-accent-color, #bb86fc);
}

body.dark-mode .comment .comment-meta,
body.dark-mode .comment .comment-footer {
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .comment .comment-date {
    color: #999;
}

body.dark-mode .comment .comment-content {
    color: #c0c0c0;
}

body.dark-mode .comment .comment-author-avatar {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .comment-form .card {
    background: #2a2a2a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

body.dark-mode .comment-form .form-control {
    background-color: #333;
    border-color: rgba(255,255,255,0.1);
    color: #d0d0d0;
}

body.dark-mode .comment-form .form-control:focus {
    border-color: var(--blog-dark-accent-color, #bb86fc);
    box-shadow: 0 0 0 4px rgba(187,134,252,0.2);
}

body.dark-mode .comment-form .form-label {
    color: #d0d0d0;
}

body.dark-mode .comment-form .btn-danger {
    background: linear-gradient(135deg, var(--blog-dark-accent-color, #bb86fc), #9f7aea);
}

body.dark-mode .comments-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
}

/* ============== RESPONSIVE ADJUSTMENTS ============== */

@media (max-width: 768px) {
    
    .modern-blog-post .blog-post-featured-image {
        margin: -1.5rem -1.5rem 1.5rem;
    }
    
    .modern-blog-post .blog-post-title {
        font-size: 2rem;
    }
    
    .modern-blog-post .blog-post-meta {
        padding: 0.5rem 1rem;
    }
    
    .modern-blog-post .blog-post-content {
        font-size: 1.05rem;
    }
    
    .modern-blog-post .blog-post-content h2 {
        font-size: 1.6rem;
    }
    
    .modern-blog-post .blog-post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .modern-blog-post .blog-post-featured-image {
        margin: -1.25rem -1.25rem 1.25rem;
    }
    
    .modern-blog-post .blog-post-title {
        font-size: 1.7rem;
    }
    
    .comment .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment .comment-date {
        margin-top: 0.5rem;
        margin-left: 48px;
    }
}



/*Added Code by Nicholas */
.Featured-Post-main,
.Featured-Post-secondary-section{
    width: 47%;
    margin:18px;
}
.Featured-Post-section{
    display: flex;
    justify-content: center;
  
}.Featured-Post-main .modern-blog-post .card-img-top {
    height: 250px;
}
.Featured-Post-secondary-section .card{
    flex-direction: row;
    display: flex;
}
.Featured-Post-secondary-section .card img{
width:35%;
height: 230px;
}
.Featured-Post-secondary-section .modern-blog-post{
margin-bottom:1rem !important;
}
.Featured-Post-secondary-section .card-text{
    -webkit-line-clamp: 2;
  overflow:hidden;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}
.Featured-Post-main h3{
    font-size: 18px;
margin-bottom: 1.5em;
line-height:1.5;
}



.Featured-Post-main .modern-blog-post .card{
    border: 2px solid #49bdde !important;
    border-radius: 0 4px 4px 4px !important;
}

.Featured-Post-main p{
margin-bottom: 1.5em;
    font-size: 18px;
line-height:1.5;
}
.modern-blog-posts .btn{
   width: 230px;
  height: 38px;
  border-radius:0;
  text-transform:none;
  padding:0;
    align-content: center;
  font-size:18px;
  font-weight:400;
  margin-top:0 !important;
    border-radius: 4px;
}
.Featured-Post-main .btn{
margin-bottom: 0;
margin-top: calc(-1.5em + 5px) !important;
}
.card-title{
    font-size: 18px !important;
line-height:1.2 !important;
}
.Featured-Post-secondary-section .card-title{
    font-size: 20px !important;
}
.Featured-Post-secondary-section .card-text{
    font-size: 14px !important;
  line-height:100%;

}
.Featured-Post-main .card-title{
    font-size: 32px !important;
}
.card-title a:hover{
    color: #2b2b2b !important;
    text-decoration:none !important;
    text-decoration-style:none !important;
background:none !important;
}
.card-title:hover{
    color: #2b2b2b !important;
    text-decoration:none !important;
    text-decoration-style:none !important;
background:none !important;
}p.card-text {
    display: none;
}

.latest-post{
margin-top:-40px;
}
.latest-post-text{

    position: relative;
    font-family: 'Poppins', sans-serif !important;
    color: #fff;
    font-weight: 700;
    margin: 0 0 auto 0 !important;
    min-height: 40px;
    width: 310px;
    background-image: linear-gradient(#49bdde 0%, #49bdde 100%);
    border-radius: 4px 4px 0 0;
    align-items: center;
    align-content: center;
    text-align: center;
}

@keyframes shimmer {
   to {
      background-position-x: 0%;
   }

   0% {
      background-position-x: -100%;
   }

   100% {
      background-position-x: 100%;
   }
}@keyframes waveAnimation3 {
   0% {
    d: path("M0.500061 957.499L0.500072 0.360107C92.1001 -5.6399 254.667 64.8601 324.5 100.86C389.7 136.46 528.333 189.693 589.5 211.86C721.5 261.86 917.5 286.027 999 291.86C1230.6 304.26 1392.83 400.36 1445 446.86L1445 957.499L722.75 957.499L0.500061 957.499Z");
}
50% {
    d: path("M.5001 957.499.5001.3601C176-12 254.667 64.8601 324.5 100.86 389.7 136.46 463 188 540 221 708 293 917.5 286.027 999 291.86 1287 295 1392.83 400.36 1445 446.86L1445 957.499 722.75 957.499.5001 957.499Z");
}
100% {
    d: path("M0.500061 957.499L0.500072 0.360107C92.1001 -5.6399 254.667 64.8601 324.5 100.86C389.7 136.46 528.333 189.693 589.5 211.86C721.5 261.86 917.5 286.027 999 291.86C1230.6 304.26 1392.83 400.36 1445 446.86L1445 957.499L722.75 957.499L0.500061 957.499Z");
}
}@keyframes waveAnimation4 {
   0% {
    d: path("M1439.5 957.499L1439.5 0.359985C1347.9 -5.64001 1185.33 64.86 1115.5 100.86C1050.3 136.46 911.667 189.693 850.5 211.86C718.5 261.86 522.5 286.027 441 291.86C209.4 304.26 47.1667 400.36 -4.99992 446.86L-4.99988 957.5L717.25 957.499L1439.5 957.499Z");
}
50% {
    d: path("M1439.5 957.499 1439.5.36C1347.9-5.64 1185.33 64.86 1125 129 1035 210 934 234 822 241 719 247 562 226 441 291.86 236 382 105 437-4.9999 446.86L-4.9999 957.5 717.25 957.499 1439.5 957.499Z");
}
100% {
    d: path("M1439.5 957.499L1439.5 0.359985C1347.9 -5.64001 1185.33 64.86 1115.5 100.86C1050.3 136.46 911.667 189.693 850.5 211.86C718.5 261.86 522.5 286.027 441 291.86C209.4 304.26 47.1667 400.36 -4.99992 446.86L-4.99988 957.5L717.25 957.499L1439.5 957.499Z");
}
}
::-webkit-scrollbar-track {
    width: 8px;
    background: #2B2B2B;
    box-shadow: inset 0 0 5px #2b2b2b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #4c4c4c;
    border-radius: 5px;
}
::-webkit-scrollbar {
    width: 5px;
}
body {
    overflow-x: hidden;
}
.blog-nav .nav-link.active:after{
    content: '';
    position: absolute;
    top: -27px !important;
    left: 12% !important;
    width: 75% !important;
    height: 6px !important;
    border-radius: 3px !important;
    background-color: #94df84 !important;
}

.blog-header-logo img {
    height: 68px;
    width: 181px;
}
#i3f8j{
    display: flex;
    flex-direction: column;
    place-self: center;
    margin-top: 0px;
    margin-bottom: 50px !important;
    padding-top: 138px;
    padding-bottom: 0px;
    padding-left: 5%;
    padding-right: 5%;
    width: 100vw;
    height: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 0;
    color: white !important;
    margin: 0px 0px 80px 0px;
}
#i3f8j::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 820px;
    background: linear-gradient(90deg, #1066d7 0%, #0d51a4 50%, #1066d7 100%);
    background-size: 200% 100%;
    animation: shimmer 9s ease-in-out infinite;
    z-index: 0;
}
#i3f8j h1{
    font-size: 45px;
    color: white !important;
    line-height: 1.2;
    margin: 0px 0px 1.5rem;
    font-weight: 400;
    z-index: 4;
}
#i3f8j h2{
    max-width: 62ch;
    font-size: 25px;
    color: white !important;
    line-height: 1.2;
    font-weight: 300;
    z-index: 4;
}
.main-content{
    max-width:calc(100vw - 5px);
    overflow-x:clip;
    padding: 0;
}


.general-article{
min-height: 100px;
    position: relative;
    display: block;
    justify-content: center;
    max-width: 1440px;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    line-height: 30px;
    background-color: rgb(255, 255, 255);
    padding: 1.5rem 1.25rem 1.8rem;
    border-radius: 10px;
    margin: 0px auto 2.5rem;
}
.general-article div{
    padding: 0;
}


.modern-blog-post .blog-post-content p{
    margin: 0;
    font-size: 18px;
    padding: 0px 0px 0.75rem;
}

.modern-blog-post .blog-post-content h3 {
    color: var(--blog-primary-color, #007bff);
    margin: 1rem 0px;
}

.BoxShadows{
box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 30px 0px;
}

/*heading colours*/

.purple{
color:#b09de0 !important;
}

.related-post-readmore-btn{
    position: relative;
    font-size: 14px;
    padding: 0.25rem 0rem 0.25rem 0rem;
    text-align: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    color: white !important;
    border: 1px solid;
    border-radius: 4px 4px 4px 4px;
    text-transform: none;
    width: 120px;
    height:30.6px;
    margin-top:10px !important;
}

.green{
color: #96de83 !important;
}

.blue{
color: #49bade !important;
}

.pink{
color: #f04db9 !important;
}


.greenbg-btn{
background-color: #97e086 !important; 
border-color: #97e086 !important;" 
}

.bluebg-btn{
background-color: #48badc !important; 
border-color: #48badc !important;
}

.pinkbg-btn{
background-color: #f34bba !important;  
border-color: #f34bba !important;
}

.purplebg-btn{
background-color: #b09de0 !important;  
border-color: #b09de0 !important;
}

.orangebg-btn{
background-color: #f2b12e !important;  
border-color: #f2b12e !important;
}
.greenbg-btn:hover{
background-color: #97e086 !important; 
border-color: #97e086 !important;" 
}

.bluebg-btn:hover{
background-color: #48badc !important; 
border-color: #48badc !important;
}

.pinkbg-btn:hover{
background-color: #f34bba !important;  
border-color: #f34bba !important;
}

.purplebg-btn:hover{
background-color: #b09de0 !important;  
border-color: #b09de0 !important;
}

.orangebg-btn:hover{
background-color: #f2b12e !important;  
border-color: #f2b12e !important;
}


.conclusion{
border-radius: 10px 10px 10px 10px;
    border: 1px solid #1370ec;
}

.blog-post-title {
    display: flex;
    place-self: center;
    margin-top: 0px;
    margin-bottom: 50px !important;
    padding-top: 88px;
    padding-bottom: 0px;
    padding-left: 18.5%;
    padding-right: 18.5%;
    width: 100vw;
    height: 400px;
    text-align: center;
    font-size: 45px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #1066d7 0%, #0d51a4 50%, #1066d7 100%);
    background-size: 200% 100%;
    animation: shimmer 9s ease-in-out infinite;
    z-index: 0;
    color: white;
}

@media (min-width: 1750px) {
   .blog-post-title {
      font-size: 50px  !important;
   }
}

@media (max-width: 1250px) {
   .blog-post-title {
      font-size: 3vw  !important;
   }
}

@media (max-width: 1024px) {
   .blog-post-title {
      font-size: 34px  !important;
   }
}

@media (max-width: 991px) {
    .blog-post-featured-image {
        width: 90%;
        margin-bottom: 2rem;
    }
.featured-text {
        text-align: center;
    }

.blog-row{
flex-wrap: wrap;
}
}
@media (max-width: 650px) {
   .blog-post-title {
      font-size: 31px !important;
      text-align: -webkit-center !important;
   }
}

@media (max-width: 375px) {
   .blog-post-title {
      Font-size: 30px !important;
   }
}

@media (max-width: 333px) {
   .blog-post-title {
      Font-size: 28px !important;
   }
}