/* ===== BLOG-SPECIFIC STYLES ===== */

/* Blog Hero Section */
.blog-hero {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.blog-hero-content p {
    font-size: 1.8rem;
    color: #a0aec0;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 8rem 0;
    background-color: var(--background-light);
}

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

.blog-article {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.blog-date {
    display: flex;
    align-items: center;
}

.blog-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(46, 134, 171, 0.1);
    color: var(--secondary-color);
    border-radius: 2rem;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Blog Newsletter */
.blog-newsletter {
    padding: 6rem 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

.newsletter-content h3 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    color: #a0aec0;
    margin-bottom: 3rem;
    font-size: 1.6rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 1.2rem 1.5rem;
    border: 1px solid #4a5568;
    border-radius: var(--border-radius-md);
    background-color: #2d3748;
    color: var(--text-light);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Single Article Page */
.article-content {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.article-header {
    margin-bottom: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-link i {
    margin-right: 0.8rem;
}

.back-link:hover {
    color: var(--secondary-color-dark);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.article-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: rgba(46, 134, 171, 0.1);
    color: var(--secondary-color);
    border-radius: 2rem;
    font-weight: 500;
}

.article-header h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.article-feature-image {
    margin-bottom: 4rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.article-body h2 {
    font-size: 3rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body ul, .article-body ol {
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.article-body li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

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

.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.article-cta p {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.article-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: #edf2f7;
    color: var(--text-dark);
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: #e2e8f0;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.article-share span {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.share-link {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.share-link:hover {
    color: var(--primary-color);
}

/* Related Articles */
.related-articles {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.related-article {
    background-color: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-article:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-article:hover .related-img {
    transform: scale(1.1);
}

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

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

.related-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-hero-content h2 {
        font-size: 3.6rem;
    }
    
    .article-header h1 {
        font-size: 3.2rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-meta, .article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-share {
        width: 100%;
        justify-content: center;
    }
}
