/* Google Fonts Import (Poppins) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd; /* Bootstrap Blue */
    --secondary-color: #6c757d;
    --dark-text: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* ===========================
   1. MODERN HEADER STYLES
=========================== */
.navbar-custom {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 15px 0;
}

.navbar-custom .navbar-brand {
    color: var(--dark-text) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    color: #555 !important;
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* Menu Hover Effect */
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}


/* ===========================
   2. PREMIUM BLOG CARDS
=========================== */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Image Wrapper */
.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* === Category Badge === */
.category-badge-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Card Body Styling */
.blog-card .card-body {
    padding: 25px;
}

/* === TITLE TRUNCATE FIX === */
.blog-card .card-title a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s;
    
    /* Text Limit Logic (Fixed) */
    display: -webkit-box;           /* Zaroori hai */
    -webkit-line-clamp: 2;          /* Line count */
    line-clamp: 2;                  /* Standard property */
    -webkit-box-orient: vertical;   /* Orientation zaroori hai */
    overflow: hidden;               /* Extra text chupana */
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

.blog-card .card-text {
    color: #777;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Card Footer */
.blog-card .card-footer {
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.read-more-btn:hover {
   letter-spacing: 1px;
}

/* ===========================
   3. SIDEBAR WIDGETS
=========================== */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-widget h5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 40px;
    background: var(--primary-color);
    border-radius: 3px;
}