/* Blog Page - Gurupedia Style Branding */

:root {
    --rg-blue-primary: #00465c;
    --rg-blue-secondary: #008eb0;
    --rg-azure: #00aff0;
    --rg-orange: #ff9d00;
    --rg-background: #fdfdfd;
}

body {
    background-color: var(--rg-background);
}

/* Hero Section */
.blog-hero {
    background-color: #00465c !important;
    background-image: linear-gradient(165deg, var(--rg-blue-primary, #00465c) 0%, var(--rg-blue-secondary, #008eb0) 100%) !important;
    padding: 140px 0 100px;
    clip-path: ellipse(150% 100% at 50% 0%);
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
    height: 100%;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 70, 92, 0.1);
    border-color: var(--rg-azure);
}

.blog-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--rg-azure);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 175, 240, 0.3);
}

.blog-card .card-title {
    font-weight: 700;
    line-height: 1.4;
    color: var(--rg-blue-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search Box */
.search-card {
    border: none;
    border-radius: 24px;
    padding: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.form-control-rg {
    border: 2px solid #f1f5f9;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.form-control-rg:focus {
    border-color: var(--rg-azure);
    box-shadow: 0 0 0 4px rgba(0, 175, 240, 0.1);
    outline: none;
}

.btn-rg-search {
    background: var(--rg-orange);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
}

/* Sidebar Widgets */
.sidebar-widget {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.sidebar-widget .card-header {
    background: transparent;
    padding: 1.5rem 1.5rem 0.5rem;
    border: none;
}

.sidebar-widget .card-header h5 {
    font-weight: 800;
    color: var(--rg-blue-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget .card-header h5::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--rg-azure);
    border-radius: 10px;
}

.sidebar-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 100px;
    color: #64748b;
    font-size: 0.85rem;
    margin: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

/* Pagination Style */
.pagination .page-item .page-link {
    border: none;
    margin: 0 5px;
    border-radius: 10px !important;
    color: var(--rg-blue-primary);
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--rg-blue-primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 70, 92, 0.2);
}

.pagination .page-item:not(.active):hover .page-link {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    color: var(--rg-blue-secondary);
}

/* Hover effects for main cards */
.blog-card .card-title a {
    transition: color 0.3s;
}

.blog-card:hover .card-title a {
    color: var(--rg-azure) !important;
}

.blog-category-badge {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Floating Shapes from Contact Page */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    border-radius: 50%;
}
.shape-1 { width: 400px; height: 400px; background: #fbbf24; top: -100px; right: -50px; }
.shape-2 { width: 300px; height: 300px; background: #ec4899; bottom: -50px; left: -50px; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .filter-bar select {
        width: 100%;
        min-width: unset !important;
    }
}