/* Custom Styles for Blog Index Page */
:root {
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --primary-blue: #0d6efd;
    --primary-blue-dark: #0a58ca;
    --blue-template-color: #05a0d9;
}

.blog-content-section {
    padding: 80px 0;
    background-color: #f8fafc;
    /* subtle light background */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.text-dark-slate {
    color: var(--slate-800) !important;
}

/* Hero Card Overlay */
.hero-post-overlay {
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (min-width: 768px) {
    .hero-post-overlay {
        height: 480px;
    }
}

.hero-post-overlay:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay-gradient {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

.hero-post-overlay .card-img-overlay {
    z-index: 3;
}

/* Grid Card */
.grid-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    height: 100%;
}

.grid-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.grid-post-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Info */
.post-meta {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 500;
}

/* Sidebar Sticky */
.sidebar-sticky {
    top: 100px;
    z-index: 10;
}

/* Search Widget */
.search-widget .form-control {
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
    padding: 0.85rem 1.25rem;
    border-right: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.search-widget .form-control:focus {
    border-color: #cbd5e1;
    box-shadow: none;
}

.search-widget .btn {
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
    padding: 0.85rem 1.5rem;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-left: none;
    color: var(--slate-500);
    transition: color 0.2s ease;
}

.search-widget .btn:hover {
    color: var(--primary-blue);
    background-color: #f8fafc;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--blue-template-color) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.2);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.promo-text {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-promo {
    background-color: #ffffff;
    color: var(--primary-blue-dark);
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.btn-promo:hover {
    background-color: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    color: var(--primary-blue);
}

/* Pagination Override */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 0.5rem !important;
    border: none;
    color: var(--slate-600);
    padding: 0.5rem 1rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #e2e8f0;
    color: var(--slate-800);
}

.page-item.active .page-link {
    background-color: var(--blue-template-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* SHOW ARTICLE */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--blue-template-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Prose / Article Body Custom Typography */
.article-body-prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

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

.article-body-prose h2,
.article-body-prose h3,
.article-body-prose h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-body-prose ul,
.article-body-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

/* Author Avatar */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: var(--blue-template-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sticky Sidebar adjustment */
.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Latest Posts Revamp */
.latest-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
    transition: transform 0.2s ease;
}

.latest-post-item:hover {
    transform: translateY(-2px);
}

.latest-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.latest-post-content h5 a {
    color: #1e293b;
    text-decoration: none;
}

.latest-post-content h5 a:hover {
    color: #0d6efd;
}

.latest-post-content .date {
    font-size: 0.8rem;
    color: #64748b;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

/* Custom Breadcrumb */
.custom-breadcrumb {
    font-size: 0.9rem;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: #0d6efd;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 500;
}