/* Blog Enhanced Styles */
.blog-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.blog-header {
    background: linear-gradient(135deg, #1E88E5 0%, #87888b 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.blog-filters {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.blog-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-filter-btn:hover {
    background: #1E88E5;
    border-color: #1E88E5;
    color: white;
    transform: translateY(-1px);
}

.category-filter-btn.active {
    background: #87888b;
    border-color: #87888b;
    color: white;
    box-shadow: 0 4px 15px rgba(135, 136, 139, 0.3);
}

.clear-filters-btn {
    background: #dc3545;
    border: 2px solid #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clear-filters-btn:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #1E88E5;
    box-shadow: 0 0 0 0.2rem rgba(22, 63, 144, 0.25);
    outline: none;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 63, 144, 0.15);
    border-color: #1E88E5;
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    transition: transform 0.3s ease;
}

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

.blog-overlay {
    background: rgba(22, 63, 144, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

/* Overlay específico para placeholder */
.blog-image-placeholder .blog-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.blog-image-placeholder:hover .blog-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.blog-title-hover {
    transition: color 0.3s ease;
}

.blog-title-hover:hover {
    color: #1E88E5 !important;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

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

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #1E88E5, #87888b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-link {
    color: #212529;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: #1E88E5;
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.blog-date {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #1E88E5, #87888b);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.read-more-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 63, 144, 0.3);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: #6c757d;
}

.no-posts-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Card Enhancements */
.card-img-top {
    border-radius: 0;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #1E88E5, #87888b) !important;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-outline-primary {
    border-color: #1E88E5;
    color: #1E88E5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1E88E5, #87888b);
    border-color: #1E88E5;
    color: white;
    transform: translateY(-1px);
}

/* Image Placeholder Styles */
.blog-image-placeholder {
    height: 250px !important;
    background: linear-gradient(135deg, #1E88E5 0%, #87888b 100%) !important;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    min-height: 250px;
}

.placeholder-pattern {
    background-image:
        radial-gradient(circle at 25px 25px, rgba(255,255,255,0.15) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.4;
    z-index: 1;
}

.blog-image-placeholder:hover {
    background: linear-gradient(135deg, #87888b 0%, #1E88E5 100%) !important;
    transition: all 0.3s ease;
}

.blog-image-placeholder .ti {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: white !important;
}

.blog-image-placeholder h6 {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 600;
    color: white !important;
    line-height: 1.3;
}

/* Badge específico para placeholder */
.blog-image-placeholder .badge.bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1E88E5 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 600;
}

/* Z-index para layering correcto */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }.blog-meta {
    font-size: 0.85rem;
}

.blog-meta .ti {
    font-size: 0.9rem;
}

/* Card Animation */
.fade-in .col-lg-4:nth-child(1) { animation-delay: 0.1s; }
.fade-in .col-lg-4:nth-child(2) { animation-delay: 0.2s; }
.fade-in .col-lg-4:nth-child(3) { animation-delay: 0.3s; }
.fade-in .col-lg-4:nth-child(4) { animation-delay: 0.4s; }
.fade-in .col-lg-4:nth-child(5) { animation-delay: 0.5s; }
.fade-in .col-lg-4:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-filters {
        padding: 1rem;
    }

    .category-filters {
        justify-content: center;
    }

    .category-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }

    .blog-image img {
        height: 200px !important;
    }
}/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Statistics Badge */
.posts-count {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
