/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 3rem;
    color: #2C5F8D;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #2C5F8D;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.blog-search:focus {
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
    background: #ffffff;
}

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

.blog-article {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.article-svg {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-article:hover .article-svg {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.article-date {
    color: #666;
}

.article-category {
    background: #2C5F8D;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.article-content h2 {
    margin-bottom: 15px;
}

.article-content h2 a {
    color: #2C5F8D;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #4A90A4;
}

.article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #2C5F8D;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #4A90A4;
    transform: translateX(5px);
}

/* Individual Article Styles */
.article-page {
    padding: 120px 0 80px;
    background: #ffffff;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.article-header .article-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2C5F8D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-header .article-intro {
    font-size: 1.2rem;
    color: #4A90A4;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.article-featured-image {
    margin-bottom: 50px;
    text-align: center;
}

.article-featured-image svg {
    max-width: 100%;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.article-content-main h2 {
    color: #2C5F8D;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    position: relative;
    padding-left: 20px;
}

.article-content-main h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #2C5F8D 0%, #4A90A4 100%);
    border-radius: 2px;
}

.article-content-main h3 {
    color: #4A90A4;
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-content-main p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content-main ul {
    margin: 20px 0 20px 20px;
    color: #333;
}

.article-content-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content-main blockquote {
    background: #F0F8FF;
    border-left: 5px solid #2C5F8D;
    margin: 30px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #4A90A4;
    font-size: 1.1rem;
    border-radius: 0 10px 10px 0;
}

.highlight-box {
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    border: 1px solid #B6D7FF;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: #2C5F8D;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tips-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.tips-list h4 {
    color: #2C5F8D;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tips-list ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #333;
}

.tips-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.back-to-blog {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.back-to-blog a {
    display: inline-block;
    padding: 12px 24px;
    background: #2C5F8D;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog a:hover {
    background: #4A90A4;
    transform: translateY(-2px);
}

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

.related-articles h3 {
    text-align: center;
    color: #2C5F8D;
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.related-article {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.related-article h4 {
    color: #2C5F8D;
    margin-bottom: 10px;
}

.related-article h4 a {
    text-decoration: none;
    color: inherit;
}

.related-article p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.related-article .article-category {
    font-size: 12px;
}

/* Active navigation state */
.nav-menu a.active {
    color: #2C5F8D;
    font-weight: 600;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-featured-image svg {
        height: 300px;
    }
    
    .article-content-main {
        padding: 0 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 80px 0 40px;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-search {
        font-size: 14px;
        padding: 12px 40px 12px 15px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content-main h2 {
        font-size: 1.5rem;
    }
    
    .highlight-box,
    .tips-list {
        padding: 20px;
        margin: 20px 0;
    }
}