/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero-section {
    padding: 140px 0 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero-section::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 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" opacity="0.1"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

/* Blog Section */
.blog-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background: white;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgb(29, 27, 24), #333);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.featured-image {
    height: 100%;
    min-height: 350px;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.featured-content {
    padding: 20px 0;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Blog Grid */
.blog-grid {
    margin-top: 40px;
}
/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Blog Image Link */
.blog-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 65px;
}

.blog-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: rgb(29, 27, 24);
}

/* Blog Excerpt Link */
.blog-excerpt-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-excerpt-link:hover .blog-excerpt {
    color: #495057;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-excerpt-link .blog-excerpt {
    transition: color 0.3s ease;
}

.read-more {
    color: rgb(29, 27, 24);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #000;
    gap: 8px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: rgb(29, 27, 24);
    border: 2px solid #e9ecef;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: rgb(29, 27, 24);
    color: white;
    border-color: rgb(29, 27, 24);
}

.pagination .page-item.active .page-link {
    background: rgb(29, 27, 24);
    border-color: rgb(29, 27, 24);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-hero-section {
        padding: 120px 0 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-post {
        padding: 20px;
    }
    
    .featured-image {
        min-height: 280px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 110px 0 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 6px 15px;
        font-size: 0.75rem;
    }
    
    .featured-post {
        padding: 15px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-excerpt {
        font-size: 0.95rem;
    }
    
    .featured-image {
        min-height: 220px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.15rem;
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .blog-hero-section {
        padding: 100px 0 35px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .featured-image {
        min-height: 200px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination .page-link {
        padding: 8px 14px;
        margin: 0 3px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }

/* Print Styles */
@media print {
    .blog-hero-section::before {
        display: none;
    }
    
    .blog-card {
        break-inside: avoid;
    }
}