/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    position: relative;
    overflow: hidden;
}

.blog-header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.blog-header-text h1 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.blog-header-text p {
    font-size: 1.3em;
    color: #34495e;
    line-height: 1.6;
}

.blog-header-visual svg {
    width: 100%;
    height: auto;
    max-width: 300px;
}

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

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

.blog-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
    height: fit-content;
}

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

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.blog-icon {
    background: #e74c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
}

.blog-meta {
    text-align: right;
    font-size: 0.9em;
}

.blog-category {
    background: #34495e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.blog-date {
    color: #7f8c8d;
    font-size: 0.85em;
}

.blog-card h2 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #e74c3c;
}

.blog-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.read-time {
    color: #95a5a6;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #c0392b;
    gap: 10px;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: white;
}

.newsletter-text p {
    font-size: 1.2em;
    color: #bdc3c7;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-input {
    display: flex;
    width: 100%;
    max-width: 400px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.newsletter-input button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-input button:hover {
    background: #c0392b;
}

/* Active nav link */
.nav-menu a.active {
    color: #e74c3c;
    font-weight: 600;
}

/* Article Page Styles */
.article-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-category {
    background: #e74c3c;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.article-date,
.article-read-time {
    color: #7f8c8d;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 3em;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-excerpt {
    font-size: 1.3em;
    color: #34495e;
    line-height: 1.6;
    max-width: 800px;
}

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

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
}

.article-body h2 {
    font-size: 2em;
    color: #2c3e50;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.article-body h3 {
    font-size: 1.5em;
    color: #34495e;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

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

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid #e74c3c;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #34495e;
}

.article-highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.article-highlight i {
    color: #f39c12;
    margin-right: 10px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: #c0392b;
    gap: 15px;
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-articles h2 {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 50px;
}

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

.related-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card h3 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.related-card h3 a:hover {
    color: #e74c3c;
}

.related-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.related-card .read-more {
    font-size: 0.9em;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .blog-header-text h1 {
        font-size: 2.5em;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 2em;
    }
    
    .article-title {
        font-size: 2.5em;
    }
    
    .article-meta {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-header-text h1 {
        font-size: 2em;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 2em;
    }
    
    .newsletter-input {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .newsletter-input input,
    .newsletter-input button {
        border-radius: 10px;
    }
}