/* Blog Banner Styles */
.blog-banner {
    min-height: 340px;
    position: relative;
    overflow: hidden;
}
.blog-banner-bg {
    object-fit: cover;
    width: 100vw;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
}
.blog-banner-overlay {
    background: rgba(24, 49, 63, 0.65);
    z-index: 2;
}
.blog-banner .container {
    z-index: 3;
    position: relative;
}
.blog-label {
    font-size: 1.1rem;
    font-weight: 600;
    background: #fff;
    color: #222;
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: inline-block;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: 0 8px 32px rgba(255, 112, 67, 0.12);
    transform: translateY(-4px) scale(1.01);
}
.blog-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    transition: transform 0.3s;
}
.blog-card:hover .blog-img {
    transform: scale(1.05);
}
.btn-blog-read {
    background: #ff7043;
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    padding: 6px 10px;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: none;
}
.btn-blog-read:hover {
    background: #125875;
    color: #fff;
}

/* Pagination */
.blog-pagination .page-link {
    color: #ff7043;
    border-radius: 8px;
    border: none;
    margin: 0 4px;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, color 0.2s;
}
.blog-pagination .page-item.active .page-link,
.blog-pagination .page-link:hover {
    background: #ff7043;
    color: #fff;
}
.blog-pagination .page-item {
    margin: 0 2px;
}

/* Blog Sidebar Styles */
.blog-sidebar .card {
    border: none;
    border-radius: 12px;
}

.blog-sidebar .card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1rem 1.25rem;
}

.blog-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.blog-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.blog-sidebar .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.blog-sidebar .list-group-item.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.blog-sidebar .list-group-item.active:hover {
    background-color: #0b5ed7;
    transform: translateX(5px);
}

.blog-sidebar .badge {
    font-size: 0.75rem;
}

/* Filter Display Styles */
.filter-display .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.filter-display .badge a {
    text-decoration: none;
    color: inherit;
    margin-left: 0.5rem;
}

.filter-display .badge a:hover {
    opacity: 0.8;
}

/* Blog card adjustments for sidebar layout */
.blog-cards-section .col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

@media (max-width: 1200px) {
    .blog-cards-section .col-xl-4 {
        width: 50%;
    }
}

/* Blog Single Page Styles */
.blog-single-banner {
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.blog-single-banner-bg {
    background-image: url('https://eclass.mediacity.co.in/demo2/public/images/breadcum/16953680301690548224bdrc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.blog-single-banner-overlay {
    background: rgba(24, 49, 63, 0.65);
    z-index: 2;
}

.blog-single-banner .container {
    z-index: 3;
    position: relative;
}

.blog-content-section {
    background-color: #f8f9fa;
}

.blog-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

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

.blog-content {
    line-height: 1.8;
}

.blog-body {
    color: #333;
    font-size: 1.1rem;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
    color: #125875;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.blog-body li {
    margin-bottom: 0.5rem;
}

.blog-body a {
    color: #ff7043;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-body a:hover {
    color: #125875;
    text-decoration: underline;
}

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

.blog-body blockquote {
    border-right: 4px solid #ff7043;
    padding-right: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-excerpt {
    border-right: 4px solid #ff7043;
}

.blog-tags .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: transform 0.2s;
}

.blog-tags .badge:hover {
    transform: translateY(-2px);
}

.blog-meta {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.related-blogs {
    margin-top: 3rem;
}

.related-blogs h3 {
    color: #125875;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-blogs .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.related-blogs .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-blogs .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-blogs .card:hover .card-img-top {
    transform: scale(1.05);
}

.related-blogs .h-200 {
    height: 200px;
}

.related-blogs .card-title {
    color: #125875;
    font-weight: 600;
}

.related-blogs .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.related-blogs .card-title a:hover {
    color: #ff7043;
}

/* Utility classes for blog single page */
.w-60 {
    width: 60px;
}

.h-60 {
    height: 60px;
}

.img-h-60 {
    height: 60px;
    width: 60px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .blog-banner {
        min-height: 220px;
    }
    .blog-single-banner {
        min-height: 300px;
    }
    .blog-label {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }
    .blog-img-wrap {
        height: 120px;
    }
    .blog-card {
        min-height: 260px;
    }
    .blog-sidebar {
        margin-bottom: 2rem;
    }
    .blog-cards-section .col-xl-4 {
        width: 100%;
    }
    .blog-body {
        font-size: 1rem;
    }
    .related-blogs .card-img-top,
    .related-blogs .h-200 {
        height: 150px;
    }
}
