/* Blogs Page - Modern Design */

.blogs-page {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Blog Hero Section */
.blog-hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Blog Container */
.blogs-container {
    padding: 80px 0 100px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    z-index: 1;
}

/* Blog Cards Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Modern Blog Card */
.blog-card-modern {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.blog-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(40, 167, 69, 0.25);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Blog Image Container */
.blog-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card-modern:hover .blog-image {
    transform: scale(1.15) rotate(2deg);
}

/* Blog Image Overlay */
.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card-modern:hover .blog-image-overlay {
    opacity: 1;
}

/* Blog Date Badge */
.blog-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.blog-card-modern:hover .blog-date-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.blog-date-badge i {
    font-size: 1rem;
}

/* Blog Content */
.blog-content-wrapper {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Category Tag */
.blog-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-card-modern:hover .blog-category-tag {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    border-color: rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.blog-category-tag i {
    font-size: 0.9rem;
}

/* Blog Title */
.blog-title-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    min-height: 70px;
}

.blog-card-modern:hover .blog-title-modern {
    color: var(--primary-green);
}

/* Blog Excerpt */
.blog-excerpt-modern {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(40, 167, 69, 0.1);
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-author i {
    color: var(--primary-green);
    font-size: 1rem;
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.85rem;
}

.blog-read-time i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Read More Button */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-top: 20px;
    width: fit-content;
}

.blog-read-more:hover {
    transform: translateY(-3px) translateX(5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Empty State */
.blogs-empty {
    text-align: center;
    padding: 100px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blogs-empty-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.blogs-empty h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.blogs-empty p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Blog Stats Section */
.blog-stats {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.blog-stat-item:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    transform: translateY(-5px);
}

.blog-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 5px;
    display: block;
}

.blog-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter/Search Section */
.blog-filters {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.blog-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.blog-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blogs-container {
        padding: 60px 0 80px;
    }
}

@media (max-width: 767px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-modern {
        border-radius: 20px;
    }
    
    .blog-image-container {
        height: 200px;
    }
    
    .blog-content-wrapper {
        padding: 20px;
    }
    
    .blog-title-modern {
        font-size: 1.3rem;
        min-height: auto;
    }
    
    .blog-stats {
        flex-direction: column;
    }
    
    .blog-filters {
        flex-direction: column;
    }
    
    .blog-search {
        width: 100%;
    }
}

/* Animation Classes */
.blog-card-modern {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card-modern:nth-child(1) { animation-delay: 0.1s; }
.blog-card-modern:nth-child(2) { animation-delay: 0.2s; }
.blog-card-modern:nth-child(3) { animation-delay: 0.3s; }
.blog-card-modern:nth-child(4) { animation-delay: 0.4s; }
.blog-card-modern:nth-child(5) { animation-delay: 0.5s; }
.blog-card-modern:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

