﻿.vanta-canvas {
    top: -26rem !important;
}

/* Blog Hero */
.blog-hero {
    text-align: center;
    padding: 50px 0 30px;
}

.badge-shine {
    background: rgba(129, 140, 248, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: #a5b4fc;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-sub {
    max-width: 700px;
    margin: 20px auto 0;
    color: #94a3b8;
}

/* Featured Post */
.featured-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 32px;
    transition: all 0.25s;
    overflow: hidden;
}

    .featured-card:hover {
        transform: translateY(-5px);
        border-color: #818cf8;
    }

.featured-img {
    border-radius: 24px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-img {
    transform: scale(1.02);
}

/* Blog Card - Creative & Modern */
/* Make blog card a flex container */
.blog-card {
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

    /* Make the content wrapper take remaining space */
    .blog-card > div.p-4 {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Push the button container to the bottom */
    .blog-card .mt-3 {
        margin-top: auto !important;
    }

    /* Optional: Ensure consistent card height and content spacing */
    .blog-card p {
        text-align: justify;
        font-size: .87em;
        line-height: 1.7;
        margin-bottom: 1rem;
        /* Limit description lines if needed */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .blog-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #4f46e5, #c084fc, #4f46e5);
        transform: scaleX(0);
        transition: transform 0.4s;
    }

    .blog-card:hover::before {
        transform: scaleX(1);
    }

    .blog-card:hover {
        transform: translateY(-8px);
        border-color: rgba(129, 140, 248, 0.4);
        background: rgba(30, 41, 59, 0.55);
    }

.card-img-top-custom {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .card-img-top-custom {
    transform: scale(1.05);
}

.card-badge {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.btn-read {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
    font-size: .9em;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-read i {
        transition: transform 0.2s;
    }

    .btn-read:hover i {
        transform: translateX(-4px);
    }

.date-chip {
    color: white;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 2px 12px;
    font-size: 11px;
}

.blog-card h5 {
    line-height: 1.8;
}

/* Pagination */
.pagination-custom .page-link {
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(129,140,248,0.2);
    color: #cbd5e1;
    margin: 0 6px;
    border-radius: 50px;
    text-decoration: none;
}

.pagination-custom .page-item.active .page-link {
    background: #4f46e5;
    border-color: #4f46e5;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}
