/* Blog-specific styles */

.blog-header {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Controls */
.blog-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 300px;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-btn:hover {
    background: #236B47;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.filter-controls select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.3);
}

/* Featured Article */
.featured-article {
    padding: 3rem 0;
    background: var(--background-light);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-meta .category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.featured-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.read-more-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #236B47;
    transform: translateY(-2px);
}

/* Blog Articles */
.blog-articles {
    padding: 4rem 0;
}

.blog-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    /* padding: 1.5rem; */
}

.article-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-time {
    background: var(--background-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    display: flex;
    justify-content: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}

.no-results h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Newsletter Signup */
.newsletter-signup {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.3);
}

.newsletter-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Article Page Styles */
.article-header {
    margin-top: 80px;
    padding: 3rem 0;
    background: var(--background-light);
}

.article-hero {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.article-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-hero-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.article-content h3 {
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* margin: 2rem 0; */
    box-shadow: var(--shadow);
}

.article-content blockquote {
    background: var(--background-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Related Articles */
.related-articles {
    background: var(--background-light);
    padding: 3rem 0;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.related-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.related-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: center;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 2rem 0;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .featured-content,
    .article-content {
        padding: 1rem;
    }
    
    .article-hero-image {
        height: 250px;
    }
    
    .article-content {
        font-size: 1rem;
    }
}
