﻿/* 🔷 General UI Refinement */
body {
    background-color: #ffffff;
    /*font-family: 'Inter', sans-serif;*/ /* Recommended for this clean look */
}

/* 🔷 Header */
/*h2.fw-bold {
    font-size: 2.5rem;
    letter-spacing: -1px;
    color: #1a1a1a;
}
p.text-muted {
    padding-bottom: 18px !important;
}*/

/* 🔷 Category Pills (Floating Look) */
.category-pills {
    display: flex;
    border-radius: 12px;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-pill {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .nav-pill.active {
       
        background: #5b5ce2; /* The purple-blue in your image */
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(91, 92, 226, 0.3);
    }

    .nav-pill:hover:not(.active) {
        border: 1px solid black;
        color: #5b5ce2;
    }

/* 🔷 The Blog Card */
.card {
    border: 1px solid #f0f0f0;
    border-radius: 20px; /* Softer corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    }

/* Image & Floating Badge */
.card-img-top {
    height: 220px;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #5b5ce2 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Typography */
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 6px;
}

.card-text {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
    font-weight:350;
}

/* Author Section */
.author-info img {
    border: 1.5px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.author-name {
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
}

.post-date {
    font-size: 13px;
    color: #a0aec0;
}

/* Icons */
.action-icons i {
    color: #a0aec0;
    transition: 0.2s;
}

    .action-icons i:hover {
        color: #5b5ce2;
    }

/* 🔷 Text Clamping */
.clamp-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem; /* Keeps cards aligned */
}

.clamp-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
}

.page-number-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #6c757d;
    border-radius: 12px;
    text-decoration: none;
    color: #6c757d;
    transition: 0.3s ease;
}

    /* Hover */
    .page-number-btn:hover {
        background: #5b5ce2;
        color: #fff;
    }

    /* Active Page */
    .page-number-btn.active {
        background: #5b5ce2;
        color: #fff !important;
        border-color: #5b5ce2;
    }

.card-title {
    min-height: 48px;
    text-align:left;
}

.card-text {
    min-height: 60px;
    text-align: left;
}

.Author-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.Read-time {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

.footer-color {
    background-color: #ffffff;
}

.card-resize {
    border-radius: 16px;
}

.badge-resize {
    border-radius: 30px;
}

.blog-title {
    padding: 8px;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 10px;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    font-weight: 600;
    margin-bottom: 42px;
}

.text-indigo-600 {
    --tw-text-opacity: 1;
    color: #4f46e5;
    font-weight: 550;
}