/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 50px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    text-align: center;
}

.blog-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
  flex: 1 1 1px;
  max-width: 300px;
}

.stat-icon {
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: white;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-image {
    position: relative;
}

.featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-text {
    padding: 2rem 0;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background: #e8f5e8;
    color: #4CAF50;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date,
.article-read-time {
    color: #999;
    font-size: 0.9rem;
}

.featured-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    color: #333;
    font-weight: 600;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Categories */
.blog-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.category-card.active {
    border-color: #4CAF50;
    background: #f8fff8;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Articles */
.blog-articles {
    padding: 80px 0;
    background: white;
}

.articles-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    gap: 1rem;
}

.articles-title-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Search bar for desktop/tablet - positioned in the middle */
.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

/* Search bar for mobile - hidden by default */
.search-bar-mobile {
    display: none;
}

.filter-select {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #4CAF50;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-content .article-meta {
    margin-bottom: 1rem;
}

.article-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author span {
    color: #666;
    font-size: 0.9rem;
}

.article-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #45a049;
}

/* Load More */
.load-more-container {
    text-align: center;
	justify-content: center;
	align-items: center;
	display: flex;
}

.load-more-btn {
    padding: 12px 32px;

}

/* Blog Newsletter CTA */
.blog-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    text-align: center;
}

.newsletter-cta {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.newsletter-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.newsletter-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .featured-image {
        order: 1;
    }
    
    .featured-text {
        order: 2;
    }
    
    .blog-hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
    }

    .stat-item {
        text-align: center;
        max-width: 100%;
    }
    
    .featured-img {
        height: 250px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .articles-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .newsletter-cta h2 {
        font-size: 1.8rem;
    }
}

/* Animation for article cards */
.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }

/* Category filter animation */
.category-card {
    animation: fadeInUp 0.5s ease-out;
}

.category-card:nth-child(1) { animation-delay: 0s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }



/* Search Bar Styles */
.search-bar {
    margin-bottom: 0.5rem;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    width: 100%;
    padding: 15px 100px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

.search-bar::before {
    content: "🔍";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 1;
}

.search-bar input::placeholder {
    color: #999;
    font-style: italic;
}

/* Search Results Styling */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    font-size: 1.1rem;
}

.search-active .article-card {
    transition: all 0.3s ease;
}

.search-active .article-card[style*="none"] {
    opacity: 0;
    transform: scale(0.95);
}



/* Search highlighting */
mark {
    background-color: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive search bar */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .search-bar input {
        padding: 12px 100px 12px 45px;
        font-size: 0.9rem;
    }
    
    .search-bar::before {
        left: 15px;
        font-size: 1rem;
    }
	
	/* Load More */
	.load-more-container {
		text-align: center;
		justify-content: center;
		align-items: center;
		display: flex;
		padding: 12px 32px;
	}

	.load-more-btn {
		padding: 12px 32px;

	}
	
}

