/* Blog Specific Styles */

/* Blog Hero */
.blog-hero {
    background-color: #F9FAFB;
    padding: 180px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.blog-date {
    margin-right: 15px;
    position: relative;
}

.blog-date::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.blog-category {
    padding: 3px 10px;
    background-color: #F3F4F6;
    border-radius: 20px;
    color: var(--primary-color);
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h2 {
    color: var(--accent-color);
}

.blog-content p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 500;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Subscribe Section */
.blog-subscribe {
    background-color: #F9FAFB;
    padding: 80px 0;
}

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

.subscribe-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.subscribe-content p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.subscribe-content .form-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.subscribe-content input {
    width: 350px;
    max-width: 100%;
    margin-bottom: 0;
}

.subscribe-content .btn {
    margin-left: 0;
}

/* Single Article Page */
.article {
    padding: 150px 0 80px;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.article-category {
    padding: 3px 12px;
    background-color: #F3F4F6;
    border-radius: 20px;
    color: var(--primary-color);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-author {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.article-author svg {
    margin-right: 10px;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-tip {
    background-color: #F9FAFB;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-tip h3 {
    margin-top: 0;
    color: var(--accent-color);
}

.article-tip p {
    margin-bottom: 0;
}

.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 50px 0;
}

.article-share p {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.social-share {
    display: flex;
    gap: 15px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #F9FAFB;
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-share a:hover {
    background-color: var(--accent-color);
    color: white;
}

.related-posts {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: var(--transition);
}

.related-post:hover h4 {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-hero {
        padding: 150px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-content input,
    .subscribe-content .btn {
        width: 100%;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .article-header h1 {
        font-size: 1.7rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}
