/* =================================
   Blog Page Styles
   ================================= */

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    position: relative;
    height: 250px;
    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-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

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

.blog-content > p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    flex: 1;
    color: var(--text-light);
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    opacity: 0.95;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: 2px solid var(--text-light);
}

.newsletter-form button {
    white-space: nowrap;
}

/* Blog Article Styles */
.article-header {
    background-color: var(--bg-light);
    padding: 60px 0 40px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content {
    padding: 60px 0;
}

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

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

.article-body h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-body p {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-highlight {
    background-color: rgba(29, 185, 84, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.article-highlight p {
    margin: 0;
    font-style: italic;
}

.back-to-blog {
    margin: 40px 0;
    text-align: center;
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
    
    .article-body h2 {
        font-size: 28px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-image {
        height: 220px;
    }
    
    .blog-content h2 {
        font-size: 20px;
    }
    
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter-text h2 {
        font-size: 24px;
    }
    
    .newsletter-form form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-content {
        padding: 40px 0;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-body p,
    .article-body li {
        font-size: 16px;
    }
}